generateDateTime($content['holiday_end'] , 3), 'holiday_start' => generateDateTime($content['holiday_start'], 3), 'holiday_comments' => $content['comments'] )); // Send mail to user $message = loadEmailTemplate('member_holiday_unlock', $content, $content['userid']); sendEmail($content['userid'], '{--MEMBER_HOLIDAY_UNLOCK_SUBJECT--}', $message); // Remember userid for admin $admin .= $content['userid'] . PHP_EOL; } // END - if // Send mail to admins sendAdminNotification('{--ADMIN_HOLIDAY_UNLOCK_SUBJECT--}', 'admin_holiday_unlock', $admin); // Run all SQLs runFilterChain('run_sqls'); } // END - if // Free memory sqlFreeResult($result_stop); } // ---------------------------------------------------------------------------- // Wrapper functions for configuration entries // ---------------------------------------------------------------------------- // Getter for user_alpha function getHolidayLock () { // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('holiday_lock'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // [EOF] ?>