]> code.citadel.org Git - citadel.git/blobdiff - webcit/mainmenu.c
* migrated SUBST stuff to hash
[citadel.git] / webcit / mainmenu.c
index 8673df5d8c76ba78e4aee7d87f884cbe139e387e..4ab0eacb18485e5c6c07bde37264f2e6fd514ec2 100644 (file)
@@ -21,7 +21,7 @@ void display_main_menu(void)
                "<table width=\"100%%\" cellspacing=\"10px\" cellpadding=\"0\">"
                "<tr><td colspan=\"2\" class=\"advanced\">\n");
 
-       svprintf("BOXTITLE", WCS_STRING, _("Basic commands"));
+       svput("BOXTITLE", WCS_STRING, _("Basic commands"));
        do_template("beginbox");
 
        /**< start of first column */
@@ -254,7 +254,7 @@ void do_generic(void)
        char *junk;
        size_t len;
 
-       if (IsEmptyStr(bstr("sc_button"))) {
+       if (!havebstr("sc_button")) {
                display_main_menu();
                return;
        }
@@ -264,7 +264,7 @@ void do_generic(void)
        serv_printf("%s", bstr("g_cmd"));
        serv_getln(buf, sizeof buf);
 
-       svprintf("BOXTITLE", WCS_STRING, _("Server command results"));
+       svput("BOXTITLE", WCS_STRING, _("Server command results"));
        do_template("beginbox");
 
        wprintf("<table border=0><tr><td>Command:</td><td><tt>");
@@ -378,7 +378,7 @@ void display_shutdown(void)
                if ((message == NULL) || (IsEmptyStr(message)))
                {
                        output_headers(1, 1, 1, 0, 0, 0);
-                       svprintf("BOXTITLE", WCS_STRING, _("Message to your Users:"));
+                       svput("BOXTITLE", WCS_STRING, _("Message to your Users:"));
                        do_template("beginbox");
                        wprintf("<form action=\"server_shutdown\">\n"
                                "<input type=\"hidden\" name=\"when\" value=\"page\">\n"