From 7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 29 Apr 2006 01:18:57 +0000 Subject: - fixing some bugs, containing fixes for anonymous username displays, eaccelerator issue, permission trace and a few smaller bugs. git-svn-id: file:///svn/phpbb/trunk@5858 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 83e08a9d9a..4ccdc1b3ec 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -141,8 +141,8 @@ function unique_id($extra = 'c') $val = $config['rand_seed'] . microtime(); $val = md5($val); $config['rand_seed'] = md5($config['rand_seed'] . $val . $extra); - - if($dss_seeded !== true) + + if ($dss_seeded !== true) { set_config('rand_seed', $config['rand_seed']); $dss_seeded = true; @@ -2194,7 +2194,12 @@ function msg_handler($errno, $msg_text, $errfile, $errline) echo '

General Error

'; echo '

' . $msg_text . '

'; - echo '

Please notify the board administrator or webmaster : ' . $config['board_contact'] . '

'; + + if (!empty($config['board_contact'])) + { + echo '

Please notify the board administrator or webmaster : ' . $config['board_contact'] . '

'; + } + echo ' '; echo ' '; echo ' '; @@ -2597,7 +2602,7 @@ function page_footer() $db->sql_report('display'); } - $debug_output = sprintf('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') . (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime); if ($auth->acl_get('a_') && defined('DEBUG_EXTRA')) { -- cgit v1.2.1