3 // vim: expandtab sw=4 ts=4 sts=4:
5 if ( ! defined( 'PMA_NO_VARIABLES_IMPORT' ) ) {
6 define( 'PMA_NO_VARIABLES_IMPORT', true );
8 require_once './libraries/common.lib.php';
11 * Does the common work
13 require './libraries/server_common.inc.php';
19 require './libraries/server_links.inc.php';
23 * Displays the sub-page heading
26 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '' )
27 . '' . $strServerVars . "\n"
32 * Sends the queries and buffers the results
34 if (PMA_MYSQL_INT_VERSION
>= 40003) {
35 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
36 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
38 $serverVars = PMA_DBI_fetch_result('SHOW VARIABLES;', 0, 1);
48 <tr
><th
><?php
echo $strVar; ?
></th
>
51 if (PMA_MYSQL_INT_VERSION
>= 40003) {
52 echo $strSessionValue . ' / ' . $strGlobalValue;
63 foreach ($serverVars as $name => $value) {
66 echo $odd_row ? 'odd' : 'even';
67 if (PMA_MYSQL_INT_VERSION >= 40003
68 && $serverVarsGlobal[$name] !== $value) {
73 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
74 <td
class="value"><?php
75 if (is_numeric($value)) {
76 echo PMA_formatNumber($value, 0);
79 echo htmlspecialchars($value);
84 if (PMA_MYSQL_INT_VERSION
>= 40003
85 && $serverVarsGlobal[$name] !== $value) {
89 echo $odd_row ? 'odd' : 'even';
91 <td
>(<?php
echo $strGlobalValue; ?
>)</td
>
92 <td
class="value"><?php
94 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
96 echo htmlspecialchars($serverVarsGlobal[$name]);
102 $odd_row = !$odd_row;
113 require_once './libraries/footer.inc.php';