From 9ebbb5d10817b978a59bdb009b3f41b40fdb3c6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 16 Sep 2008 10:47:44 +0000 Subject: [PATCH] Fix for red page blocking all access --- inc/config.php | 3 +-- inc/databases.php | 2 +- inc/libs/security_functions.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/config.php b/inc/config.php index ca19c3221b..08df3c6eff 100644 --- a/inc/config.php +++ b/inc/config.php @@ -32,8 +32,7 @@ ************************************************************************/ // Some security stuff... -if (!defined('__SECURITY')) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/inc/databases.php b/inc/databases.php index a6509b16ac..c1a528cb7a 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "336"); +define('CURR_SVN_REVISION', "337"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index d1ec3e990f..363bca731c 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -32,7 +32,7 @@ ************************************************************************/ // Some security stuff... -if (!defined('__SECURITY')) { +if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } -- 2.39.2