Security line in all includes changed
[mailer.git] / inc / extensions / ext-active.php
index 7ede8afbbdd3742f66e9d8f8afd67ce94987b78b..3891b61ff296801291e39c1495f02a618171f446 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);
 }