Documentation TYPO3 par Ameos

server_variables.php

00001 <?php
00002 /* $Id: server_variables.php,v 2.7 2004/08/12 15:13:19 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 require('./server_common.inc.php');
00010 
00011 
00015 require('./server_links.inc.php');
00016 
00017 
00021 echo '<h2>' . "\n"
00022    . ($cfg['MainPageIconic'] ? '<img src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" border="0" hspace="2" align="middle" />' : '' )
00023    . '' . $strServerVars . "\n"
00024    . '</h2>' . "\n";
00025 
00026 
00030 if (!$is_superuser && !$cfg['ShowMysqlVars']) {
00031     echo $strNoPrivileges;
00032     require_once('./footer.inc.php');
00033 }
00034 
00035 
00039 if (PMA_MYSQL_INT_VERSION >= 40003) {
00040     $res = PMA_DBI_query('SHOW SESSION VARIABLES;');
00041     while ($row = PMA_DBI_fetch_row($res)) {
00042         $serverVars[$row[0]] = $row[1];
00043     }
00044     PMA_DBI_free_result($res);
00045     unset($res, $row);
00046     $res = PMA_DBI_query('SHOW GLOBAL VARIABLES;');
00047     while ($row = PMA_DBI_fetch_row($res)) {
00048         $serverVarsGlobal[$row[0]] = $row[1];
00049     }
00050     PMA_DBI_free_result($res);
00051     unset($res, $row);
00052 } else {
00053     $res = PMA_DBI_query('SHOW VARIABLES;');
00054     while ($row = PMA_DBI_fetch_row($res)) {
00055         $serverVars[$row[0]] = $row[1];
00056     }
00057     PMA_DBI_free_result($res);
00058     unset($res, $row);
00059 }
00060 unset($res);
00061 unset($row);
00062 
00063 
00067 ?>
00068 <table border="0" cellpadding="2" cellspacing="1" width="90%">
00069     <tr>
00070         <th>&nbsp;<?php echo $strVar; ?>&nbsp;</th>
00071 <?php
00072 echo '        <th>&nbsp;';
00073 if (PMA_MYSQL_INT_VERSION >= 40003) {
00074     echo $strSessionValue . '&nbsp;</th>' . "\n"
00075        . '        <th>&nbsp;' . $strGlobalValue;
00076 } else {
00077     echo $strValue;
00078 }
00079 echo '&nbsp;</th>' . "\n";
00080 ?>
00081     </tr>
00082 <?php
00083 $useBgcolorOne = TRUE;
00084 $on_mouse='';
00085 foreach ($serverVars as $name => $value) {
00086         if ($GLOBALS['cfg']['BrowsePointerEnable'] == TRUE) {
00087             $on_mouse = ' onmouseover="this.style.backgroundColor=\'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\';"'
00088                       . ' onmouseout="this.style.backgroundColor=\'' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '\';"';
00089         } else {
00090             $on_mouse = '';
00091         }
00092 ?>
00093     <tr bgcolor="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"<?php echo $on_mouse; ?>>
00094         <td nowrap="nowrap" valign="top">
00095             <b><?php echo htmlspecialchars(str_replace('_', ' ', $name)) . "\n"; ?></b>
00096         </td>
00097         <td>
00098             <?php echo htmlspecialchars($value) . "\n"; ?>
00099         </td>
00100 <?php
00101     if (PMA_MYSQL_INT_VERSION >= 40003) {
00102 ?>
00103         <td>
00104             <?php echo htmlspecialchars($serverVarsGlobal[$name]) . "\n"; ?>
00105         </td>
00106 <?php
00107     }
00108     $useBgcolorOne = !$useBgcolorOne;
00109 ?>
00110     </tr>
00111 <?php
00112 }
00113 ?>
00114 </table>
00115 <?php
00116 
00117 
00121 require_once('./footer.inc.php');
00122 
00123 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6