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"
35 . PMA_showMySQLDocu('server_system_variables','server_system_variables')
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 __('Variable'); ?
></th
>
55 echo __('Session value') . ' / ' . __('Global value');
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 __('Global value'); ?
>)</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 './libraries/footer.inc.php';