From 6f1846672284d64b74a10937813320271293ad66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 17 Aug 2008 10:53:12 +0000 Subject: [PATCH] * add new 'Context' Parameter to the template call * add PREF:VALUE("ConvigValueName") which will give you the value of a config * add PREF:DESCR("ConfigValueName") which will give you the locale string describing that setting --- webcit/auth.c | 10 +++++----- webcit/graphics.c | 4 ++-- webcit/inetconf.c | 4 ++-- webcit/listsub.c | 4 ++-- webcit/mainmenu.c | 16 ++++++++-------- webcit/messages.c | 4 ++-- webcit/openid.c | 4 ++-- webcit/paging.c | 2 +- webcit/preferences.c | 24 ++++++++++++++++++++++++ webcit/pushemail.c | 6 +++--- webcit/roomops.c | 20 ++++++++++---------- webcit/rss.c | 6 +++--- webcit/sieve.c | 12 ++++++------ webcit/subst.c | 33 +++++++++++++++++---------------- webcit/summary.c | 4 ++-- webcit/sysmsgs.c | 4 ++-- webcit/useredit.c | 8 ++++---- webcit/vcard_edit.c | 4 ++-- webcit/webcit.c | 12 ++++++------ webcit/webcit.h | 8 +++++--- 20 files changed, 108 insertions(+), 81 deletions(-) diff --git a/webcit/auth.c b/webcit/auth.c index db5ed181c..0b01a16b8 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -97,7 +97,7 @@ void display_login(char *mesg) svput("OFFER_OPENID_LOGIN", WCS_STRING, ""); } - do_template("login"); + do_template("login", NULL); wDumpContent(2); } @@ -153,7 +153,7 @@ void display_openid_login(char *mesg) "Log in using a user name and password" ); - do_template("openid_login"); + do_template("openid_login", NULL); wDumpContent(2); } @@ -188,7 +188,7 @@ void display_openid_name_request(char *claimed_id, char *username) { svprintf(HKEY("BOXTITLE"), WCS_STRING, _("%s - powered by Citadel"), serv_info.serv_humannode); - do_template("openid_manual_create"); + do_template("openid_manual_create", NULL); wDumpContent(2); } @@ -795,7 +795,7 @@ void display_changepw(void) output_headers(1, 1, 1, 0, 0, 0); svput("BOXTITLE", WCS_STRING, _("Change your password")); - do_template("beginbox"); + do_template("beginbox", NULL); if (!IsEmptyStr(WC->ImportantMessage)) { wprintf("" @@ -829,7 +829,7 @@ void display_changepw(void) wprintf("\n"); wprintf("\n"); - do_template("endbox"); + do_template("endbox", NULL); wDumpContent(1); } diff --git a/webcit/graphics.c b/webcit/graphics.c index 9cc0d4145..601b4d0a4 100644 --- a/webcit/graphics.c +++ b/webcit/graphics.c @@ -25,7 +25,7 @@ void display_graphics_upload(char *description, char *filename, char *uplurl) output_headers(1, 1, 1, 0, 0, 0); svput("BOXTITLE", WCS_STRING, _("Image upload")); - do_template("beginbox"); + do_template("beginbox", NULL); wprintf("
\n", uplurl); @@ -52,7 +52,7 @@ void display_graphics_upload(char *description, char *filename, char *uplurl) wprintf("\n"); wprintf("
\n"); - do_template("endbox"); + do_template("endbox", NULL); wDumpContent(1); } diff --git a/webcit/inetconf.c b/webcit/inetconf.c index ad27d97b5..87964d305 100644 --- a/webcit/inetconf.c +++ b/webcit/inetconf.c @@ -105,7 +105,7 @@ void display_inetconf(void) wprintf(""); } svput("BOXTITLE", WCS_STRING, ic_boxtitle[which]); - do_template("beginbox"); + do_template("beginbox", NULL); wprintf(""); escputs(ic_desc[which]); wprintf("
"); @@ -141,7 +141,7 @@ void display_inetconf(void) wprintf("" "" "\n"); - do_template("endbox"); + do_template("endbox", NULL); wprintf("
"); } wprintf("\n"); diff --git a/webcit/listsub.c b/webcit/listsub.c index ce9b1ed52..604d3d47b 100644 --- a/webcit/listsub.c +++ b/webcit/listsub.c @@ -49,7 +49,7 @@ void do_listsub(void) wprintf("
"); svput("BOXTITLE", WCS_STRING, _("List subscribe/unsubscribe")); - do_template("beginbox"); + do_template("beginbox", NULL); wprintf("

"); /* @@ -217,7 +217,7 @@ FORM: wprintf("
\n"); } wprintf("
"); - do_template("endbox"); + do_template("endbox", NULL); wprintf("
"); wprintf("\n"); diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index 1ec145374..040294d62 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -17,7 +17,7 @@ void display_main_menu(void) "\n"); svput("BOXTITLE", WCS_STRING, _("Basic commands")); - do_template("beginbox"); + do_template("beginbox", NULL); /* start of first column */ wprintf("