From 1d004b925f9e858fcdc491da63efefb52173042c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 30 Aug 2007 21:21:16 +0000 Subject: [PATCH] necessary changes... git-svn-id: file:///svn/phpbb/trunk@8072 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/index.php | 8 +--- phpBB/common.php | 2 +- phpBB/docs/CHANGELOG.html | 27 +++++++++--- phpBB/includes/acp/acp_captcha.php | 2 +- phpBB/includes/acp/acp_forums.php | 2 +- phpBB/includes/auth/auth_apache.php | 9 ++++ phpBB/includes/auth/auth_db.php | 9 ++++ phpBB/includes/auth/auth_ldap.php | 9 ++++ phpBB/includes/constants.php | 4 ++ phpBB/includes/db/dbal.php | 6 ++- phpBB/includes/functions.php | 36 +++++++++------- phpBB/includes/functions_convert.php | 2 +- phpBB/install/database_update.php | 17 ++++++-- phpBB/install/index.php | 4 +- phpBB/install/install_install.php | 2 +- phpBB/install/schemas/schema_data.sql | 2 +- phpBB/mcp.php | 2 +- phpBB/memberlist.php | 56 +++++++++++++++++-------- phpBB/posting.php | 6 +-- phpBB/styles/prosilver/theme/bidi.css | 4 +- phpBB/styles/prosilver/theme/common.css | 3 +- phpBB/styles/prosilver/theme/tweaks.css | 4 +- phpBB/ucp.php | 2 +- 23 files changed, 151 insertions(+), 67 deletions(-) diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index b0d41f94e4..84acd5c457 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -42,7 +42,7 @@ if (!$auth->acl_get('a_')) // We define the admin variables now, because the user is now able to use the admin related features... define('IN_ADMIN', true); -$phpbb_admin_path = './'; +$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : './'; // Some oft used variables $safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false; @@ -204,11 +204,7 @@ function adm_page_footer($copyright_html = true) $template->display('body'); garbage_collection(); - - if (!defined('PHPBB_EMBEDDED')) - { - exit; - } + exit_handler(); } /** diff --git a/phpBB/common.php b/phpBB/common.php index 5177bff5b8..151645e5da 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -172,7 +172,7 @@ require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); // Set PHP error handler to ours -set_error_handler('msg_handler'); ++set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler'); // Instantiate some basic classes $user = new user(); diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 886334175a..37fb419e9d 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -169,6 +169,7 @@ p a {