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");
+ /* Only offer the "check to disable frames" selection if frames haven't
+ * already been disabled by the browser braindamage check.
+ */
+ if (noframes == 0) {
+ 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,",
int need_regi = 0;
+ /* Note that the initial value of noframes is set by the browser braindamage
+ * check, so don't add an "else" clause here.
+ */
if (!strcasecmp(bstr("noframes"), "on"))
noframes = 1;
- else
- noframes = 0;
if (!strcasecmp(bstr("action"), "Exit")) {
do_logout();
}
-void session_loop(char *browser_host, int bd_use_frames)
+void session_loop(char *browser_host)
{
char cmd[256];
char action[256];
{
char browser[256];
- int bd_use_frames;
+ int bd;
if (argc != 6) {
fprintf(stderr,
strcpy(wc_roomname, "");
strcpy(browser, argv[5]);
- bd_use_frames = browser_braindamage_check(browser);
+ bd = browser_braindamage_check(browser);
+ if (bd == B_NO)
+ noframes = 1;
+ else
+ noframes = 0;
while (1) {
- session_loop(argv[4], bd_use_frames);
+ session_loop(argv[4]);
}
}