]> git.mxchange.org Git - mailer.git/blobdiff - inc/fatal_errors.php
Security line in all includes changed
[mailer.git] / inc / fatal_errors.php
index 05959f4e2623c2170d3f281b58314d9950318ed9..96a7d8539eb39de32922d865aa1654d63bf4feac 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }