Security line in all includes changed
[mailer.git] / theme / desert / theme.php
index 375f88918ab912e29593d197070c975ec218a64c..aa446590e473e8151b7b39d61c9c89c13e50a9b9 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);
 }