]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_guestnl_cat.php
Security line in all includes changed
[mailer.git] / inc / modules / admin / what-add_guestnl_cat.php
index 2ae7ea347e3de738812f3e37ce5be6dda9812cb7..18982007bbb4424b0822a73b9c655f009e9135ba 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);
 }