3 // vim: expandtab sw=4 ts=4 sts=4:
9 require('./server_common.inc.php');
15 require('./server_links.inc.php');
19 * Displays the sub-page heading
22 . ($cfg['MainPageIconic'] ?
'<img src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" border="0" hspace="2" align="middle" />' : '' )
23 . '' . $strServerVars . "\n"
28 * Checks if the user is allowed to do what he tries to...
30 if (!$is_superuser && !$cfg['ShowMysqlVars']) {
31 echo $strNoPrivileges;
32 require_once('./footer.inc.php');
37 * Sends the queries and buffers the results
39 if (PMA_MYSQL_INT_VERSION
>= 40003) {
40 $res = PMA_DBI_query('SHOW SESSION VARIABLES;');
41 while ($row = PMA_DBI_fetch_row($res)) {
42 $serverVars[$row[0]] = $row[1];
44 PMA_DBI_free_result($res);
46 $res = PMA_DBI_query('SHOW GLOBAL VARIABLES;');
47 while ($row = PMA_DBI_fetch_row($res)) {
48 $serverVarsGlobal[$row[0]] = $row[1];
50 PMA_DBI_free_result($res);
53 $res = PMA_DBI_query('SHOW VARIABLES;');
54 while ($row = PMA_DBI_fetch_row($res)) {
55 $serverVars[$row[0]] = $row[1];
57 PMA_DBI_free_result($res);
68 <table border
="0" cellpadding
="2" cellspacing
="1" width
="90%">
70 <th
> 
;<?php
echo $strVar; ?
> 
;</th
>
73 if (PMA_MYSQL_INT_VERSION
>= 40003) {
74 echo $strSessionValue . ' </th>' . "\n"
75 . ' <th> ' . $strGlobalValue;
79 echo ' </th>' . "\n";
83 $useBgcolorOne = TRUE;
85 foreach ($serverVars as $name => $value) {
86 if ($GLOBALS['cfg']['BrowsePointerEnable'] == TRUE) {
87 $on_mouse = ' onmouseover="this.style.backgroundColor=\'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\';"'
88 . ' onmouseout="this.style.backgroundColor=\'' . ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '\';"';
93 <tr bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"<?php
echo $on_mouse; ?
>>
94 <td nowrap
="nowrap" valign
="top">
95 <b
><?php
echo htmlspecialchars(str_replace('_', ' ', $name)) . "\n"; ?
></b
>
98 <?php
echo htmlspecialchars($value) . "\n"; ?
>
101 if (PMA_MYSQL_INT_VERSION
>= 40003) {
104 <?php
echo htmlspecialchars($serverVarsGlobal[$name]) . "\n"; ?
>
108 $useBgcolorOne = !$useBgcolorOne;
121 require_once('./footer.inc.php');