Removed the unused second argument from the do_template() macro
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 24 May 2011 22:37:06 +0000 (18:37 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 24 May 2011 22:37:06 +0000 (18:37 -0400)
20 files changed:
webcit/auth.c
webcit/bbsview_renderer.c
webcit/blogview_renderer.c
webcit/graphics.c
webcit/groupdav_propfind.c
webcit/listsub.c
webcit/openid.c
webcit/preferences.c
webcit/roomchat.c
webcit/roomops.c
webcit/roomtokens.c
webcit/sieve.c
webcit/static/t/blog_comment_box.html [new file with mode: 0644]
webcit/subst.h
webcit/summary.c
webcit/sysmsgs.c
webcit/useredit.c
webcit/vcard_edit.c
webcit/webcit.c
webcit/wiki.c

index 35c2063b3f2e14a22bb97d46d0df3a9c480956ce..132586f0e95c856e73d774e85a5c0f8843ce5654 100644 (file)
@@ -64,7 +64,7 @@ void display_login(void)
 {
        begin_burst();
        output_headers(1, 0, 0, 0, 1, 0);
-       do_template("login", NULL);
+       do_template("login");
        end_burst();
 }
 
@@ -196,7 +196,7 @@ void openid_manual_create(void)
        if (havebstr("exit_action")) {
                begin_burst();
                output_headers(1, 0, 0, 0, 1, 0);
-               do_template("authpopup_finished", NULL);
+               do_template("authpopup_finished");
                end_burst();
                return;
        }
@@ -224,7 +224,7 @@ void openid_manual_create(void)
                if (WC->logged_in) {
                        begin_burst();
                        output_headers(1, 0, 0, 0, 1, 0);
-                       do_template("authpopup_finished", NULL);
+                       do_template("authpopup_finished");
                        end_burst();
                }
        } else {
@@ -237,7 +237,7 @@ void openid_manual_create(void)
                begin_burst();
                output_headers(1, 0, 0, 0, 1, 0);
                wc_printf("<html><body>");
-               do_template("openid_manual_create", NULL);
+               do_template("openid_manual_create");
                wc_printf("</body></html>");
                end_burst();
        }
@@ -364,7 +364,7 @@ void finalize_openid_login(void)
                if (WC->logged_in) {
                        begin_burst();
                        output_headers(1, 0, 0, 0, 1, 0);
-                       do_template("authpopup_finished", NULL);
+                       do_template("authpopup_finished");
                        end_burst();
                } else {
                        begin_burst();
@@ -389,7 +389,7 @@ void finalize_openid_login(void)
                begin_burst();
                output_headers(1, 0, 0, 0, 1, 0);
                wc_printf("<html><body>");
-               do_template("openid_manual_create", NULL);
+               do_template("openid_manual_create");
                wc_printf("</body></html>");
                end_burst();
        }
@@ -564,9 +564,9 @@ void validate(void)
 
        output_headers(1, 1, 1, 0, 0, 0);
 
-        do_template("beginbox_1", NULL);
+        do_template("beginbox_1");
         StrBufAppendBufPlain(WC->WBuf, _("Validate new users"), -1, 0);
-        do_template("beginbox_2", NULL);
+        do_template("beginbox_2");
 
        /* If the user just submitted a validation, process it... */
        safestrncpy(buf, bstr("user"), sizeof buf);
@@ -680,7 +680,7 @@ void validate(void)
 
        wc_printf("</div>\n");
        wc_printf("</td></tr></table>\n");
-       do_template("endbox", NULL);
+       do_template("endbox");
        wDumpContent(1);
 }
 
@@ -792,7 +792,7 @@ void display_changepw(void)
        wc_printf("</div>\n");
        wc_printf("</form>\n");
 
-       do_template("endbox", NULL);
+       do_template("endbox");
        wDumpContent(1);
 }
 
index 16a76b2413bc0be0f0d9fceadaf0aedd16115cbf..4d3ef1be90511e7fb700225f2948a1a0b9b02c70 100644 (file)
@@ -6,7 +6,7 @@
  * with it, go get commit dcf99fe61379b78436c387ea3f89ebfd4ffaf635 of
  * bbsview_renderer.c and have fun.
  *
- * Copyright (c) 1996-2010 by the citadel.org team
+ * Copyright (c) 1996-2011 by the citadel.org team
  *
  * This program is open source software.  You can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -265,7 +265,7 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat,
                                        && ( (i == 0) || (BBS->msgs[i-1] <= BBS->lastseen) )
                                ) {
                                        /* new messages start here */
-                                       do_template("start_of_new_msgs", NULL);
+                                       do_template("start_of_new_msgs");
                                        StrBufAppendPrintf(WC->trailing_javascript, "location.href=\"#newmsgs\";\n");
                                }
                                if (BBS->msgs[i] > 0L) {
@@ -276,7 +276,7 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat,
                                        && (BBS->msgs[i] <= BBS->lastseen)
                                ) {
                                        /* no new messages */
-                                       do_template("no_new_msgs", NULL);
+                                       do_template("no_new_msgs");
                                        StrBufAppendPrintf(WC->trailing_javascript, "location.href=\"#nonewmsgs\";\n");
                                }
                        }
index 3d40a798ccd022db46c535933ffada33d6b81b5b..438e3d49eeac94569cce3ed390c6ed3f64de2955 100644 (file)
@@ -102,6 +102,12 @@ void blogpost_render_and_destroy(struct blogpost *bp) {
        if (bp->alloc_msgs > 0) {
                free(bp->msgs);
        }
+
+       /* offer the comment box */
+       if (p == bp->top_level_id) {
+               do_template("blog_comment_box");
+       }
+
        free(bp);
 }
 
index a79cb0f3b1aa045b7af69a7d94b62efbcba833a3..b6bc9bd16085398ceccce9dbc6a38f57dc14592e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Handles HTTP upload of graphics files into the system.
  *
- * Copyright (c) 1996-2010 by the citadel.org team
+ * Copyright (c) 1996-2011 by the citadel.org team
  *
  * This program is open source software.  You can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -72,7 +72,7 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
        wc_printf("</div>\n");
        wc_printf("</form>\n");
 
-       do_template("endbox", NULL);
+       do_template("endbox");
 
        wDumpContent(1);
 }
index f644bb740a834d3dd9759a55ac4f85d1fb3bd9c1..1580d494652cb0e8d45dafdabae50e1a71cf31db 100644 (file)
@@ -10,7 +10,7 @@
  *     This makes it difficult to read, but we have discovered clients which
  *     crash when you try to pretty it up.
  *
- * Copyright (c) 2005-2010 by the citadel.org team
+ * Copyright (c) 2005-2011 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -494,7 +494,7 @@ void groupdav_propfind(void)
                /*
                 * If the client is requesting the root, show a root node.
                 */
-               do_template("dav_propfind_top", NULL);
+               do_template("dav_propfind_top");
                end_burst();
                FreeStrBuf(&dav_roomname);
                FreeStrBuf(&dav_uid);
index 05038e277ec7af49b0e80f68eca80cd893c9ba4c..0560d524879491dd8a12fc3c4ba377e9348a471a 100644 (file)
@@ -1,5 +1,21 @@
 /*
  * Web forms for handling mailing list subscribe/unsubscribe requests.
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "webcit.h"
@@ -46,9 +62,9 @@ void do_listsub(void)
        wc_printf("<div align=center>");
        wc_printf("<table border=0 width=75%%><tr><td>");
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WC->WBuf, _("List subscribe/unsubscribe"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
        wc_printf("<div align=center><br>");
 
        /*
@@ -214,7 +230,7 @@ FORM:               wc_printf("<form method=\"POST\" action=\"listsub\">\n");
        }
 
        wc_printf("</div>");
-       do_template("endbox", NULL);
+       do_template("endbox");
        wc_printf("</td></tr></table></div>");
 
        wc_printf("</BODY></HTML>\n");
index 28af729227eaf57b9f63f21435ae9b1b8da6481a..5a6c8e9f5a639450fbfd4daa616e2620f64bd924 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
 
 #include "webcit.h"
 #include "webserver.h"
@@ -13,9 +30,9 @@ void display_openids(void)
 
        output_headers(1, 1, 1, 0, 0, 0);
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WCC->WBuf, _("Manage Account/OpenID Associations"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
 
        if (WCC->serv_info->serv_supports_openid) {
 
@@ -51,7 +68,7 @@ void display_openids(void)
                wc_printf(_("%s does not permit authentication via OpenID."), ChrPtr(WCC->serv_info->serv_humannode));
        }
 
-       do_template("endbox", NULL);
+       do_template("endbox");
        wDumpContent(2);
 }
 
index 9ed1f830cb7ce2e72371b3a462bf896d5c2629fb..5f8022304cba2b4c8a3b2cb01d0a99859259dd9a 100644 (file)
@@ -1,7 +1,24 @@
 /*
  * Manage user preferences with a little help from the Citadel server.
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+
 #include "webcit.h"
 #include "webserver.h"
 #include "groupdav.h"
@@ -1117,7 +1134,7 @@ void change_start_page(void)
                               NULL);
 
        output_headers(1, 1, 0, 0, 0, 0);
-       do_template("newstartpage", NULL);
+       do_template("newstartpage");
        wDumpContent(1);
 }
 
index 4fcc714dcdd1c9ead8030f868e345278d3b34e7c..90a9162b70bafee2ed2dc593db039c65803444aa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This module handles multiuser chat.
  *
- * Copyright (c) 1996-2010 by the citadel.org team
+ * Copyright (c) 1996-2011 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "webcit.h"
@@ -32,7 +32,7 @@ void do_chat(void)
        WC->last_chat_user[0] = 0;
 
        output_headers(1, 1, 1, 0, 0, 0);
-       do_template("roomchat", NULL);
+       do_template("roomchat");
 
        serv_puts("RCHT enter");
        serv_getln(buf, sizeof buf);
index c32aa70c5e92794af105c65625d7b99b9488a019..3454a40a6e36c9ba233bfd7b96361dc15f549585 100644 (file)
@@ -668,7 +668,7 @@ void toggle_self_service(void) {
 
        SetCurrentRoomFlags (&WCC->CurRoom);
        
-       http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
 }
 
 
@@ -691,7 +691,7 @@ void editroom(void)
        if (!havebstr("ok_button")) {
                strcpy(WC->ImportantMessage,
                       _("Cancelled.  Changes were not saved."));
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                return;
        }
        if (GetCurrentRoomFlags (&WCC->CurRoom) == 0)
@@ -819,7 +819,7 @@ void editroom(void)
        
        if (succ1 + succ2 == 0)
                AppendImportantMessage (_("Your changes have been saved."), -1);
-       http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
        return;
 }
 
@@ -888,7 +888,7 @@ void do_invt_kick(void)
                 }
         }
 
-       http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
 }
 
 
@@ -950,7 +950,7 @@ void entroom(void)
        WCC->CurRoom.view = er_view;
 
        if ( (WCC != NULL) && ( (WCC->CurRoom.RAFlags & UA_ADMINALLOWED) != 0) )  {
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
        } else {
                smart_goto(WCC->CurRoom.name);
        }
@@ -986,7 +986,7 @@ void set_room_policy(void) {
        if (!havebstr("ok_button")) {
                strcpy(WC->ImportantMessage,
                       _("Cancelled.  Changes were not saved."));
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                return;
        }
 
@@ -1001,7 +1001,7 @@ void set_room_policy(void) {
                strcat(WC->ImportantMessage, &buf[4]);
        }
        ReloadCurrentRoom();
-       http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
 }
 
 
@@ -1041,14 +1041,14 @@ void netedit(void) {
                strcat(line, bstr("suffix"));
        }
        else {
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                return;
        }
 
 
        fp = tmpfile();
        if (fp == NULL) {
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                return;
        }
 
@@ -1059,7 +1059,7 @@ void netedit(void) {
                fclose(fp);
                AppendImportantMessage(SRV_STATUS_MSG(Line));   
                FreeStrBuf(&Line);
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                return;
        }
 
@@ -1091,7 +1091,7 @@ void netedit(void) {
        if  (GetServerStatus(Line, NULL) != 4) {
                fclose(fp);
                AppendImportantMessage(SRV_STATUS_MSG(Line));   
-               http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+               http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
                FreeStrBuf(&Line);
                return;
        }
@@ -1125,7 +1125,7 @@ void netedit(void) {
        FlushIgnetCfgs(&WC->CurRoom);
        FreeStrBuf(&Line);
 
-       http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
 }
 
 /*
@@ -1135,7 +1135,7 @@ void knrooms(void)
 {
        DeleteHash(&WC->Rooms);
        output_headers(1, 1, 1, 0, 0, 0); 
-       do_template("knrooms", NULL);
+       do_template("knrooms");
        wDumpContent(1);
 }
 
@@ -1185,7 +1185,7 @@ void delete_floor(void) {
        AppendImportantMessage (SKEY(Buf));
 
        FlushRoomlist();
-       http_transmit_thing(ChrPtr(do_template("floors", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("floors")), 0);
        FreeStrBuf(&Buf);
 }
 
@@ -1208,7 +1208,7 @@ void create_floor(void) {
        }
        AppendImportantMessage (SKEY(Buf));
        FlushRoomlist();
-       http_transmit_thing(ChrPtr(do_template("floors", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("floors")), 0);
        FreeStrBuf(&Buf);
 }
 
@@ -1228,7 +1228,7 @@ void rename_floor(void) {
        StrBufCutLeft(Buf, 4);
        AppendImportantMessage (SKEY(Buf));
 
-       http_transmit_thing(ChrPtr(do_template("floors", NULL)), 0);
+       http_transmit_thing(ChrPtr(do_template("floors")), 0);
        FreeStrBuf(&Buf);
 }
 
index df6b1581a62967e3cfabcde9358ec2e171f49044..21653af5263fa203d2ed69a3eff3855f8c10225b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Lots of different room-related operations.
  *
- * Copyright (c) 1996-2010 by the citadel.org team
+ * Copyright (c) 1996-2011 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as published
@@ -53,9 +53,9 @@ void tmplput_roombanner(StrBuf *Target, WCTemplputParams *TP)
        }
        StrBufPrintf(WCC->Hdr->this_page, "dotskip?room=%s", ChrPtr(WC->CurRoom.name));
 
-       do_template("roombanner", NULL);
+       do_template("roombanner");
 
-       do_template("navbar", NULL);
+       do_template("navbar");
        wc_printf("</div>\n");
 }
 
index 99bc5aa5a882b1935fe5cee7e15defed1695b43a..0db8f5ae0bca9b1cdc1ec4e0c26bb51ab867d5a5 100644 (file)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
 #include "webcit.h"
 
 #define MAX_SCRIPTS    100
@@ -651,9 +669,9 @@ void display_add_remove_scripts(char *message)
 
        wc_printf("<table border=0 cellspacing=10><tr valign=top><td>\n");
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WC->WBuf, _("Add a new script"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
 
        wc_printf(_("To create a new script, enter the desired "
                "script name in the box below and click 'Create'."));
@@ -666,21 +684,21 @@ void display_add_remove_scripts(char *message)
                "<input type=\"submit\" name=\"create_button\" value=\"%s\">"
                "</form></center>\n", _("Create"));
 
-       do_template("endbox", NULL);
+       do_template("endbox");
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WC->WBuf, _("Edit scripts"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
        wc_printf("<br><div align=center><a href=\"display_sieve\">%s</a><br><br>\n",
                _("Return to the script editing screen")
        );
-       do_template("endbox", NULL);
+       do_template("endbox");
 
        wc_printf("</td><td>");
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WC->WBuf, _("Delete scripts"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
 
        wc_printf(_("To delete an existing script, select the script "
                "name from the list and click 'Delete'."));
@@ -708,7 +726,7 @@ void display_add_remove_scripts(char *message)
         wc_printf("<input type=\"submit\" name=\"delete_button\" value=\"%s\" "
                "onClick=\"return confirm('%s');\">", _("Delete script"), _("Delete this script?"));
         wc_printf("</form></center>\n");
-       do_template("endbox", NULL);
+       do_template("endbox");
 
        wc_printf("</td></tr></table>\n");
 
diff --git a/webcit/static/t/blog_comment_box.html b/webcit/static/t/blog_comment_box.html
new file mode 100644 (file)
index 0000000..a67ebd0
--- /dev/null
@@ -0,0 +1,5 @@
+<div class="blog_comment">
+Be the first or the last to leave a comment here.  First post!
+<br>
+<TEXTAREA NAME="comments" COLS=80 ROWS=10></TEXTAREA>
+</div>
index 906768316401a624f9ea6c257eaa9e2e1e5275ce..ed0d4500a2e457372d0e789da51d266350280958 100644 (file)
@@ -359,7 +359,7 @@ void RegisterSortFunc(const char *name, long len,
 
 void dbg_print_longvector(long *LongVector);
 
-#define do_template(a, b) DoTemplate(a, sizeof(a) -1, NULL, &NoCtx)
+#define do_template(a) DoTemplate(a, sizeof(a) -1, NULL, &NoCtx)
 const StrBuf *DoTemplate(const char *templatename, long len, StrBuf *Target, WCTemplputParams *TP);
 void url_do_template(void);
 
index 0df287f3f79effc55d5a00a7af7861d636570e0e..1e0d8e160865175109f668dfa862a9e272d84817 100644 (file)
@@ -1,5 +1,21 @@
 /*
  * Displays the "Summary Page"
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "webcit.h"
@@ -236,7 +252,7 @@ void summary_inner_div(void) {
        wc_printf(_("Who's&nbsp;online&nbsp;now"));
        wc_printf("</div><div class=\"boxcontent\">");  
        wc_printf("<div id=\"who_inner\">");    
-       do_template("who_summary", NULL);
+       do_template("who_summary");
        wc_printf("</div></div></div>");
        wc_printf("</td>");
 
index dbe446a3f24df1926da67f829f35fd0d2d8a7dc7..6c0ce1d04ae2d7241b135c0859cb2eb234063084 100644 (file)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
 #include "webcit.h"
 
 
@@ -29,9 +47,9 @@ void display_edit(char *description, char *check_cmd,
                output_headers(1, 1, 0, 0, 0, 0);
        }
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendPrintf (WC->WBuf, _("Edit %s"), description);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
 
        wc_printf(_("Enter %s below. Text is formatted to the reader's browser."
                " A newline is forced by preceding the next line by a blank."), description);
@@ -50,7 +68,7 @@ void display_edit(char *description, char *check_cmd,
        wc_printf("<input type=\"submit\" name=\"cancel_button\" value=\"%s\"><br>\n", _("Cancel"));
        wc_printf("</div></form>\n");
 
-       do_template("endbox", NULL);
+       do_template("endbox");
        wDumpContent(1);
 }
 
index 0f77cb2b58d93d8e66259aeaaff15f7c4cc55f9d..56b6622f20295f87913fd2751e5a2824c4faa8d1 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
 
 #include "webcit.h"
 #include "webserver.h"
@@ -11,7 +28,7 @@
 void select_user_to_edit(const char *preselect)
 {
        output_headers(1, 0, 0, 0, 1, 0);
-       do_template("aide_edituser_select", NULL);
+       do_template("aide_edituser_select");
         end_burst();
 }
 
index 44dde3f8d2064ae1bf99991f0c71465a6831bad5..3fbde0520987b241b3100fca00a0e156222deb4e 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
 
 #include "webcit.h"
 #include "webserver.h"
@@ -1032,9 +1049,9 @@ void do_edit_vcard(long msgnum, char *partnum,
        /* Display the form */
        output_headers(1, 1, 1, 0, 0, 0);
 
-       do_template("beginbox_1", NULL);
+       do_template("beginbox_1");
        StrBufAppendBufPlain(WC->WBuf, _("Edit contact information"), -1, 0);
-       do_template("beginbox_2", NULL);
+       do_template("beginbox_2");
 
        wc_printf("<form method=\"POST\" action=\"submit_vcard\">\n");
        wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
@@ -1205,7 +1222,7 @@ void do_edit_vcard(long msgnum, char *partnum,
        );
        
        wc_printf("</td></tr></table>\n");
-       do_template("endbox", NULL);
+       do_template("endbox");
        wDumpContent(1);
        if (Msg != NULL) {
                DestroyMessageSummary(Msg);
index e1e270c2ffbc5386274825662ecb09fe4ff66f01..6727f38782e0ff4a6cc12bcd6e846c0d7a83e1e2 100644 (file)
@@ -123,7 +123,7 @@ void wDumpContent(int print_standard_html_footer)
 {
        if (print_standard_html_footer) {
                wc_printf("</div> <!-- end of 'content' div -->\n");
-               do_template("trailing", NULL);
+               do_template("trailing");
        }
 
        /* If we've been saving it all up for one big output burst,
@@ -195,7 +195,7 @@ void output_headers(        int do_httpheaders,     /* 1 = output HTTP headers                        */
 
        if (do_htmlhead) {
                begin_burst();
-               do_template("head", NULL);
+               do_template("head");
 
                /* check for ImportantMessages (these display in a div overlaying the main screen) */
                if (!IsEmptyStr(WCC->ImportantMessage)) {
index b183fdbd42d24d043272c1fc06bef858d6658c99..6c8da5590b0465126d35a4da79ec5e81ce412fd7 100644 (file)
@@ -256,7 +256,7 @@ void tmplput_display_wiki_history(StrBuf *Target, WCTemplputParams *TP)
 void display_wiki_history(void)
 {
        output_headers(1, 1, 1, 0, 0, 0);
-       do_template("wiki_history", NULL);
+       do_template("wiki_history");
        wDumpContent(1);
 }
 
@@ -327,7 +327,7 @@ void tmplput_display_wiki_pagelist(StrBuf *Target, WCTemplputParams *TP)
 void display_wiki_pagelist(void)
 {
        output_headers(1, 1, 1, 0, 0, 0);
-       do_template("wiki_pagelist", NULL);
+       do_template("wiki_pagelist");
        wDumpContent(1);
 }