Security line in all includes changed
[mailer.git] / inc / modules / admin / what-stats_mods.php
index 535169008608f150ea7163e5b9d406d81bd84497..fc69db6d3e89a7710d8a5315ce00a9ba55602876 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);
 }