Security line in all includes changed
[mailer.git] / inc / modules / guest / what-infos.php
index c3ff0997005be8d89a35a6af5c4dd047f8861366..ae5be500264769c324b3229c389b65237e1c627b 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);
 }