char buf[SIZ];
output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div style=\"position:absolute; top:20px; left:20px; right:20px\">\n");
+ wprintf("<div id=\"login_screen\">\n");
if (mesg != NULL) if (strlen(mesg) > 0) {
stresc(buf, mesg, 0, 0);
svprintf("NEWUSER_BUTTON", WCS_STRING, "%s", _("New User"));
svprintf("EXIT_BUTTON", WCS_STRING, "%s", _("Exit"));
svprintf("hello", WCS_SERVCMD, "MESG hello");
- svprintf("BOXTITLE", WCS_STRING, _("%s - powered by Citadel"),
+ svprintf("BOXTITLE", WCS_STRING, _("%s - powered by <a href=\"http://www.citadel.org\">Citadel</a>"),
serv_info.serv_humannode);
svcallback("DO_LANGUAGE_BOX", offer_languages);
+ if (serv_info.serv_newuser_disabled) {
+ svprintf("NEWUSER_BUTTON_PRE", WCS_STRING, "<div style=\"display:none;\">");
+ svprintf("NEWUSER_BUTTON_POST", WCS_STRING, "</div>");
+ }
+ else {
+ svprintf("NEWUSER_BUTTON_PRE", WCS_STRING, "");
+ svprintf("NEWUSER_BUTTON_POST", WCS_STRING, "");
+ }
do_template("login");
output_headers(1, 1, 2, 0, 0, 0);
wprintf("<div id=\"banner\">\n"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<TABLE class=\"auth_banner\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">");
wprintf(_("Validate new users"));
wprintf("</SPAN></TD></TR></TABLE>\n</div>\n<div id=\"content\">\n");
}
wprintf("<div class=\"fix_scrollbar_bug\">"
- "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+ "<table class=\"auth_validate\"><tr><td>\n");
wprintf("<center>");
safestrncpy(user, &buf[4], sizeof user);
wprintf(_("Select access level for this user:"));
wprintf("<br />\n");
for (a = 0; a <= 6; ++a) {
- wprintf("<a href=\"validate&user=");
+ wprintf("<a href=\"validate?nonce=%ld?user=", WC->nonce);
urlescputs(user);
wprintf("&axlevel=%d\">%s</A> \n",
a, axdefs[a]);
output_headers(1, 1, 2, 0, 0, 0);
wprintf("<div id=\"banner\">\n"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<TABLE class=\"auth_banner\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">");
wprintf(_("Change your password"));
wprintf("</SPAN>"
}
wprintf("<div class=\"fix_scrollbar_bug\">"
- "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+ "<table class=\"auth_validate\"><tr><td>\n");
wprintf("<CENTER><br />");
serv_puts("MESG changepw");
}
wprintf("<form name=\"changepwform\" action=\"changepw\" method=\"post\">\n");
+ wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
wprintf("<CENTER>"
"<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\" "
"BGCOLOR=\"#EEEEEE\">"