Security line in all includes changed
[mailer.git] / inc / modules / admin / what-cache_stats.php
index b22172c7deb8479267cd487f7144ac6071c7b4d1..121f202bde3994841e51be127b205805cb66bf1f 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
-{
+if ((!defined('__SECURITY')) || (!is_admin())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }