From 6ed5b2e9470f7c506359459d369f4823ad91da3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 27 Feb 2010 23:17:19 +0000 Subject: [PATCH] * put is_https into a COND:IS_HTTPS --- webcit/webcit.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.30.2