Nearly all <FORM> blocks now contain a hidden input
[citadel.git] / webcit / graphics.c
index 00f256b98e3ccec7a51ada71444b584fb2cdb770..daeff6d349c32c9adbe5f91e032fed979be48ca2 100644 (file)
@@ -22,7 +22,7 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl)
 
        output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
-               "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+               "<TABLE class=\"graphics_banner\"><TR><TD>"
                "<SPAN CLASS=\"titlebar\">");
        wprintf(_("Image upload"));
        wprintf("</SPAN>"
@@ -31,13 +31,14 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl)
        );
 
        wprintf("<div class=\"fix_scrollbar_bug\">"
-               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
+               "<table class=\"graphics_background\"><tr><td>\n");
 
        wprintf("<CENTER>\n");
 
        wprintf("<FORM ENCTYPE=\"multipart/form-data\" action=\"%s\" "
                "METHOD=\"POST\" NAME=\"graphicsupload\">\n", uplurl);
 
+       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
        wprintf("<INPUT TYPE=\"hidden\" NAME=\"which_room\" VALUE=\"");
        urlescputs(bstr("which_room"));
        wprintf("\">\n");