aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/index.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-04-23 14:23:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-04-23 14:23:22 +0000
commitde4299c81c010c6382a3d017cde8f2c3c957b91f (patch)
tree0435da41b52907e1b6c0739773a12dc980a35017 /phpBB/adm/index.php
parentd6af193b53ac4a3b9dff78254f4da9f4cd5f9337 (diff)
downloadforums-de4299c81c010c6382a3d017cde8f2c3c957b91f.tar
forums-de4299c81c010c6382a3d017cde8f2c3c957b91f.tar.gz
forums-de4299c81c010c6382a3d017cde8f2c3c957b91f.tar.bz2
forums-de4299c81c010c6382a3d017cde8f2c3c957b91f.tar.xz
forums-de4299c81c010c6382a3d017cde8f2c3c957b91f.zip
- build explain links a bit different...
- fix btn_ip reference (it is btn_info now) - removed sql_report.css (we use the acp css) - updated the sql report layout git-svn-id: file:///svn/phpbb/trunk@5838 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r--phpBB/adm/index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index 2120232759..5a36a9e03e 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -140,7 +140,8 @@ function adm_page_header($page_title)
function adm_page_footer($copyright_html = true)
{
- global $db, $config, $template, $SID, $user, $auth, $starttime, $phpbb_root_path, $phpEx, $cache;
+ global $db, $config, $template, $user, $auth, $cache;
+ global $SID, $starttime, $phpbb_root_path, $phpbb_admin_path, $phpEx;
// Output page creation time
if (defined('DEBUG'))
@@ -169,7 +170,11 @@ function adm_page_footer($copyright_html = true)
}
}
- $debug_output .= ' | <a href="' . (($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : "index.$phpEx$SID") . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&amp;' : '?') . 'explain=1">Explain</a>';
+ $explain_url = $phpbb_root_path . str_replace('&', '&amp;', $user->page['page']);
+ $explain_url = (strpos($explain_url, '?') !== false) ? str_replace('?', $SID . '&amp;', $explain_url) : $explain_url . '?' . str_replace('?', '', $SID);
+ $explain_url .= ((strpos($explain_url, '?') === false) ? '?' : '&amp;') . 'explain=1';
+
+ $debug_output .= ' | <a href="' . $explain_url . '">Explain</a>';
}
}