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 . ' ' . $strServerVars . "\n"
27 * Checks if the user is allowed to do what he tries to...
29 if (!$is_superuser && !$cfg['ShowMysqlVars']) {
30 echo $strNoPrivileges;
31 require_once('./footer.inc.php');
36 * Sends the queries and buffers the results
38 if (PMA_MYSQL_INT_VERSION
>= 40003) {
39 $res = @PMA_mysql_query
('SHOW SESSION VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW SESSION VARIABLES;');
40 while ($row = PMA_mysql_fetch_row($res)) {
41 $serverVars[$row[0]] = $row[1];
43 @mysql_free_result
($res);
44 $res = @PMA_mysql_query
('SHOW GLOBAL VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW GLOBAL VARIABLES;');
45 while ($row = PMA_mysql_fetch_row($res)) {
46 $serverVarsGlobal[$row[0]] = $row[1];
48 @mysql_free_result
($res);
50 $res = @PMA_mysql_query
('SHOW VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW VARIABLES;');
51 while ($row = PMA_mysql_fetch_row($res)) {
52 $serverVars[$row[0]] = $row[1];
54 @mysql_free_result
($res);
66 <th
> 
;<?php
echo $strVar; ?
> 
;</th
>
69 if (PMA_MYSQL_INT_VERSION
>= 40003) {
70 echo $strSessionValue . ' </th>' . "\n"
71 . ' <th> ' . $strGlobalValue;
75 echo ' </th>' . "\n";
79 $useBgcolorOne = TRUE;
80 foreach ($serverVars as $name => $value) {
83 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
84 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)) . "\n"; ?
>
86 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
87 <?php
echo htmlspecialchars($value) . "\n"; ?
>
90 if (PMA_MYSQL_INT_VERSION
>= 40003) {
92 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
93 <?php
echo htmlspecialchars($serverVarsGlobal[$name]) . "\n"; ?
>
97 $useBgcolorOne = !$useBgcolorOne;
110 require_once('./footer.inc.php');