diff --git a/ChangeLog b/ChangeLog index 24d5c8afb..5b2b93a9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $HeadURL$ 2007-02-25 Marc Delisle * libraries/common.lib.php: bug #1667466, undefined variable when export + save on server + * server_status.php: bug #1665930, undefined PHP_SELF 2007-02-24 Marc Delisle * libraries/config.default.php: RFE #1621437, HEX and UNHEX were not diff --git a/server_status.php b/server_status.php index 5dffe0dce..d11e1db48 100644 --- a/server_status.php +++ b/server_status.php @@ -263,7 +263,7 @@ $sections = array( $links = array(); $links['table'][$strFlushTables] - = $PHP_SELF . '?flush=TABLES&' . PMA_generate_common_url(); + = $_SERVER['PHP_SELF'] . '?flush=TABLES&' . PMA_generate_common_url(); $links['table'][$strShowOpenTables] = 'sql.php?sql_query=' . urlencode('SHOW OPEN TABLES') . '&goto=server_status.php&' . PMA_generate_common_url(); @@ -278,7 +278,7 @@ $links['repl']['MySQL - ' . $strDocu] = $cfg['MySQLManualBase'] . '/replication.html'; $links['qcache'][$strFlushQueryCache] - = $PHP_SELF . '?flush=' . urlencode('QUERY CACHE') . '&' . + = $_SERVER['PHP_SELF'] . '?flush=' . urlencode('QUERY CACHE') . '&' . PMA_generate_common_url(); $links['qcache']['MySQL - ' . $strDocu] = $cfg['MySQLManualBase'] . '/query-cache.html'; @@ -337,10 +337,10 @@ $hour_factor = 3600 / $server_status['Uptime']; ?>