2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
12 define('PMA_NO_VARIABLES_IMPORT', true);
14 require_once './libraries/common.inc.php';
17 * Does the common work
19 require './libraries/server_common.inc.php';
25 require './libraries/server_links.inc.php';
29 * Displays the sub-page heading
32 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '')
33 . '' . $strServerVars . "\n"
38 * Sends the queries and buffers the results
40 if (PMA_MYSQL_INT_VERSION
>= 40003) {
41 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
42 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
44 $serverVars = PMA_DBI_fetch_result('SHOW VARIABLES;', 0, 1);
54 <tr
><th
><?php
echo $strVar; ?
></th
>
57 if (PMA_MYSQL_INT_VERSION
>= 40003) {
58 echo $strSessionValue . ' / ' . $strGlobalValue;
69 foreach ($serverVars as $name => $value) {
72 echo $odd_row ? 'odd' : 'even';
73 if (PMA_MYSQL_INT_VERSION >= 40003
74 && $serverVarsGlobal[$name] !== $value) {
79 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
80 <td
class="value"><?php
81 if (strlen($value) < 16 && is_numeric($value)) {
82 echo PMA_formatNumber($value, 0);
85 echo htmlspecialchars($value);
90 if (PMA_MYSQL_INT_VERSION
>= 40003
91 && $serverVarsGlobal[$name] !== $value) {
95 echo $odd_row ? 'odd' : 'even';
97 <td
>(<?php
echo $strGlobalValue; ?
>)</td
>
98 <td
class="value"><?php
100 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
102 echo htmlspecialchars($serverVarsGlobal[$name]);
108 $odd_row = !$odd_row;
119 require_once './libraries/footer.inc.php';