Security line in all includes changed
[mailer.git] / inc / modules / guest / what-beg.php
index 0340496b2b92ba2ebc465a2d80715e4092a87744..81828860660ae6d65bd0dbaccdce80f2fb0d976b 100644 (file)
@@ -32,7 +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);
 } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {