]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib.php
Extensions 'admins' and 'task' are now always active
[mailer.git] / inc / db / lib.php
index 5d9a30891e5a284edf6e2a73a1877cf921649d65..4384bfea813a58fa0e813a765fa08055e6f6d573 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);
 }
@@ -51,5 +51,8 @@ if ((file_exists($INC)) && (is_readable($INC))) {
        die("Cannot load database abstraction layer! R.I.P.");
 }
 
+// Remove this globally used variable
+unset($INC);
+
 //
 ?>