Security line in all includes changed
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index a47c9567da87068fa177ba7419fc600c3c141950..7e0f927854210b40610960d95463890275755a23 100644 (file)
@@ -31,8 +31,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);
 }