X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fpatch-system.php;h=c0daae62382570b7ea3c173c066018559883ab39;hb=87dc69ba8951e298966881cbb83dfaeebe30a0ff;hp=19659950bfa2e662378900bc91f45d3ce90793da;hpb=7d96ffc18679f7aeb05ce3ab091f200c4a18f144;p=mailer.git diff --git a/inc/patch-system.php b/inc/patch-system.php index 19659950bf..c0daae6238 100644 --- a/inc/patch-system.php +++ b/inc/patch-system.php @@ -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); } @@ -41,7 +40,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) // Check for patch level differences between databases and current hard-coded if (CURR_SVN_REVISION > $_CONFIG['patch_level']) { // Update database and CONFIG array - UPDATE_CONFIG(array("patch_level", "path_ctime"), array(CURR_SVN_REVISION, "UNIX_TIMESTAMP()")); + UPDATE_CONFIG(array("patch_level", "patch_ctime"), array(CURR_SVN_REVISION, "UNIX_TIMESTAMP()")); $_CONFIG['patch_level'] = CURR_SVN_REVISION; $_CONFIG['patch_ctime'] = time(); } // END - if