Security line in all includes changed
[mailer.git] / inc / libs / register_functions.php
index 4ae9dba3bad6d038bcc9b84e5f716009e6f525e3..f3c140674acce8bdc86ef22c711f421277942230 100644 (file)
@@ -32,8 +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);
 }