Fix for red page blocking all access
authorRoland Häder <roland@mxchange.org>
Tue, 16 Sep 2008 10:47:44 +0000 (10:47 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 16 Sep 2008 10:47:44 +0000 (10:47 +0000)
inc/config.php
inc/databases.php
inc/libs/security_functions.php

index ca19c32..08df3c6 100644 (file)
@@ -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);
 }
index a6509b1..c1a528c 100644 (file)
@@ -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);
index d1ec3e9..363bca7 100644 (file)
@@ -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);
 }