X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Froomops.c;h=7031fd6da10eb7ed788872013aa52428e268dee1;hb=2781973f43a71bd9c31fb8223ff607702a3613bd;hp=e3886724ddbc501957b66fc0c85ef68a80e3bbc9;hpb=a90531a72e57d3add6576487e7912a4249ffe7a9;p=citadel.git diff --git a/webcit/roomops.c b/webcit/roomops.c index e3886724d..7031fd6da 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -277,13 +277,16 @@ void tabular_room_list(void) */ void zapped_list(void) { - output_headers(1); - wprintf("
"); - wprintf("Zapped (forgotten) rooms\n"); - wprintf("

\n"); + output_headers(3); + + svprintf("BOXTITLE", WCS_STRING, "Zapped (forgotten) rooms"); + do_template("beginbox"); + listrms("LZRM -1"); + wprintf("

\n"); wprintf("Click on any room to un-zap it and goto that room.\n"); + do_template("endbox"); wDumpContent(1); } @@ -1324,11 +1327,9 @@ void display_whok(void) strcpy(username, bstr("username")); output_headers(1); - - wprintf("
"); - wprintf("Access control list for "); - escputs(WC->wc_roomname); - wprintf("
\n"); + stresc(buf, WC->wc_roomname, 1); + svprintf("BOXTITLE", WCS_STRING, "Access control list for %s", buf); + do_template("beginbox"); if(!strcmp(bstr("sc"), "Kick")) { sprintf(buf, "KICK %s", username); @@ -1392,6 +1393,7 @@ void display_whok(void) "\n"); wprintf("\n"); + do_template("endbox"); wDumpContent(1); } @@ -1412,11 +1414,9 @@ void display_entroom(void) display_error(&buf[4]); return; } - output_headers(1); - - wprintf("
"); - wprintf("Enter (create) a new room\n"); - wprintf("
\n"); + output_headers(3); + svprintf("BOXTITLE", WCS_STRING, "Create a new room"); + do_template("beginbox"); wprintf("
\n"); @@ -1437,6 +1437,9 @@ void display_entroom(void) wprintf("
  • Private - invitation only\n"); + + wprintf("
  • Personal (mailbox for you only)\n"); wprintf("\n"); wprintf("
  • Resides on floor: "); @@ -1463,6 +1466,7 @@ void display_entroom(void) if (buf[0] == '1') { fmout(NULL); } + do_template("endbox"); wDumpContent(1); } @@ -1496,6 +1500,8 @@ void entroom(void) er_num_type = 2; if (!strcmp(er_type, "invonly")) er_num_type = 3; + if (!strcmp(er_type, "personal")) + er_num_type = 4; sprintf(buf, "CRE8 1|%s|%d|%s|%d", er_name, er_num_type, er_password, er_floor); @@ -1515,11 +1521,10 @@ void entroom(void) void display_private(char *rname, int req_pass) { - output_headers(1); + output_headers(3); - wprintf("
    "); - wprintf("Goto a private room\n"); - wprintf("
    \n"); + svprintf("BOXTITLE", WCS_STRING, "Go to a hidden room"); + do_template("beginbox"); wprintf("
    \n"); wprintf("If you know the name of a hidden (guess-name) or\n"); @@ -1540,11 +1545,12 @@ void display_private(char *rname, int req_pass) wprintf("Enter room password:"); wprintf("\n"); } - wprintf("\n"); + wprintf("
    \n"); wprintf(""); wprintf(""); wprintf("\n"); + do_template("endbox"); wDumpContent(1); } @@ -2109,7 +2115,7 @@ void knrooms() { wprintf("\n"); offer_start_page(); - wprintf("
    \n"); + wprintf("\n"); /* Display the room list in the user's preferred format */ if (!strcasecmp(listviewpref, "table")) {