From: Wilfried Göesgens Date: Fri, 13 Aug 2010 15:54:01 +0000 (+0000) Subject: * link the entroom template, remove the function X-Git-Tag: v8.01~923 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a35f01f2009f813cb7f56c4d550f276dbdac53f3 * link the entroom template, remove the function --- diff --git a/webcit/roomops.c b/webcit/roomops.c index 8e05a2468..d54e00eba 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -2434,164 +2434,6 @@ void display_whok(void) wDumpContent(1); } - - -/* - * display the form for entering a new room - */ -void display_entroom(void) -{ - StrBuf *Buf; - int i; - char buf[SIZ]; - - Buf = NewStrBuf(); - serv_puts("CRE8 0"); - serv_getln(buf, sizeof buf); - - if (buf[0] != '2') { - strcpy(WC->ImportantMessage, &buf[4]); - display_main_menu(); - FreeStrBuf(&Buf); - return; - } - - output_headers(1, 1, 1, 0, 0, 0); - - svprintf(HKEY("BOXTITLE"), WCS_STRING, _("Create a new room")); - do_template("beginbox", NULL); - - wc_printf("
\n"); - wc_printf("\n", WC->nonce); - - wc_printf(" "); - - wc_printf(""); - - wc_printf(""); - - /* - * Our clever little snippet of JavaScript automatically selects - * a public room if the view is set to Bulletin Board or wiki, and - * it selects a mailbox room otherwise. The user can override this, - * of course. We also disable the floor selector for mailboxes. - */ - wc_printf(""); - - wc_printf("
"); - wc_printf(_("Name of room: ")); - wc_printf(""); - wc_printf("\n"); - wc_printf("
"); - wc_printf(_("Resides on floor: ")); - wc_printf(""); -// load_floorlist(Buf); - wc_printf("\n"); - wc_printf("
"); - wc_printf(_("Default view for room: ")); - wc_printf(""); - wc_printf("\n"); - wc_printf("
"); - wc_printf(_("Type of room:")); - wc_printf(""); - wc_printf("
    \n"); - - wc_printf("
  • "); - wc_printf(_("Public (automatically appears to everyone)")); - wc_printf("
  • "); - - wc_printf("\n
  • "); - wc_printf(_("Private - hidden (accessible to anyone who knows its name)")); - wc_printf("
  • "); - - wc_printf("\n
  • "); - wc_printf(_("Private - require password: ")); - wc_printf("\n"); - wc_printf("
  • "); - - wc_printf("
  • "); - wc_printf(_("Private - invitation only")); - wc_printf("
  • "); - - wc_printf("\n
  • "); - wc_printf(_("Personal (mailbox for you only)")); - wc_printf("
  • "); - - wc_printf("\n
\n"); - wc_printf("
\n"); - - wc_printf("
\n"); - wc_printf("", _("Create new room")); - wc_printf(" "); - wc_printf("", _("Cancel")); - wc_printf("
\n"); - wc_printf("
\n
"); - serv_printf("MESG roomaccess"); - serv_getln(buf, sizeof buf); - if (buf[0] == '1') { - fmout("LEFT"); - } - - do_template("endbox", NULL); - - wDumpContent(1); - FreeStrBuf(&Buf); -} - - - - /* * support function for entroom() -- sets the default view */ @@ -3286,7 +3128,6 @@ InitModule_ROOMOPS WebcitAddUrlHandler(HKEY("goto_private"), "", 0, goto_private, NEED_URL); WebcitAddUrlHandler(HKEY("zap"), "", 0, zap, 0); - WebcitAddUrlHandler(HKEY("display_entroom"), "", 0, display_entroom, 0); WebcitAddUrlHandler(HKEY("entroom"), "", 0, entroom, 0); WebcitAddUrlHandler(HKEY("display_whok"), "", 0, display_whok, 0); WebcitAddUrlHandler(HKEY("do_invt_kick"), "", 0, do_invt_kick, 0); diff --git a/webcit/static/t/menu/advanced_roomcommands.html b/webcit/static/t/menu/advanced_roomcommands.html index 676aa20a4..ca6e1006f 100644 --- a/webcit/static/t/menu/advanced_roomcommands.html +++ b/webcit/static/t/menu/advanced_roomcommands.html @@ -4,7 +4,7 @@
  • (old)
  • -
  • +