From: Roland Häder Date: Tue, 16 Sep 2008 10:47:44 +0000 (+0000) Subject: Fix for red page blocking all access X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ebbb5d10817b978a59bdb009b3f41b40fdb3c6c;p=mailer.git Fix for red page blocking all access --- 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); }