From c772f1259065d613b8ba478fb21b038f995bc705 Mon Sep 17 00:00:00 2001 From: tassium Date: Wed, 5 Apr 2006 19:59:16 +0000 Subject: [PATCH] Reverted the init.php requirement. Marc raised some good points about init.php doing work regarding preferences et al, more in line with a logged-in-user. In order to avoid future complications, I have removed init.hp from configtest, and have replaced the missing require(). (global.php and strings.php) Also added a non-fatal test for register_globals. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11028 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/configtest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/configtest.php b/src/configtest.php index 5b20b21b..7377d0c4 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -47,8 +47,11 @@ $allow_remote_configtest=false; * later. */ if (file_exists(SM_PATH . 'config/config.php')) { - require(SM_PATH . 'include/init.php'); + require(SM_PATH . 'config/config.php'); } +require(SM_PATH . 'functions/global.php'); +require(SM_PATH . 'functions/strings.php'); + ?> @@ -108,7 +111,9 @@ if(!check_php_version(4,1,0)) { } echo $IND . 'PHP version ' . PHP_VERSION . ' OK. (You have: ' . phpversion() . ". Minimum: 4.1.0)
\n"; - +if ((bool) ini_get('register_globals')) { + do_err('You have register_globals turned on. This is not an error, but it CAN be a security hazard. Consider turning register_globals off.', false); +} $php_exts = array('session','pcre'); $diff = array_diff($php_exts, get_loaded_extensions()); if(count($diff)) { -- 2.25.1