svput("OFFER_OPENID_LOGIN", WCS_STRING, "");
}
- do_template("login");
+ do_template("login", NULL);
wDumpContent(2);
}
"Log in using a user name and password"
);
- do_template("openid_login");
+ do_template("openid_login", NULL);
wDumpContent(2);
}
svprintf(HKEY("BOXTITLE"), WCS_STRING, _("%s - powered by <a href=\"http://www.citadel.org\">Citadel</a>"),
serv_info.serv_humannode);
- do_template("openid_manual_create");
+ do_template("openid_manual_create", NULL);
wDumpContent(2);
}
}
}
if (WC->logged_in) {
+ set_preference("language", NewStrBufPlain(bstr("language"), -1), 1);
if (WC->need_regi) {
display_reg(1);
} else if (WC->need_vali) {
while (GetNextHashPos(WCC->urlstrings, Cursor, &HKLen, &HKey, &U)) {
u = (urlcontent*) U;
if (!strncasecmp(u->url_key, "openid.", 7)) {
- serv_printf("%s|%s", &u->url_key[7], u->url_data);
+ serv_printf("%s|%s", &u->url_key[7], ChrPtr(u->url_data));
}
}
StrBufCutLeft(Buf, 1);
}
if (StrLength(Buf) == 0)
- StrBufAppendBufPlain(Buf, "/knrooms", 1, 0);
+ StrBufAppendBufPlain(Buf, "dotgoto?room=_BASEROOM_", -1, 0);
http_redirect(ChrPtr(Buf));
}
output_headers(1, 1, 1, 0, 0, 0);
svput("BOXTITLE", WCS_STRING, _("Change your password"));
- do_template("beginbox");
+ do_template("beginbox", NULL);
if (!IsEmptyStr(WC->ImportantMessage)) {
wprintf("<span class=\"errormsg\">"
wprintf("</div>\n");
wprintf("</form>\n");
- do_template("endbox");
+ do_template("endbox", NULL);
wDumpContent(1);
}