3 // vim: expandtab sw=4 ts=4 sts=4:
9 require('./server_common.inc.php3');
15 require('./server_links.inc.php3');
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 include('./footer.inc.php3');
37 * Sends the queries and buffers the results
39 if (PMA_MYSQL_INT_VERSION
>= 40003) {
40 $res = @PMA_mysql_query
('SHOW SESSION VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW SESSION VARIABLES;');
41 while ($row = PMA_mysql_fetch_row($res)) {
42 $serverVars[$row[0]] = $row[1];
44 @mysql_free_result
($res);
45 $res = @PMA_mysql_query
('SHOW GLOBAL VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW GLOBAL VARIABLES;');
46 while ($row = PMA_mysql_fetch_row($res)) {
47 $serverVarsGlobal[$row[0]] = $row[1];
49 @mysql_free_result
($res);
51 $res = @PMA_mysql_query
('SHOW VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW VARIABLES;');
52 while ($row = PMA_mysql_fetch_row($res)) {
53 $serverVars[$row[0]] = $row[1];
55 @mysql_free_result
($res);
67 <th
> 
;<?php
echo $strVar; ?
> 
;</th
>
70 if (PMA_MYSQL_INT_VERSION
>= 40003) {
71 echo $strSessionValue . ' </th>' . "\n"
72 . ' <th> ' . $strGlobalValue;
76 echo ' </th>' . "\n";
80 $useBgcolorOne = TRUE;
81 while (list($name, $value) = each($serverVars)) {
84 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
85 <?php
echo htmlspecialchars(str_replace('_', ' ', $name)) . "\n"; ?
>
87 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
88 <?php
echo htmlspecialchars($value) . "\n"; ?
>
91 if (PMA_MYSQL_INT_VERSION
>= 40003) {
93 <td bgcolor
="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">
94 <?php
echo htmlspecialchars($serverVarsGlobal[$name]) . "\n"; ?
>
98 $useBgcolorOne = !$useBgcolorOne;
111 require('./footer.inc.php3');