]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
The 'static redirects' file may now contain a special token called 'home' which can...
[citadel.git] / webcit / webcit.c
index e1e270c2ffbc5386274825662ecb09fe4ff66f01..117f8fdf9e0c2147ae00704398395ef77f3e7b01 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)) {
@@ -876,10 +876,16 @@ void display_default_landing_page(void) {
        wcsession *WCC = WC;
 
        if (WCC && WCC->serv_info && WCC->serv_info->serv_supports_guest) {
-               /* default action.  probably revisit this. */
-               StrBuf *teh_lobby = NewStrBufPlain(HKEY("_BASEROOM_"));
-               smart_goto(teh_lobby);
-               FreeStrBuf(&teh_lobby);
+               /* default action */
+
+               if (default_landing_page) {
+                       http_redirect(default_landing_page);
+               }
+               else {
+                       StrBuf *teh_lobby = NewStrBufPlain(HKEY("_BASEROOM_"));
+                       smart_goto(teh_lobby);
+                       FreeStrBuf(&teh_lobby);
+               }
        }
        else {
                display_login();