From: Wilfried Göesgens Date: Sat, 27 Feb 2010 23:17:19 +0000 (+0000) Subject: * put is_https into a COND:IS_HTTPS X-Git-Tag: v7.86~364 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6ed5b2e9470f7c506359459d369f4823ad91da3b * put is_https into a COND:IS_HTTPS --- diff --git a/webcit/webcit.c b/webcit/webcit.c index faf3d7462..292b12567 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -764,6 +764,10 @@ void sleeeeeeeeeep(int seconds) select(0, NULL, NULL, NULL, &tv); } +int Conditional_IS_HTTPS(StrBuf *Target, WCTemplputParams *TP) +{ + return is_https != 0; +} int ConditionalImportantMesage(StrBuf *Target, WCTemplputParams *TP) { @@ -822,6 +826,7 @@ InitModule_WEBCIT WebcitAddUrlHandler(HKEY("401"), "", 0, authorization_required, ANONYMOUS|COOKIEUNNEEDED); RegisterConditional(HKEY("COND:IMPMSG"), 0, ConditionalImportantMesage, CTX_NONE); RegisterConditional(HKEY("COND:REST:DEPTH"), 0, Conditional_REST_DEPTH, CTX_NONE); + RegisterConditional(HKEY("COND:IS_HTTPS"), 0, Conditional_IS_HTTPS, CTX_NONE); RegisterNamespace("CSSLOCAL", 0, 0, tmplput_csslocal, NULL, CTX_NONE); RegisterNamespace("IMPORTANTMESSAGE", 0, 0, tmplput_importantmessage, NULL, CTX_NONE);