+/*
+ * Special page for monitoring scripts etc
+ */
+void monitor(void)
+{
+ wcsession *WCC = WC;
+ char buf[SIZ];
+
+ FlushStrBuf(WCC->wc_username);
+ FlushStrBuf(WCC->wc_password);
+ FlushStrBuf(WCC->wc_fullname);
+ FlushRoomlist();
+
+ serv_puts("LOUT");
+ serv_getln(buf, sizeof buf);
+ WCC->logged_in = 0;
+
+ FlushStrBuf(WCC->CurRoom.name);
+
+ /* Calling output_headers() this way causes the cookies to be un-set */
+ output_headers(1, 0, 0, 1, 1, 0);
+
+ wc_printf("<html><body><tt>");
+ wc_printf("<strong>WebCit monitoring screen</strong><br>\n");
+ wc_printf("Connection to Citadel server at %s:%s : %s<br>\n",
+ ctdlhost, ctdlport,
+ (WC->connected ? "SUCCESS" : "FAIL")
+ );
+ wc_printf("</body></html>\n");
+
+ wDumpContent(2);
+ end_webcit_session();
+}
+
+