while ($content = SQL_FETCHARRAY($result_stop)) {
// Stop holiday
addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_holidays` WHERE `userid`=%s LIMIT 1",
- array(bigintval($content['userid'])), __FUNCTION__, __LINE__, false));
+ array(bigintval($content['userid'])), __FUNCTION__, __LINE__, FALSE));
// Unlock account
addSql(SQL_QUERY_ESC("UPDATE
WHERE
`userid`=%s
LIMIT 1",
- array(bigintval($content['userid'])), __FUNCTION__, __LINE__, false));
+ array(bigintval($content['userid'])), __FUNCTION__, __LINE__, FALSE));
// Prepare array
$content = merge_array($content, array(
sendEmail($content['userid'], '{--MEMBER_HOLIDAY_UNLOCK_SUBJECT--}', $message);
// Remember userid for admin
- $admin .= $content['userid'].chr(10);
+ $admin .= $content['userid'] . PHP_EOL;
} // END - if
// Send mail to admins
SQL_FREERESULT($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]
?>