serv_puts(check_cmd);
serv_gets(buf);
if (buf[0] != '2') {
- display_error(&buf[4]);
+ strcpy(WC->ImportantMessage, &buf[4]);
+ display_main_menu();
return;
}
- output_headers(3);
+ output_headers(1, 1, 0, 0, 0, 0, 0);
svprintf("BOXTITLE", WCS_STRING, "Set/change your photo");
do_template("beginbox");
wprintf("You can upload any image directly from your computer,\n");
wprintf("as long as it is in GIF format (JPEG, PNG, etc. won't\n");
- wprintf("work).<BR><BR>\n");
+ wprintf("work).<br /><br />\n");
- wprintf("Please select a file to upload:<BR><BR>\n");
+ wprintf("Please select a file to upload:<br /><br />\n");
wprintf("<INPUT TYPE=\"FILE\" NAME=\"filename\" SIZE=\"35\">\n");
- wprintf("<BR><BR>");
+ wprintf("<br /><br />");
wprintf("<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" VALUE=\"Upload\">\n");
+ wprintf(" ");
wprintf("<INPUT TYPE=\"RESET\" VALUE=\"Reset Form\">\n");
+ wprintf(" ");
wprintf("<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" VALUE=\"Cancel\">\n");
wprintf("</FORM>\n");
wprintf("</CENTER>\n");
int thisblock;
if (!strcasecmp(bstr("sc"), "Cancel")) {
+ strcpy(WC->ImportantMessage,
+ "Graphics upload cancelled.");
display_main_menu();
return;
}
if (WC->upload_length == 0) {
- display_error("You didn't upload a file.\n");
+ strcpy(WC->ImportantMessage,
+ "You didn't upload a file.");
+ display_main_menu();
return;
}
serv_puts(upl_cmd);
serv_gets(buf);
if (buf[0] != '2') {
- display_error(&buf[4]);
+ strcpy(WC->ImportantMessage, &buf[4]);
+ display_main_menu();
return;
}
bytes_remaining = WC->upload_length;
serv_printf("WRIT %d", thisblock);
serv_gets(buf);
if (buf[0] != '7') {
- display_error(&buf[4]);
+ strcpy(WC->ImportantMessage, &buf[4]);
serv_puts("UCLS 0");
serv_gets(buf);
+ display_main_menu();
return;
}
thisblock = extract_int(&buf[4], 0);