{
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
- do_template("login", NULL);
+ do_template("login");
end_burst();
}
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;
}
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();
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();
}
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();
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();
}
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);
wc_printf("</div>\n");
wc_printf("</td></tr></table>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
}
wc_printf("</div>\n");
wc_printf("</form>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
}
* 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
&& ( (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) {
&& (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");
}
}
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);
}
/*
* 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
wc_printf("</div>\n");
wc_printf("</form>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
}
* 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
/*
* 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);
/*
* 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"
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>");
/*
}
wc_printf("</div>");
- do_template("endbox", NULL);
+ do_template("endbox");
wc_printf("</td></tr></table></div>");
wc_printf("</BODY></HTML>\n");
+/*
+ * 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"
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) {
wc_printf(_("%s does not permit authentication via OpenID."), ChrPtr(WCC->serv_info->serv_humannode));
}
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(2);
}
/*
* 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"
NULL);
output_headers(1, 1, 0, 0, 0, 0);
- do_template("newstartpage", NULL);
+ do_template("newstartpage");
wDumpContent(1);
}
/*
* 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
*
* 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"
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);
SetCurrentRoomFlags (&WCC->CurRoom);
- http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+ http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
}
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)
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;
}
}
}
- http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+ http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
}
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);
}
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;
}
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);
}
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;
}
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;
}
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;
}
FlushIgnetCfgs(&WC->CurRoom);
FreeStrBuf(&Line);
- http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
+ http_transmit_thing(ChrPtr(do_template("room_edit")), 0);
}
/*
{
DeleteHash(&WC->Rooms);
output_headers(1, 1, 1, 0, 0, 0);
- do_template("knrooms", NULL);
+ do_template("knrooms");
wDumpContent(1);
}
AppendImportantMessage (SKEY(Buf));
FlushRoomlist();
- http_transmit_thing(ChrPtr(do_template("floors", NULL)), 0);
+ http_transmit_thing(ChrPtr(do_template("floors")), 0);
FreeStrBuf(&Buf);
}
}
AppendImportantMessage (SKEY(Buf));
FlushRoomlist();
- http_transmit_thing(ChrPtr(do_template("floors", NULL)), 0);
+ http_transmit_thing(ChrPtr(do_template("floors")), 0);
FreeStrBuf(&Buf);
}
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);
}
/*
* 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
}
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");
}
+/*
+ * 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
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'."));
"<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'."));
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");
--- /dev/null
+<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>
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);
/*
* 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"
wc_printf(_("Who's online 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>");
+/*
+ * 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"
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);
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);
}
+/*
+ * 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"
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();
}
+/*
+ * 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"
/* 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);
);
wc_printf("</td></tr></table>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
if (Msg != NULL) {
DestroyMessageSummary(Msg);
{
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,
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)) {
void display_wiki_history(void)
{
output_headers(1, 1, 1, 0, 0, 0);
- do_template("wiki_history", NULL);
+ do_template("wiki_history");
wDumpContent(1);
}
void display_wiki_pagelist(void)
{
output_headers(1, 1, 1, 0, 0, 0);
- do_template("wiki_pagelist", NULL);
+ do_template("wiki_pagelist");
wDumpContent(1);
}