From 4173c5f13716fb5658deaa4046c5b3d99682e413 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 8 Feb 2008 18:42:32 +0000 Subject: [PATCH] * offer facility to up/download the greeter/goodbuye pic. --- webcit/siteconfig.c | 3 +++ webcit/webcit.c | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 96e481c9b..daf3ee8d6 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -109,6 +109,9 @@ void display_siteconfig(void) wprintf("
\n"); wprintf("\n", WC->nonce); + + sprintf(&general[strlen(general)], " %s ", _("Change Login Logo")); + sprintf(&general[strlen(general)], " %s \n", _("Change Logout Logo")); i = 0; while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { diff --git a/webcit/webcit.c b/webcit/webcit.c index 3c78875e8..71b780a76 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -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")) { -- 2.30.2