3 // vim: expandtab sw=4 ts=4 sts=4:
5 require_once('./libraries/common.lib.php');
10 require('./server_common.inc.php');
16 require('./server_links.inc.php');
20 * Displays the sub-page heading
23 . ($cfg['MainPageIconic'] ?
'<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '' )
24 . '' . $strServerVars . "\n"
29 * Sends the queries and buffers the results
31 if (PMA_MYSQL_INT_VERSION
>= 40003) {
32 $res = PMA_DBI_query('SHOW SESSION VARIABLES;');
33 while ($row = PMA_DBI_fetch_row($res)) {
34 $serverVars[$row[0]] = $row[1];
36 PMA_DBI_free_result($res);
38 $res = PMA_DBI_query('SHOW GLOBAL VARIABLES;');
39 while ($row = PMA_DBI_fetch_row($res)) {
40 $serverVarsGlobal[$row[0]] = $row[1];
42 PMA_DBI_free_result($res);
45 $res = PMA_DBI_query('SHOW VARIABLES;');
46 while ($row = PMA_DBI_fetch_row($res)) {
47 $serverVars[$row[0]] = $row[1];
49 PMA_DBI_free_result($res);
60 <table border
="0" cellpadding
="2" cellspacing
="1" width
="90%">
62 <th
> 
;<?php
echo $strVar; ?
> 
;</th
>
65 if (PMA_MYSQL_INT_VERSION
>= 40003) {
66 echo $strSessionValue . ' </th>' . "\n"
67 . ' <th> ' . $strGlobalValue;
71 echo ' </th>' . "\n";
75 $useBgcolorOne = TRUE;
77 foreach ($serverVars as $name => $value) {
78 if ($GLOBALS['cfg']['BrowsePointerEnable'] == TRUE) {
79 $on_mouse = ' onmouseover="this.style.backgroundColor=\'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\';"'
80 . ' onmouseout="this.style.backgroundColor=\'' . ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '\';"';
85 <tr bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"<?php
echo $on_mouse; ?
>>
86 <td nowrap
="nowrap" valign
="top">
87 <b
><?php
echo htmlspecialchars(str_replace('_', ' ', $name)) . "\n"; ?
></b
>
90 <?php
echo htmlspecialchars($value) . "\n"; ?
>
93 if (PMA_MYSQL_INT_VERSION
>= 40003) {
96 <?php
echo htmlspecialchars($serverVarsGlobal[$name]) . "\n"; ?
>
100 $useBgcolorOne = !$useBgcolorOne;
113 require_once('./footer.inc.php');