]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
* Don't call whobbs() directly after changing masq room/host, it screws up the
[citadel.git] / webcit / webcit.c
index e94bd49695ca83fc0b08b29cc735489b98e5426b..4363e642a396ec5734b98c38ffa131a90010d304 100644 (file)
@@ -369,6 +369,21 @@ void output_headers(int controlcode)
 }
 
 
+/*
+ *
+ */
+void http_redirect(char *whichpage) {
+       wprintf("HTTP/1.0 302 Moved Temporarily\n");
+       wprintf("Location: %s\n", whichpage);
+       wprintf("URI: %s\n", whichpage);
+       wprintf("Content-type: text/html\n\n");
+       wprintf("<html><body>\n");
+       wprintf("you really want to be <A HREF=\"%s\">here</A> now\n",
+               whichpage);
+       wprintf("</body></html>\n");
+}
+
+
 
 void check_for_express_messages()
 {