2 /* vim: set expandtab sw=4 ts=4 sts=4: */
9 * no need for variables importing
12 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
13 define('PMA_NO_VARIABLES_IMPORT', true);
15 require_once './libraries/common.inc.php';
18 * Does the common work
20 require './libraries/server_common.inc.php';
26 require './libraries/server_links.inc.php';
30 * Displays the sub-page heading
33 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '')
34 . '' . __('Server variables and settings') . "\n"
39 * Sends the queries and buffers the results
41 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
42 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
51 <tr
><th
><?php
echo __('Variable'); ?
></th
>
54 echo __('Session value') . ' / ' . __('Global value');
62 foreach ($serverVars as $name => $value) {
65 echo $odd_row ? 'odd' : 'even';
66 if ($serverVarsGlobal[$name] !== $value) {
71 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
72 <td
class="value"><?php
73 if (strlen($value) < 16 && is_numeric($value)) {
74 echo PMA_formatNumber($value, 0);
77 echo htmlspecialchars($value);
82 if ($serverVarsGlobal[$name] !== $value) {
86 echo $odd_row ? 'odd' : 'even';
88 <td
>(<?php
echo __('Global value'); ?
>)</td
>
89 <td
class="value"><?php
91 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
93 echo htmlspecialchars($serverVarsGlobal[$name]);
110 require './libraries/footer.inc.php';