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 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
41 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
50 <tr
><th
><?php
echo $strVar; ?
></th
>
53 echo $strSessionValue . ' / ' . $strGlobalValue;
61 foreach ($serverVars as $name => $value) {
64 echo $odd_row ? 'odd' : 'even';
65 if ($serverVarsGlobal[$name] !== $value) {
70 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
71 <td
class="value"><?php
72 if (strlen($value) < 16 && is_numeric($value)) {
73 echo PMA_formatNumber($value, 0);
76 echo htmlspecialchars($value);
81 if ($serverVarsGlobal[$name] !== $value) {
85 echo $odd_row ? 'odd' : 'even';
87 <td
>(<?php
echo $strGlobalValue; ?
>)</td
>
88 <td
class="value"><?php
90 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
92 echo htmlspecialchars($serverVarsGlobal[$name]);
109 require_once './libraries/footer.inc.php';