2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Links configuration for MySQL system tables
8 if (! defined('PHPMYADMIN')) {
13 * This global variable represent the details for generating links inside
14 * special schemas like mysql, information_schema etc.
15 * Major element represent a schema.
16 * All the strings in this array represented in lower case
17 * This global variable has not modified anywhere
19 * Variable structure ex:
20 * $GLOBALS['special_schema_links'] = array(
21 * // Database name is the major element
27 * // Main url param (can be an array where represent sql)
28 * 'link_param' => 'username',
30 * 'link_dependancy_params' => array(
32 * // URL parameter name
33 * // (can be array where url param has static value)
34 * 'param_info' => 'hostname',
35 * // Column name related to url param
36 * 'column_name' => 'host'
40 * 'default_page' => 'server_privileges.php'
47 $GLOBALS['special_schema_links'] = array(
52 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
55 'link_param' => 'username',
56 'link_dependancy_params' => array(
58 'param_info' => 'hostname',
59 'column_name' => 'host'
62 'default_page' => 'server_privileges.php'
68 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
73 'link_param' => 'username',
74 'link_dependancy_params' => array(
76 'param_info' => 'hostname',
77 'column_name' => 'host'
80 'default_page' => 'server_privileges.php'
84 'information_schema' => array(
86 'table_schema' => array(
88 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
90 'table_name' => array(
91 'link_param' => 'table',
92 'link_dependancy_params' => array(
95 'column_name' => 'table_schema'
98 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
100 'column_name' => array(
101 'link_param' => array(
106 'link_dependancy_params' => array(
108 'param_info' => 'db',
109 'column_name' => 'table_schema'
112 'param_info' => 'table',
113 'column_name' => 'table_name'
116 'default_page' => 'sql.php'
119 'column_privileges' => array(
120 'table_schema' => array(
121 'link_param' => 'db',
122 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
126 'event_schema' => array(
127 'link_param' => 'db',
128 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
132 'table_schema' => array(
133 'link_param' => 'db',
134 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
137 'key_column_usage' => array(
138 'table_name' => array(
139 'link_param' => 'table',
140 'link_dependancy_params' => array(
142 'param_info' => 'db',
143 'column_name' => 'constraint_schema'
146 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
148 'column_name' => array(
149 'link_param' => array(
154 'link_dependancy_params' => array(
156 'param_info' => 'db',
157 'column_name' => 'table_schema'
160 'param_info' => 'table',
161 'column_name' => 'table_name'
164 'default_page' => 'sql.php'
166 'constraint_schema' => array(
167 'link_param' => 'db',
168 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
170 'table_schema' => array(
171 'link_param' => 'db',
172 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
174 'referenced_table_schema' => array(
175 'link_param' => 'db',
176 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
178 'referenced_table_name' => array(
179 'link_param' => 'table',
180 'link_dependancy_params' => array(
182 'param_info' => 'db',
183 'column_name' => 'referenced_table_schema'
186 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
188 'referenced_column_name' => array(
189 'link_param' => array(
191 'referenced_table_schema',
192 'referenced_table_name'
194 'link_dependancy_params' => array(
196 'param_info' => 'db',
197 'column_name' => 'referenced_table_schema'
200 'param_info' => 'table',
201 'column_name' => 'referenced_table_name'
204 'default_page' => 'sql.php'
207 'parameters' => array(
208 'specific_schema' => array(
209 'link_param' => 'db',
210 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
213 'partitions' => array(
214 'table_schema' => array(
215 'link_param' => 'db',
216 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
218 'table_name' => array(
219 'link_param' => 'table',
220 'link_dependancy_params' => array(
222 'param_info' => 'db',
223 'column_name' => 'table_schema'
226 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
229 'processlist' => array(
231 'link_param' => 'db',
232 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
235 'link_param' => 'username',
236 'link_dependancy_params' => array(
238 'param_info' => 'hostname',
239 'column_name' => 'host'
242 'default_page' => 'server_privileges.php'
245 'referential_constraints' => array(
246 'constraint_schema' => array(
247 'link_param' => 'db',
248 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
250 'unique_constraint_schema' => array(
251 'link_param' => 'db',
252 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
254 'table_name' => array(
255 'link_param' => 'table',
256 'link_dependancy_params' => array(
258 'param_info' => 'db',
259 'column_name' => 'constraint_schema'
262 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
264 'referenced_table_name' => array(
265 'link_param' => 'table',
266 'link_dependancy_params' => array(
268 'param_info' => 'db',
269 'column_name' => 'constraint_schema'
272 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
276 'routine_name' => array(
277 'link_param' => 'item_name',
278 'link_dependancy_params' => array(
280 'param_info' => 'db',
281 'column_name' => 'routine_schema'
284 'param_info' => 'item_type',
285 'column_name' => 'routine_type'
288 'default_page' => 'db_routines.php'
290 'routine_schema' => array(
291 'link_param' => 'db',
292 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
296 'schema_name' => array(
297 'link_param' => 'db',
298 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
301 'schema_privileges' => array(
302 'table_schema' => array(
303 'link_param' => 'db',
304 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
307 'statistics' => array(
308 'table_schema' => array(
309 'link_param' => 'db',
310 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
312 'index_schema' => array(
313 'link_param' => 'db',
314 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
316 'table_name' => array(
317 'link_param' => 'table',
318 'link_dependancy_params' => array(
320 'param_info' => 'db',
321 'column_name' => 'table_schema'
324 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
326 'column_name' => array(
327 'link_param' => array(
332 'link_dependancy_params' => array(
334 'param_info' => 'db',
335 'column_name' => 'table_schema'
338 'param_info' => 'table',
339 'column_name' => 'table_name'
342 'default_page' => 'sql.php'
346 'table_name' => array(
347 'link_param' => 'table',
348 'link_dependancy_params' => array(
350 'param_info' => 'db',
351 'column_name' => 'table_schema'
354 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
356 'table_schema' => array(
357 'link_param' => 'db',
358 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
361 'table_constraints' => array(
362 'table_name' => array(
363 'link_param' => 'table',
364 'link_dependancy_params' => array(
366 'param_info' => 'db',
367 'column_name' => 'table_schema'
370 'default_page' => $GLOBALS['cfg']['DefaultTabTable']
372 'constraint_schema' => array(
373 'link_param' => 'db',
374 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
376 'table_schema' => array(
377 'link_param' => 'db',
378 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
381 'table_privileges' => array(
382 'table_schema' => array(
383 'link_param' => 'db',
384 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
388 'trigger_schema' => array(
389 'link_param' => 'db',
390 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
392 'event_object_schema' => array(
393 'link_param' => 'db',
394 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']
398 'table_schema' => array(
399 'link_param' => 'db',
400 'default_page' => $GLOBALS['cfg']['DefaultTabDatabase']