{
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
- do_template("login", NULL);
+ do_template("login");
end_burst();
}
if (havebstr("exit_action")) {
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
- do_template("authpopup_finished", NULL);
+ do_template("authpopup_finished");
end_burst();
return;
}
if (WC->logged_in) {
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
- do_template("authpopup_finished", NULL);
+ do_template("authpopup_finished");
end_burst();
}
} else {
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
wc_printf("<html><body>");
- do_template("openid_manual_create", NULL);
+ do_template("openid_manual_create");
wc_printf("</body></html>");
end_burst();
}
long HKLen;
const char *HKey;
HashPos *Cursor;
+ int len;
Cursor = GetNewHashPos (WCC->Hdr->urlstrings, 0);
while (GetNextHashPos(WCC->Hdr->urlstrings, Cursor, &HKLen, &HKey, &U)) {
serv_puts("000");
linecount = 0;
- while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000"))
+ while (len = StrBuf_ServGetln(Buf),
+ ((len >= 0) &&
+ ((len != 3) || strcmp(ChrPtr(Buf), "000") )))
{
if (linecount == 0) result = NewStrBufDup(Buf);
if (!strcasecmp(ChrPtr(result), "authenticate")) {
if (WC->logged_in) {
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
- do_template("authpopup_finished", NULL);
+ do_template("authpopup_finished");
end_burst();
} else {
begin_burst();
begin_burst();
output_headers(1, 0, 0, 0, 1, 0);
wc_printf("<html><body>");
- do_template("openid_manual_create", NULL);
+ do_template("openid_manual_create");
wc_printf("</body></html>");
end_burst();
}
output_headers(1, 1, 1, 0, 0, 0);
- do_template("beginbox_1", NULL);
+ do_template("beginbox_1");
StrBufAppendBufPlain(WC->WBuf, _("Validate new users"), -1, 0);
- do_template("beginbox_2", NULL);
+ do_template("beginbox_2");
/* If the user just submitted a validation, process it... */
safestrncpy(buf, bstr("user"), sizeof buf);
wc_printf("</div>\n");
wc_printf("</td></tr></table>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
}
wc_printf("</div>\n");
wc_printf("</form>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wDumpContent(1);
}