]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_sql_patches.php
Template fixes, lesser admin data will be loaded from database
[mailer.git] / inc / gen_sql_patches.php
index 45e7a626c3eb019473007033825a675ed7dbd031..467e4b4ecb735cc4cfe693174516a5cd2fb8b8bf 100644 (file)
  ************************************************************************/
 
 // 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'])) {