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';
17 $GLOBALS['js_include'][] = 'server_variables.js';
20 * Does the common work
22 require './libraries/server_common.inc.php';
28 require './libraries/server_links.inc.php';
32 * Required to display documentation links
34 require './libraries/server_variables_doc.php';
37 * Displays the sub-page heading
40 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '')
41 . '' . __('Server variables and settings') . "\n"
42 . PMA_showMySQLDocu('server_system_variables','server_system_variables')
47 * Sends the queries and buffers the results
49 $serverVars = PMA_DBI_fetch_result('SHOW SESSION VARIABLES;', 0, 1);
50 $serverVarsGlobal = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES;', 0, 1);
57 <fieldset id
="tableFilter" style
="display:none;">
58 <legend
>Filters
</legend
>
59 <div
class="formelement">
60 <label
for="filterText">Containing the word
:</label
>
61 <input name
="filterText" type
="text" id
="filterText" style
="vertical-align: baseline;" />
64 <table
class="data filteredData">
66 <tr
><th
><?php
echo __('Variable'); ?
></th
>
69 echo __('Session value') . ' / ' . __('Global value');
72 <th
><?php
echo __('Documentation'); ?
></th
>
78 foreach ($serverVars as $name => $value) {
80 <tr
class="noclick <?php
81 echo $odd_row ? 'odd' : 'even';
82 if ($serverVarsGlobal[$name] !== $value) {
87 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)); ?
></th
>
88 <td
class="value"><?php
89 if (strlen($value) < 16 && is_numeric($value)) {
90 echo PMA_formatNumber($value, 0);
93 echo htmlspecialchars($value);
97 <td
class="value"><?php
98 if (isset($VARIABLE_DOC_LINKS[$name])) // To display variable documentation link
99 echo PMA_showMySQLDocu($VARIABLE_DOC_LINKS[$name][1], $VARIABLE_DOC_LINKS[$name][1], false, $VARIABLE_DOC_LINKS[$name][2] . '_' . $VARIABLE_DOC_LINKS[$name][0]);
102 if ($serverVarsGlobal[$name] !== $value) {
105 <tr
class="noclick <?php
106 echo $odd_row ? 'odd' : 'even';
108 <td
>(<?php
echo __('Global value'); ?
>)</td
>
109 <td
class="value"><?php
111 echo PMA_formatNumber($serverVarsGlobal[$name], 0);
113 echo htmlspecialchars($serverVarsGlobal[$name]);
116 <td
class="value"></td
>
120 $odd_row = !$odd_row;
131 require './libraries/footer.inc.php';