Security line in all includes changed
[mailer.git] / inc / db / lib.php
index 5d9a30891e5a284edf6e2a73a1877cf921649d65..7578d6077012f93178cb010603cf24948f56ea63 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);
 }