2 /* vim: set expandtab sw=4 ts=4 sts=4: */
10 * no need for variables importing
13 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
14 define('PMA_NO_VARIABLES_IMPORT', true);
16 require_once './libraries/common.inc.php';
19 * Does the common work
21 require './libraries/server_common.inc.php';
27 require './libraries/server_links.inc.php';
31 * Displays the sub-page heading
34 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '')
35 . '' . $strServerVars . "\n"
40 * Sends the queries and buffers the results
42 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
43 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
52 <tr
><th
><?php
echo $strVar; ?
></th
>
55 echo $strSessionValue . ' / ' . $strGlobalValue;
63 foreach ($serverVars as $name => $value) {
66 echo $odd_row ? 'odd' : 'even';
67 if ($serverVarsGlobal[$name] !== $value) {
72 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
73 <td
class="value"><?php
74 if (strlen($value) < 16 && is_numeric($value)) {
75 echo PMA_formatNumber($value, 0);
78 echo htmlspecialchars($value);
83 if ($serverVarsGlobal[$name] !== $value) {
87 echo $odd_row ? 'odd' : 'even';
89 <td
>(<?php
echo $strGlobalValue; ?
>)</td
>
90 <td
class="value"><?php
92 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
94 echo htmlspecialchars($serverVarsGlobal[$name]);
100 $odd_row = !$odd_row;
111 require_once './libraries/footer.inc.php';