X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;h=2be182799aeef85f603c2eca3510db0ef82c7ca7;hb=a91d5e80ca1d7086fdf0c7d801ea32bd061b9c89;hp=5985982bd8a52cec9ac446a51a87f51e0c81db4e;hpb=ae6b0558f64f5f15b05c79623f905be584c0d3ad;p=citadel.git
diff --git a/webcit/webcit.c b/webcit/webcit.c
index 5985982bd..2be182799 100644
--- a/webcit/webcit.c
+++ b/webcit/webcit.c
@@ -175,11 +175,7 @@ void output_headers( int do_httpheaders, /* 1 = output HTTP headers
}
if ( (WC->logged_in) && (!unset_cookies) ) {
- wprintf("
");
- do_selected_iconbar();
- /** check for instant messages (these display in a new window) */
- page_popup();
- wprintf("
");
+ DoTemplate(HKEY("iconbar"), NULL, &NoCtx);
}
if (do_room_banner == 1) {
@@ -194,6 +190,13 @@ void output_headers( int do_httpheaders, /* 1 = output HTTP headers
}
}
+void output_custom_content_header(const char *ctype) {
+ hprintf("HTTP/1.1 200 OK\r\n");
+ hprintf("Content-type: %s; charset=utf-8\r\n",ctype);
+ hprintf("Server: %s / %s\r\n", PACKAGE_STRING, ChrPtr(serv_info.serv_software));
+ hprintf("Connection: close\r\n");
+}
+
/*
* Generic function to do an HTTP redirect. Easy and fun.