]> git.mxchange.org Git - mailer.git/commitdiff
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 ca19c3221b2ee1ff536c745a72d95ec7bde86d41..08df3c6eff4c7819df66338e25bad8a1b425b0a0 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 a6509b16ac03e53bab2f64768db6ce1889292aea..c1a528cb7ad01d4b894719a0ddf3f044198efae7 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 d1ec3e990f5c2445e2d157f272015dec9d716987..363bca731cd0feae1a4f11ed7a076d092c890b41 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);
 }