mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
Update ACP linkage
git-svn-id: file:///svn/phpbb/trunk@4702 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
29875f3cbf
commit
afc00b0b87
1 changed files with 4 additions and 4 deletions
|
@ -1485,19 +1485,19 @@ function page_footer()
|
||||||
$db->sql_report('display');
|
$db->sql_report('display');
|
||||||
}
|
}
|
||||||
|
|
||||||
$debug_output = sprintf('<br /><br />[ Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . ( ( $config['gzip_compress'] ) ? 'On' : 'Off' ) . ' | Load : ' . (($user->load) ? $user->load : 'N/A'), $totaltime);
|
$debug_output = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . ( ( $config['gzip_compress'] ) ? 'On' : 'Off' ) . ' | Load : ' . (($user->load) ? $user->load : 'N/A'), $totaltime);
|
||||||
|
|
||||||
if ($auth->acl_get('a_'))
|
if ($auth->acl_get('a_'))
|
||||||
{
|
{
|
||||||
$debug_output .= ' | <a href="' . (($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : "index.$phpEx$SID") . '&explain=1">Explain</a>';
|
$debug_output .= ' | <a href="' . (($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : "index.$phpEx$SID") . '&explain=1">Explain</a>';
|
||||||
}
|
}
|
||||||
$debug_output .= ' ]';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'PHPBB_VERSION' => $config['version'],
|
'PHPBB_VERSION' => $config['version'],
|
||||||
'ADMIN_LINK' => ($auth->acl_get('a_')) ? sprintf($user->lang['ACP'], '<a href="' . "adm/index.$phpEx?sid=" . $user->data['session_id'] . '">', '</a>') . '<br /><br />' : '',
|
'DEBUG_OUTPUT' => (defined('DEBUG')) ? $debug_output : '',
|
||||||
'DEBUG_OUTPUT' => (defined('DEBUG')) ? $debug_output : '')
|
|
||||||
|
'U_ACP' => ($auth->acl_get('a_')) ? "adm/index.$phpEx?sid=" . $user->data['session_id'] : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
$template->display('body');
|
$template->display('body');
|
||||||
|
|
Loading…
Add table
Reference in a new issue