/** Begin parsing the request. */
#ifdef TECH_PREVIEW
if ((strncmp(req->line+4, "/sslg", 5) != 0) &&
+ (strncmp(req->line+4, "/static/", 8) != 0) &&
(strncmp(req->line+4, "/wholist_section", 16) != 0)) {
#endif
lprintf(5, "HTTP: %s\n", buf);
}
+
+void tmpl_nonce(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context)
+{
+ struct wcsession *WCC = WC;
+ StrBufAppendPrintf(Target, "%ld",
+ (WCC != NULL)? WCC->nonce:0);
+}
+
+void
+InitModule_CONTEXT
+(void)
+{
+ RegisterNamespace("NONCE", 0, 0, tmpl_nonce);
+}