X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmainmenu.c;h=5a9e0d74d2ac3f70a907c5b5caa040acbac993cd;hb=792253218528e4327e0ddf1da78e424c9c9f08a4;hp=f93b90b0ac789c55c62a15343913f17865e69f3e;hpb=adfd13c5c3b74f1522d72bb074f924b358251b91;p=citadel.git diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index f93b90b0a..5a9e0d74d 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -31,7 +31,7 @@ */ void display_main_menu(void) { - output_headers(1); + output_headers(1, 1, 1, 0, 0, 0, 0); wprintf("" "
\n"); @@ -46,32 +46,32 @@ void display_main_menu(void) wprintf("" "" - "List known rooms
" + "List known rooms
" "" - "Where can I go from here?
\n" + "Where can I go from here?
\n" ); wprintf("" "" - "Goto next room
" + "Goto next room
" "" "...with unread messages" - "
\n" + "
\n" ); wprintf("" "" - "Skip to next room
" + "Skip to next room
" "" "(come back here later)" "\n" ); if ((strlen(WC->ugname) > 0) && (strcasecmp(WC->ugname, WC->wc_roomname))) { - wprintf("
" + wprintf("
" "" "" - "Ungoto
" + "Ungoto
" "" "(oops! Back to %s)" "\n", WC->ugname @@ -82,21 +82,21 @@ void display_main_menu(void) wprintf("" "" - "Read new messages
" + "Read new messages
" "" - "...in this room
\n" + "...in this room
\n" ); wprintf("" "" - "Read all messages
" + "Read all messages
" "" - "...old and new
\n" + "...old and new
\n" ); wprintf("" "" - "Enter a message
" + "Enter a message
" "" "(post in this room)\n" ); @@ -105,21 +105,21 @@ void display_main_menu(void) wprintf("" "" - "Summary page
" + "Summary page
" "" - "Summary of my account
\n" + "Summary of my account
\n" ); wprintf("\n" "" - "User list
" + "User list
" "" - "(all registered users)
\n" + "(all registered users)
\n" ); wprintf("" "" - "Log off
" + "Log off
" "" "Bye!\n" ); @@ -138,7 +138,7 @@ void display_main_menu(void) "Who is online?" "" " (users currently logged on)" - "
\n" + "
\n" ); wprintf("" ); escputs(WC->wc_roomname); - wprintf("
\n"); + wprintf("
\n"); wprintf("\n"); wprintf("" @@ -167,18 +167,18 @@ void display_main_menu(void) "" "Update your contact information " "" - "(name, address, etc.)
\n"); + "(name, address, etc.)
\n"); wprintf("" "" - "Change your password
\n"); + "Change your password
\n"); wprintf("" "" "Enter your 'bio' " "" "(a few words about yourself)" - "
\n"); + "
\n"); wprintf("" "" @@ -194,25 +194,25 @@ void display_main_menu(void) if ((WC->axlevel >= 6) || (WC->is_room_aide)) { wprintf("" "" - "Edit or delete this room
\n"); + "Edit or delete this room
\n"); } wprintf("" "" - "Go to a "hidden" room
\n"); + "Go to a "hidden" room
\n"); wprintf("" "" - "Create a new room
\n"); + "Create a new room
\n"); wprintf("" "" - "Zap (forget) this room (%s)
\n", + "Zap (forget) this room (%s)
\n", WC->wc_roomname); wprintf("\n" "" - "Access controls for this room
\n"); + "Access controls for this room
\n"); wprintf("" "" @@ -231,31 +231,31 @@ void display_main_menu(void) "Edit site-wide configuration\n"); if (WC->axlevel >= 6) { - wprintf("
" + wprintf("
" "" "" "Add, change, delete user accounts" - "
\n"); + "
\n"); wprintf("" "" - "Validate new users
\n"); + "Validate new users
\n"); wprintf("" "" "Add, change, or delete floors" - "
\n"); + "
\n"); wprintf("" "" "Configure networking with other systems" - "
\n"); + "
\n"); wprintf("" "" "Internet configuration " "" - "(domain names, etc.)
\n"); + "(domain names, etc.)
\n"); } do_template("endbox"); } @@ -272,7 +272,7 @@ void display_main_menu(void) */ void display_generic(void) { - output_headers(3); + output_headers(1, 1, 0, 0, 0, 0, 0); svprintf("BOXTITLE", WCS_STRING, "Enter a server command"); do_template("beginbox"); @@ -280,21 +280,21 @@ void display_generic(void) wprintf("
"); wprintf("This screen allows you to enter Citadel server commands which are\n"); wprintf("not supported by WebCit. If you do not know what that means,\n"); - wprintf("then this screen will not be of much use to you.
\n"); + wprintf("then this screen will not be of much use to you.
\n"); wprintf("
\n"); - wprintf("Enter command:
\n"); - wprintf("
\n"); + wprintf("Enter command:
\n"); + wprintf("
\n"); - wprintf("Command input (if requesting SEND_LISTING transfer mode):
\n"); - wprintf("
\n"); + wprintf("Command input (if requesting SEND_LISTING transfer mode):
\n"); + wprintf("
\n"); wprintf("Detected host header is http://%s\n", WC->http_host); wprintf(""); wprintf(" "); - wprintf("
\n"); + wprintf("
\n"); wprintf("
\n"); do_template("endbox"); @@ -313,7 +313,7 @@ void do_generic(void) return; } - output_headers(3); + output_headers(1, 1, 0, 0, 0, 0, 0); serv_printf("%s", bstr("g_cmd")); serv_gets(buf); @@ -325,7 +325,7 @@ void do_generic(void) escputs(bstr("g_cmd")); wprintf("
Result:"); escputs(buf); - wprintf("

\n"); + wprintf("
\n"); if (buf[0] == '8') { serv_printf("\n\n000"); @@ -333,7 +333,7 @@ void do_generic(void) if ((buf[0] == '1') || (buf[0] == '8')) { while (serv_gets(gcontent), strcmp(gcontent, "000")) { escputs(gcontent); - wprintf("
\n"); + wprintf("
\n"); } wprintf("000"); } @@ -354,8 +354,8 @@ void do_generic(void) serv_write(junk, len); free(junk); } - wprintf("
"); - wprintf("Enter another command
\n"); + wprintf("
"); + wprintf("Enter another command
\n"); wprintf("Return to menu\n"); do_template("endbox"); wDumpContent(1); @@ -372,7 +372,7 @@ void do_generic(void) void display_menubar(int as_single_page) { if (as_single_page) { - output_headers(0); + output_headers(0, 0, 0, 0, 0, 0, 0); wprintf("\n" "\n" "MenuBar\n"