int refcount;
output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\">\n"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
- "<SPAN CLASS=\"titlebar\">");
+ wprintf("<div id=\"banner\">\n");
+ wprintf("<h1>");
wprintf(_("Add/change/delete floors"));
- wprintf("</SPAN>"
- "</TD></TR></TABLE>\n"
- "</div>\n<div id=\"content\">\n"
- );
+ wprintf("</h1>");
+ wprintf("</div>\n");
+
+ wprintf("<div id=\"content\" class=\"service\">\n");
if (prepend_html != NULL) {
wprintf("<br /><b><i>");
serv_printf("LFLR");
serv_getln(buf, sizeof buf);
if (buf[0] != '1') {
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<TABLE class=\"floors_config\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">");
wprintf(_("Error"));
wprintf("</SPAN>\n");
"<INPUT TYPE=\"text\" NAME=\"floorname\" "
"VALUE=\"%s\" MAXLENGTH=\"250\">\n",
floornum, floorname);
+ wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
wprintf("<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" "
"VALUE=\"%s\">"
"</FORM></TD>", _("Change name"));
"<INPUT TYPE=\"text\" NAME=\"floorcss\" "
"VALUE=\"%s\" MAXLENGTH=\"250\">\n",
floornum, floorname);
+ wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
wprintf("<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" "
"VALUE=\"%s\">"
"</FORM></TD>", _("Change CSS"));
}
wprintf("<TR><TD> </TD>"
- "<TD><FORM METHOD=\"POST\" action=\"create_floor\">"
- "<INPUT TYPE=\"text\" NAME=\"floorname\" "
+ "<TD><FORM METHOD=\"POST\" action=\"create_floor\">");
+ wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
+ wprintf("<INPUT TYPE=\"text\" NAME=\"floorname\" "
"MAXLENGTH=\"250\">\n"
"<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" "
"VALUE=\"%s\">"
char buf[SIZ];
char message[SIZ];
- floornum = atoi(bstr("floornum"));
+ floornum = ibstr("floornum");
serv_printf("KFLR %d|1", floornum);
serv_getln(buf, sizeof buf);
char message[SIZ];
char floorname[SIZ];
- floornum = atoi(bstr("floornum"));
+ floornum = ibstr("floornum");
strcpy(floorname, bstr("floorname"));
serv_printf("EFLR %d|%s", floornum, floorname);