X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_birthday.php;h=b194ef628f45829cf204e1632717a28b04bf337d;hb=499c5676104cbdcbf480cdab20a28a14247ac442;hp=dc3f70660a635dd05f8aa3822855f840e6cf6b8e;hpb=7db85bc0c45b62c28ba49e728f489ad4bc1c115f;p=mailer.git diff --git a/inc/reset/reset_birthday.php b/inc/reset/reset_birthday.php index dc3f70660a..b194ef628f 100644 --- a/inc/reset/reset_birthday.php +++ b/inc/reset/reset_birthday.php @@ -46,6 +46,9 @@ if (!defined('__SECURITY')) { return; } +// Debug line +//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started.'); + // Get current day (01 to 31), month (01 to 12) and year (4-digits year) $day = getDay(); $month = getMonth(); @@ -88,7 +91,7 @@ if (!SQL_HASZERONUMS($result_birthday)) { // @TODO 4 is hard-coded here, should we move it out in config? for ($idx = '0'; $idx < 4; $idx++) { - $content['check'] .= generateRandomCode('8', mt_rand(0, $month.$day), $content['userid'], ($age * ($idx + 1))); + $content['check'] .= generateRandomCode('8', mt_rand(0, $month . $day), $content['userid'], ($age * ($idx + 1))); } // END - for // Insert row into database @@ -117,5 +120,8 @@ if (!SQL_HASZERONUMS($result_birthday)) { SQL_FREERESULT($result_birthday); } // END - if +// Debug line +//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended.'); + // [EOF] ?>