]> code.citadel.org Git - citadel.git/blobdiff - webcit/mainmenu.c
* Added a "preferences and settings" screen for each user.
[citadel.git] / webcit / mainmenu.c
index 6a79433f1b6bd20f91a13eac49218f05fbc33f80..5eea557eb2fa7be5ca359ce1709d081938f5b192 100644 (file)
@@ -35,7 +35,7 @@ void display_main_menu(void)
 {
        output_headers(1, 1, 1, 0, 0, 0, 0);
 
-       wprintf("<div style=\"margin-right:1px\">"
+       wprintf("<div id=\"fix_scrollbar_bug\">"
                "<TABLE WIDTH=100%%>"
                "<TR><TD COLSPAN=2>\n");
 
@@ -136,9 +136,14 @@ void display_main_menu(void)
        svprintf("BOXTITLE", WCS_STRING, "Your info");
        do_template("beginbox");
 
+       wprintf("<A HREF=\"/display_preferences\">"
+               "<span class=\"mainmenu\">"
+               "Change your preferences and settings"
+               "</span><br />\n");
+
        wprintf("<A HREF=\"/display_reg\">"
                "<span class=\"mainmenu\">"
-               "Update your contact information "
+               "Update your contact information"
                "</span><br />\n");
 
        wprintf("<A HREF=\"/display_changepw\">"
@@ -203,7 +208,7 @@ void display_aide_menu(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<div style=\"margin-right:1px\">"
+       wprintf("<div id=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%%><tr valign=top><td>");
 
        svprintf("BOXTITLE", WCS_STRING, "Global Configuration");
@@ -271,7 +276,7 @@ void display_generic(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<div style=\"margin-right:1px\">"
+       wprintf("<div id=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<CENTER>");
@@ -313,7 +318,7 @@ void do_generic(void)
        output_headers(1, 1, 0, 0, 0, 0, 0);
 
        serv_printf("%s", bstr("g_cmd"));
-       serv_gets(buf);
+       serv_getln(buf, sizeof buf);
 
        svprintf("BOXTITLE", WCS_STRING, "Server command results");
        do_template("beginbox");
@@ -328,7 +333,7 @@ void do_generic(void)
                serv_printf("\n\n000");
        }
        if ((buf[0] == '1') || (buf[0] == '8')) {
-               while (serv_gets(gcontent), strcmp(gcontent, "000")) {
+               while (serv_getln(gcontent, sizeof gcontent), strcmp(gcontent, "000")) {
                        escputs(gcontent);
                        wprintf("<br />\n");
                }