* offer facility to up/download the greeter/goodbuye pic.
authorWilfried Göesgens <willi@citadel.org>
Fri, 8 Feb 2008 18:42:32 +0000 (18:42 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 8 Feb 2008 18:42:32 +0000 (18:42 +0000)
webcit/siteconfig.c
webcit/webcit.c

index 96e481c9b3c7df21adb08860c03ac39cf5c0b98b..daf3ee8d6a9cdc1fd567ed2f1ca7362e60887f6e 100644 (file)
@@ -109,6 +109,9 @@ void display_siteconfig(void)
 
        wprintf("<form method=\"post\" action=\"siteconfig\">\n");
        wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
+       
+       sprintf(&general[strlen(general)], "<tr><td><a href=\"display_edithello\"> %s </a></td>",           _("Change Login Logo"));
+       sprintf(&general[strlen(general)],     "<td><a href=\"display_editgoodbuye\"> %s </a></td></tr>\n", _("Change Logout Logo"));
 
        i = 0;
        while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
index 3c78875e868ae5bd63755328af040c5deed4b978..71b780a76a4c3d6b7d78f9bb5c43c597846c1967 100644 (file)
@@ -1696,18 +1696,35 @@ void session_loop(struct httprequest *req)
                delete_room();
        } else if (!strcasecmp(action, "validate")) {
                validate();
+               /* The users photo display / upload facility */
        } else if (!strcasecmp(action, "display_editpic")) {
                display_graphics_upload(_("your photo"),
                                        "UIMG 0|_userpic_",
                                        "editpic");
        } else if (!strcasecmp(action, "editpic")) {
                do_graphics_upload("UIMG 1|_userpic_");
+                /* room picture dispay / upload facility */
        } else if (!strcasecmp(action, "display_editroompic")) {
                display_graphics_upload(_("the icon for this room"),
                                        "UIMG 0|_roompic_",
                                        "editroompic");
        } else if (!strcasecmp(action, "editroompic")) {
                do_graphics_upload("UIMG 1|_roompic_");
+               /* the greetingpage hello pic */
+       } else if (!strcasecmp(action, "display_edithello")) {
+               display_graphics_upload(_("the Greetingpicture for the login prompt"),
+                                       "UIMG 0|hello.gif",
+                                       "edithellopic");
+       } else if (!strcasecmp(action, "edithellopic")) {
+               do_graphics_upload("UIMG 1|hello.gif");
+               /* the logoff banner */
+       } else if (!strcasecmp(action, "display_editgoodbyepic")) {
+               display_graphics_upload(_("the Logoff banner picture"),
+                                       "UIMG 0|goodbuye.gif",
+                                       "editgoodbuyepic");
+       } else if (!strcasecmp(action, "editgoodbuyepic")) {
+               do_graphics_upload("UIMG 1|goodbuye.gif");
+
        } else if (!strcasecmp(action, "delete_floor")) {
                delete_floor();
        } else if (!strcasecmp(action, "rename_floor")) {