Security line in all includes changed
[mailer.git] / inc / modules / admin / what-usr_online.php
index 3a2a30b51f281d420d6de49caf0034160d653fb8..6ec2f99a507802ae3f489a710fd4b86f47d65224 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);
 }