X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fgen_sql_patches.php;h=467e4b4ecb735cc4cfe693174516a5cd2fb8b8bf;hb=811c2a74188a97591fb05ed1dd3d1929b8bc23aa;hp=45e7a626c3eb019473007033825a675ed7dbd031;hpb=41e2891fb998d13b22b8d7984358f258cc85267d;p=mailer.git diff --git a/inc/gen_sql_patches.php b/inc/gen_sql_patches.php index 45e7a626c3..467e4b4ecb 100644 --- a/inc/gen_sql_patches.php +++ b/inc/gen_sql_patches.php @@ -32,13 +32,13 @@ ************************************************************************/ // 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); } // Check for version of sql_patches -if (GET_EXT_VERSION("sql_patches") < "0.3.6") return false; +if (EXT_VERSION_IS_OLDER("sql_patches", "0.3.6")) return false; // Check if there is no scrambling string if (empty($_CONFIG['pass_scramble'])) {