- if (Files != NULL) {
- PrintHash(Files, FilePrintTransition, FilePrintEntry);
- DeleteHash(&Files);
- }
- wprintf("</table>\n");
-
- /** Now offer the ability to upload files... */
- if (WC->room_flags & QR_UPLOAD)
- {
- wprintf("<hr>");
- wprintf("<form "
- "enctype=\"multipart/form-data\" "
- "method=\"POST\" "
- "accept-charset=\"UTF-8\" "
- "action=\"upload_file\" "
- "name=\"upload_file_form\""
- ">\n"
- );
- wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
-
- wprintf(_("Upload a file:"));
- wprintf(" <input NAME=\"filename\" SIZE=16 TYPE=\"file\"> \n");
- wprintf(_("Description:"));
- wprintf(" <input type=\"text\" name=\"description\" maxlength=\"64\" size=\"64\"> ");
- wprintf("<input type=\"submit\" name=\"attach_button\" value=\"%s\">\n", _("Upload"));
-
- wprintf("</form>\n");
- }
-
- wprintf("</div>\n");
- if (havepics)
- wprintf("<div class=\"buttons\"><a href=\"display_pictureview&frame=1\">%s</a></div>", _("Slideshow"));
- wDumpContent(1);
-}
-
-
-void display_pictureview(void)
-{
- char buf[1024];
- char filename[256];
- char filesize[256];
- char mimetype[64];
- char comment[512];
- char title[256];
- int n = 0;
-
-
- if (lbstr("frame") == 1) {
-
- output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\">\n");
- wprintf("<h1>");
- snprintf(title, sizeof title, _("Pictures in %s"), WC->wc_roomname);
- escputs(title);
- wprintf("</h1>");
- wprintf("</div>\n");
-
- wprintf("<div id=\"content\" class=\"service\">\n");
-
- wprintf("<div class=\"fix_scrollbar_bug\">"
- "<table class=\"downloads_background\"><tr><td>\n");
-
-
-
- wprintf("<script type=\"text/javascript\" language=\"JavaScript\" > \nvar fadeimages=new Array()\n");
-
- serv_puts("RDIR");
- serv_getln(buf, sizeof buf);
- if (buf[0] == '1') while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
- extract_token(filename, buf, 0, '|', sizeof filename);
- extract_token(filesize, buf, 1, '|', sizeof filesize);
- extract_token(mimetype, buf, 2, '|', sizeof mimetype);
- extract_token(comment, buf, 3, '|', sizeof comment);
- if (strstr(mimetype, "image") != NULL) {
- wprintf("fadeimages[%d]=[\"download_file/", n);
- escputs(filename);
- wprintf("\", \"\", \"\"]\n");
-
- /*
- //mimetype);
- escputs(filename); wprintf("</a></td>");
- wprintf("<td>"); escputs(filesize); wprintf("</td>");
- wprintf("<td>"); escputs(mimetype); wprintf("</td>");
- wprintf("<td>"); escputs(comment); wprintf("</td>");
- wprintf("</tr>\n");
- */
- n++;
- }
- }
- wprintf("</script>\n");
- wprintf("<tr><td><script type=\"text/javascript\" src=\"static/fadeshow.js\">\n</script>\n");
- wprintf("<script type=\"text/javascript\" >\n");
- wprintf("new fadeshow(fadeimages, 500, 400, 0, 3000, 1, \"R\");\n");
- wprintf("</script></td><th>\n");
- wprintf("</div>\n");