X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsysmsgs.c;h=9f8800754517f0aabf549ab07ae580cdb4193fce;hb=3dda3cda8acb9c1c4eb227f4780630913ffc633a;hp=0aa9e75f9d3d4901a07bb2aa948a03a8fb7235d8;hpb=01cdfbf78a8ccad09cfd119e9cacf53f6f618313;p=citadel.git diff --git a/webcit/sysmsgs.c b/webcit/sysmsgs.c index 0aa9e75f9..9f8800754 100644 --- a/webcit/sysmsgs.c +++ b/webcit/sysmsgs.c @@ -1,4 +1,8 @@ - +/* + * $Id$ + * + * Editing of various text files on the Citadel server. + */ #include #include @@ -22,29 +26,28 @@ #include "webcit.h" - - - - - - /* * display the form for editing something (room info, bio, etc) */ void display_edit(char *description, char *check_cmd, - char *read_cmd, char *save_cmd, int headers_type) + char *read_cmd, char *save_cmd, int with_room_banner) { char buf[SIZ]; serv_puts(check_cmd); - serv_gets(buf); + serv_getln(buf, sizeof buf); if (buf[0] != '2') { strcpy(WC->ImportantMessage, &buf[4]); display_main_menu(); return; } - output_headers(headers_type); + if (with_room_banner) { + output_headers(1, 1, 1, 0, 0, 0, 0); + } + else { + output_headers(1, 1, 0, 0, 0, 0, 0); + } svprintf("BOXTITLE", WCS_STRING, "Edit %s", description); do_template("beginbox"); @@ -52,19 +55,19 @@ void display_edit(char *description, char *check_cmd, wprintf("
Enter %s below. Text is formatted to\n", description); wprintf("the reader's screen width. To defeat the\n"); wprintf("formatting, indent a line at least one space. \n"); - wprintf("
"); + wprintf("
"); wprintf("
\n", save_cmd); wprintf("

\n"); + wprintf("

\n"); wprintf(""); wprintf(" "); - wprintf("
\n"); + wprintf("
\n"); wprintf("
\n"); do_template("endbox"); @@ -86,7 +89,7 @@ void save_edit(char *description, char *enter_cmd, int regoto) return; } serv_puts(enter_cmd); - serv_gets(buf); + serv_getln(buf, sizeof buf); if (buf[0] != '4') { strcpy(WC->ImportantMessage, &buf[4]); display_main_menu();