Security line in all includes changed
[mailer.git] / inc / autopurge / purge-tsks.php
index e862111a45e7e26cb45a27e8fd02ec9626a09f28..a2a9038b12fb63a5e33e46077ae09cedffa7389e 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);
 } // END - if