123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490 |
- <?php
- /* vim: set expandtab sw=4 ts=4 sts=4: */
- /**
- * Links configuration for MySQL system tables
- *
- * @package PhpMyAdmin
- */
- if (! defined('PHPMYADMIN')) {
- exit;
- }
- /**
- * This global variable represent the details for generating links inside
- * special schemas like mysql, information_schema etc.
- * Major element represent a schema.
- * All the strings in this array represented in lower case
- * This global variable has not modified anywhere
- *
- * Variable structure ex:
- * $GLOBALS['special_schema_links'] = array(
- * // Database name is the major element
- * 'mysql' => array(
- * // Table name
- * 'db' => array(
- * // Column name
- * 'user' => array(
- * // Main url param (can be an array where represent sql)
- * 'link_param' => 'username',
- * // Other url params
- * 'link_dependancy_params' => array(
- * 0 => array(
- * // URL parameter name
- * // (can be array where url param has static value)
- * 'param_info' => 'hostname',
- * // Column name related to url param
- * 'column_name' => 'host'
- * )
- * ),
- * // Page to link
- * 'default_page' => './server_privileges.php'
- * )
- * )
- * )
- * );
- *
- */
- $GLOBALS['special_schema_links'] = array(
- 'mysql' => array(
- 'columns_priv' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'host'
- )
- ),
- 'default_page' => './server_privileges.php'
- ),
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'Db'
- ),
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'column_name' => array(
- 'link_param' => 'field',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'Db'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'Table_name'
- )
- ),
- 'default_page' => './tbl_structure.php?change_column=1'
- ),
- ),
- 'db' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'host'
- )
- ),
- 'default_page' => './server_privileges.php'
- )
- ),
- 'event' => array(
- 'name' => array(
- 'link_param' => 'item_name',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'db'
- )
- ),
- 'default_page' => './db_events.php?edit_item=1'
- ),
- ),
- 'innodb_index_stats' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'database_name'
- ),
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'index_name' => array(
- 'link_param' => 'index',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'database_name'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'table_name'
- )
- ),
- 'default_page' => './tbl_structure.php'
- ),
- ),
- 'innodb_table_stats' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'database_name'
- ),
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- ),
- 'proc' => array(
- 'name' => array(
- 'link_param' => 'item_name',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'db'
- ),
- 1 => array(
- 'param_info' => 'item_type',
- 'column_name' => 'type'
- )
- ),
- 'default_page' => './db_routines.php?edit_item=1'
- ),
- 'specific_name' => array(
- 'link_param' => 'item_name',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'db'
- ),
- 1 => array(
- 'param_info' => 'item_type',
- 'column_name' => 'type'
- )
- ),
- 'default_page' => './db_routines.php?edit_item=1'
- ),
- ),
- 'proc_priv' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'Host'
- )
- ),
- 'default_page' => './server_privileges.php'
- ),
- 'routine_name' => array(
- 'link_param' => 'item_name',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'Db'
- ),
- 1 => array(
- 'param_info' => 'item_type',
- 'column_name' => 'Routine_type'
- )
- ),
- 'default_page' => './db_routines.php?edit_item=1'
- ),
- ),
- 'proxies_priv' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'Host'
- )
- ),
- 'default_page' => './server_privileges.php'
- ),
- ),
- 'tables_priv' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'Host'
- )
- ),
- 'default_page' => './server_privileges.php'
- ),
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'Db'
- ),
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- ),
- 'user' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'host'
- )
- ),
- 'default_page' => './server_privileges.php'
- )
- )
- ),
- 'information_schema' => array(
- 'columns' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'column_name' => array(
- 'link_param' => 'field',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'table_name'
- )
- ),
- 'default_page' => './tbl_structure.php?change_column=1'
- )
- ),
- 'key_column_usage' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'constraint_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'column_name' => array(
- 'link_param' => 'field',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'table_name'
- )
- ),
- 'default_page' => './tbl_structure.php?change_column=1'
- ),
- 'referenced_table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'referenced_table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'referenced_column_name' => array(
- 'link_param' => 'field',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'referenced_table_schema'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'referenced_table_name'
- )
- ),
- 'default_page' => './tbl_structure.php?change_column=1'
- )
- ),
- 'partitions' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- )
- ),
- 'processlist' => array(
- 'user' => array(
- 'link_param' => 'username',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'hostname',
- 'column_name' => 'host'
- )
- ),
- 'default_page' => './server_privileges.php'
- )
- ),
- 'referential_constraints' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'constraint_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'referenced_table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'constraint_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- )
- ),
- 'routines' => array(
- 'routine_name' => array(
- 'link_param' => 'item_name',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'routine_schema'
- ),
- 1 => array(
- 'param_info' => 'item_type',
- 'column_name' => 'routine_type'
- )
- ),
- 'default_page' => './db_routines.php'
- ),
- ),
- 'schemata' => array(
- 'schema_name' => array(
- 'link_param' => 'db',
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- )
- ),
- 'statistics' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- 'column_name' => array(
- 'link_param' => 'field',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- ),
- 1 => array(
- 'param_info' => 'table',
- 'column_name' => 'table_name'
- )
- ),
- 'default_page' => './tbl_structure.php?change_column=1'
- )
- ),
- 'tables' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- ),
- 'table_constraints' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- ),
- 'views' => array(
- 'table_name' => array(
- 'link_param' => 'table',
- 'link_dependancy_params' => array(
- 0 => array(
- 'param_info' => 'db',
- 'column_name' => 'table_schema'
- )
- ),
- 'default_page' => './' . PhpMyAdmin\Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'], 'table'
- )
- ),
- ),
- )
- );
|