X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/c28965b6f095c30c7a9cc886d54c2a5d94304f46..17a81109286e0e7a83bc662d9710c79ba4c0315c:/includes/functions.inc diff --git a/includes/functions.inc b/includes/functions.inc index 1704bc5..b174e88 100644 --- a/includes/functions.inc +++ b/includes/functions.inc @@ -72,6 +72,9 @@ define("MOD_ROOM_RESERVATION_ERROR_CONFIG_NO_SUCH_TIMESLICE", /** There is no such account */ define("MOD_ROOM_RESERVATION_ERROR_NO_SUCH_ACCOUNT", _c("room-reservation:". "The specified account does not exist.")); +/** The room is not available for booking */ +define("MOD_ROOM_RESERVATION_ERROR_ROOM_NOT_WHITELISTED", + _c("room-reservation:This room is not available for booking.")); /** * @} */ @@ -183,7 +186,7 @@ function isMailAddress($strAddr) { * @return void */ function rrInsertLog($strLog) { - log_insert("Raumbelegungsplan: " . $strLog); + log_insert($strLog, null, "Room Reservation Schedule"); } /** @@ -222,7 +225,7 @@ function rrGetMonday($ts = null) { } /** (array of strings) Additional CSS rules */ -$rsLocalCss = array(); +$GLOBALS["rrLocalCss"] = array(); /** * Add CSS rules to the page @@ -230,17 +233,17 @@ $rsLocalCss = array(); * @return void */ function rrAddCss($s) { - rrDebug("rsAddCss: add \"$s\""); - $GLOBALS["rsLocalCss"][] = $s; + rrDebug("rrAddCss: add \"$s\""); + $GLOBALS["rrLocalCss"][] = $s; } /** - * Get CSS rules that have been added with rmAddCss() + * Get CSS rules that have been added with rrAddCss() * @return string */ -function rrGetCSS() { - rrDebug("rsGetCss: Local CSS is ".var_export($GLOBALS["rsLocalCss"], true)); - return implode("\n", $GLOBALS["rsLocalCss"]); +function rrGetCss() { + rrDebug("rrGetCss: Local CSS is ".var_export($GLOBALS["rrLocalCss"], true)); + return implode("\n", $GLOBALS["rrLocalCss"]); } function rrDebug($s, $bReturn = false) {