bug #1763343 [session] Behavior with session.auto_start enabled
[phpmyadmin/sankalp_k.git] / libraries / server_links.inc.php
blob96ad5bb1fd45af2c216ad18764e706aa5493dd61
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 */
8 /**
9 * Check parameters
11 require_once './libraries/common.inc.php';
12 require_once './libraries/server_common.inc.php';
14 PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
16 /**
17 * Counts amount of navigation tabs
19 $server_links_count_tabs = 0;
22 /**
23 * Put something in $sub_part
25 if (!isset($sub_part)) {
26 $sub_part = '';
30 /**
31 * Displays tab links
33 $tabs = array();
35 $tabs['databases']['icon'] = 's_db.png';
36 $tabs['databases']['link'] = 'server_databases.php';
37 $tabs['databases']['text'] = $strDatabases;
39 $tabs['sql']['icon'] = 'b_sql.png';
40 $tabs['sql']['link'] = 'server_sql.php';
41 $tabs['sql']['text'] = $strSQL;
43 $tabs['status']['icon'] = 's_status.png';
44 $tabs['status']['link'] = 'server_status.php';
45 $tabs['status']['text'] = $strStatus;
47 $tabs['vars']['icon'] = 's_vars.png';
48 $tabs['vars']['link'] = 'server_variables.php';
49 $tabs['vars']['text'] = $strServerTabVariables;
51 if (PMA_MYSQL_INT_VERSION >= 40100) {
52 $tabs['charset']['icon'] = 's_asci.png';
53 $tabs['charset']['link'] = 'server_collations.php';
54 $tabs['charset']['text'] = $strCharsets;
57 $tabs['engine']['icon'] = 'b_engine.png';
58 $tabs['engine']['link'] = 'server_engines.php';
59 $tabs['engine']['text'] = $strEngines;
61 if ($is_superuser) {
62 $tabs['rights']['icon'] = 's_rights.png';
63 $tabs['rights']['link'] = 'server_privileges.php';
64 $tabs['rights']['text'] = $strPrivileges;
67 if (! empty($binary_logs)) {
68 $tabs['binlog']['icon'] = 's_tbl.png';
69 $tabs['binlog']['link'] = 'server_binlog.php';
70 $tabs['binlog']['text'] = $strBinaryLog;
72 $tabs['process']['icon'] = 's_process.png';
73 $tabs['process']['link'] = 'server_processlist.php';
74 $tabs['process']['text'] = $strProcesses;
76 $tabs['export']['icon'] = 'b_export.png';
77 $tabs['export']['link'] = 'server_export.php';
78 $tabs['export']['text'] = $strExport;
80 $tabs['import']['icon'] = 'b_import.png';
81 $tabs['import']['link'] = 'server_import.php';
82 $tabs['import']['text'] = $strImport;
84 echo PMA_getTabs($tabs);
85 unset($tabs);
88 /**
89 * Displays a message
91 if (!empty($message)) {
92 PMA_showMessage($message);
93 unset($message);
97 <br />