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);
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);