Security line in all includes changed
[mailer.git] / inc / gen_sql_patches.php
index 45e7a626c3eb019473007033825a675ed7dbd031..0903d68470947c1253782fe39a7ee8a4119bfc3b 100644 (file)
@@ -32,7 +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);
 }