Security line in all includes changed
[mailer.git] / inc / autopurge / purge-inact.php
index ee36736c0036c2bd185df5f27a908f473d869237..053148b5e5cee9ccc1353824f3fc4a2a1b4a93c1 100644 (file)
  ************************************************************************/
 
 // 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
 
 // Abort if autopurge is not active or disabled by admin
 if ((!EXT_IS_ACTIVE("autopurge")) || ($_CONFIG['auto_purge_active'] == "N")) {
        // Abort here
        return false;
-}
+} // END - if
 
 // Shall I look for inactive accounts and autopurge inactive accounts?
 if ($_CONFIG['ap_inactive'] == "Y") {