char buf[256];
printf("HTTP/1.0 200 OK\n");
- output_headers(1, "_top");
+ output_headers(3);
/* Da banner */
wprintf("<CENTER><TABLE border=0 width=100%><TR><TD>\n");
wprintf("<INPUT type=\"submit\" NAME=\"action\" VALUE=\"New User\">\n");
wprintf("<INPUT type=\"submit\" NAME=\"action\" VALUE=\"Exit\">\n");
- wprintf("<BR><INPUT TYPE=\"checkbox\" NAME=\"noframes\">");
- wprintf("<FONT SIZE=-1> Check here to disable frames</FONT>\n");
- wprintf("</FORM></CENTER>\n");
-
/* Da instructions */
wprintf("<LI><EM>If you already have an account on %s,",
serv_info.serv_humannode);
wprintf("<LI>You must use a browser that supports <i>cookies</i>.<BR>\n");
wprintf("</EM></UL>\n");
- wDumpContent(1);
+ wDumpContent(0); /* No menu here; not logged in yet! */
}
int need_regi = 0;
- if (!strcasecmp(bstr("noframes"), "on"))
- noframes = 1;
- else
- noframes = 0;
-
if (!strcasecmp(bstr("action"), "Exit")) {
do_logout();
}
serv_puts("CHEK");
serv_gets(buf);
if (buf[0] == '2') {
+ new_mail = extract_int(&buf[4], 0);
need_regi = extract_int(&buf[4], 1);
- /* FIX also check for new mail etc. here */
+ need_vali = extract_int(&buf[4], 2);
}
if (need_regi) {
display_reg(1);
void do_welcome(void)
{
-
- if (noframes) {
- printf("HTTP/1.0 200 OK\n");
- output_headers(1, "_top");
- wprintf("<CENTER><H1>");
- escputs(wc_username);
- wprintf("</H1>\n");
- /* FIX add user stats here */
- wDumpContent(1);
- } else {
- output_static("frameset.html");
- }
+ smart_goto("_BASEROOM_");
}
strcpy(wc_roomname, "");
printf("HTTP/1.0 200 OK\n");
- output_headers(2, "_top"); /* note "2" causes cookies to be unset */
+ output_headers(2); /* note "2" causes cookies to be unset */
wprintf("<CENTER>");
serv_puts("MESG goodbye");
int a;
printf("HTTP/1.0 200 OK\n");
- output_headers(1, "bottom");
+ output_headers(1);
strcpy(buf, bstr("user"));
if (strlen(buf) > 0)
int a;
printf("HTTP/1.0 200 OK\n");
- output_headers(1, "bottom");
+ output_headers(1);
wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
char buf[256];
printf("HTTP/1.0 200 OK\n");
- output_headers(1, "bottom");
+ output_headers(1);
wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");