X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fcheck-reset.php;h=56ffcadbbce123cc8ba96c00ca6709e52e4ba079;hb=b8bb07ca2993ae80746a809853fdd46f5cde14e3;hp=9f63668d342e24e9b99799d684398aa844365645;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git diff --git a/inc/check-reset.php b/inc/check-reset.php index 9f63668d34..56ffcadbbc 100644 --- a/inc/check-reset.php +++ b/inc/check-reset.php @@ -38,13 +38,13 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // Shall we run the reset scripts? If a day has changed, maybe also a week/month has changed... Simple! :D // 01 2 3 32 2 3321 1 221 1 221 1 221 1 23 321 1 10 -if ((date("d", getConfig('last_update')) != date("d", time())) && (!isInstalling()) && (isInstalled()) && (isAdminRegistered()) && (!REQUEST_ISSET_GET(('register'))) && ($GLOBALS['output_mode'] != 1)) { +if ((date('d', getConfig('last_update')) != date('d', time())) && (!isInstalling()) && (isInstalled()) && (isAdminRegistered()) && (!REQUEST_ISSET_GET(('register'))) && ($GLOBALS['output_mode'] != 1)) { // Tell every module we are in reset-mode! enableResetMode();