bug #1665930, undefined PHP_SELF
This commit is contained in:
@@ -8,6 +8,7 @@ $HeadURL$
|
|||||||
2007-02-25 Marc Delisle <lem9@users.sourceforge.net>
|
2007-02-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/common.lib.php: bug #1667466, undefined variable when
|
* libraries/common.lib.php: bug #1667466, undefined variable when
|
||||||
export + save on server
|
export + save on server
|
||||||
|
* server_status.php: bug #1665930, undefined PHP_SELF
|
||||||
|
|
||||||
2007-02-24 Marc Delisle <lem9@users.sourceforge.net>
|
2007-02-24 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/config.default.php: RFE #1621437, HEX and UNHEX were not
|
* libraries/config.default.php: RFE #1621437, HEX and UNHEX were not
|
||||||
|
@@ -263,7 +263,7 @@ $sections = array(
|
|||||||
$links = array();
|
$links = array();
|
||||||
|
|
||||||
$links['table'][$strFlushTables]
|
$links['table'][$strFlushTables]
|
||||||
= $PHP_SELF . '?flush=TABLES&' . PMA_generate_common_url();
|
= $_SERVER['PHP_SELF'] . '?flush=TABLES&' . PMA_generate_common_url();
|
||||||
$links['table'][$strShowOpenTables]
|
$links['table'][$strShowOpenTables]
|
||||||
= 'sql.php?sql_query=' . urlencode('SHOW OPEN TABLES') .
|
= 'sql.php?sql_query=' . urlencode('SHOW OPEN TABLES') .
|
||||||
'&goto=server_status.php&' . PMA_generate_common_url();
|
'&goto=server_status.php&' . PMA_generate_common_url();
|
||||||
@@ -278,7 +278,7 @@ $links['repl']['MySQL - ' . $strDocu]
|
|||||||
= $cfg['MySQLManualBase'] . '/replication.html';
|
= $cfg['MySQLManualBase'] . '/replication.html';
|
||||||
|
|
||||||
$links['qcache'][$strFlushQueryCache]
|
$links['qcache'][$strFlushQueryCache]
|
||||||
= $PHP_SELF . '?flush=' . urlencode('QUERY CACHE') . '&' .
|
= $_SERVER['PHP_SELF'] . '?flush=' . urlencode('QUERY CACHE') . '&' .
|
||||||
PMA_generate_common_url();
|
PMA_generate_common_url();
|
||||||
$links['qcache']['MySQL - ' . $strDocu]
|
$links['qcache']['MySQL - ' . $strDocu]
|
||||||
= $cfg['MySQLManualBase'] . '/query-cache.html';
|
= $cfg['MySQLManualBase'] . '/query-cache.html';
|
||||||
@@ -337,10 +337,10 @@ $hour_factor = 3600 / $server_status['Uptime'];
|
|||||||
?>
|
?>
|
||||||
<div id="statuslinks">
|
<div id="statuslinks">
|
||||||
<a href="<?php echo
|
<a href="<?php echo
|
||||||
$PHP_SELF . '?' . PMA_generate_common_url(); ?>"
|
$_SERVER['PHP_SELF'] . '?' . PMA_generate_common_url(); ?>"
|
||||||
><?php echo $strRefresh; ?></a>
|
><?php echo $strRefresh; ?></a>
|
||||||
<a href="<?php echo
|
<a href="<?php echo
|
||||||
$PHP_SELF . '?flush=STATUS&' . PMA_generate_common_url(); ?>"
|
$_SERVER['PHP_SELF'] . '?flush=STATUS&' . PMA_generate_common_url(); ?>"
|
||||||
><?php echo $strShowStatusReset; ?></a>
|
><?php echo $strShowStatusReset; ?></a>
|
||||||
<a href="<?php echo
|
<a href="<?php echo
|
||||||
$cfg['MySQLManualBase']; ?>/server-status-variables.html"
|
$cfg['MySQLManualBase']; ?>/server-status-variables.html"
|
||||||
@@ -359,7 +359,7 @@ echo sprintf($strServerStatusUptime,
|
|||||||
<?php
|
<?php
|
||||||
foreach ($sections as $section_name => $section) {
|
foreach ($sections as $section_name => $section) {
|
||||||
if (! empty($section['vars']) && ! empty($section['title'])) {
|
if (! empty($section['vars']) && ! empty($section['title'])) {
|
||||||
echo '<a href="' . $PHP_SELF . '?' .
|
echo '<a href="' . $_SERVER['PHP_SELF'] . '?' .
|
||||||
PMA_generate_common_url() . '#' . $section_name . '">' .
|
PMA_generate_common_url() . '#' . $section_name . '">' .
|
||||||
$section['title'] . '</a>' . "\n";
|
$section['title'] . '</a>' . "\n";
|
||||||
}
|
}
|
||||||
@@ -578,7 +578,7 @@ foreach ($sections as $section_name => $section) {
|
|||||||
<table class="data" id="serverstatussection<?php echo $section_name; ?>">
|
<table class="data" id="serverstatussection<?php echo $section_name; ?>">
|
||||||
<caption class="tblHeaders">
|
<caption class="tblHeaders">
|
||||||
<a class="top"
|
<a class="top"
|
||||||
href="<?php echo $PHP_SELF . '?' .
|
href="<?php echo $_SERVER['PHP_SELF'] . '?' .
|
||||||
PMA_generate_common_url() . '#serverstatus'; ?>"
|
PMA_generate_common_url() . '#serverstatus'; ?>"
|
||||||
name="<?php echo $section_name; ?>"><?php echo $strPos1; ?>
|
name="<?php echo $section_name; ?>"><?php echo $strPos1; ?>
|
||||||
<?php echo
|
<?php echo
|
||||||
|
Reference in New Issue
Block a user