From 4a7724fb059e41e997958ff32a033b2741fbb304 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 31 May 2007 19:24:57 +0000 Subject: - configurable start page --- pages/setup.ecpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'pages/setup.ecpp') diff --git a/pages/setup.ecpp b/pages/setup.ecpp index a95f55d..1650211 100644 --- a/pages/setup.ecpp +++ b/pages/setup.ecpp @@ -12,6 +12,7 @@ using namespace std; string login; string pass; string times; + string startscreen; <%session scope="global"> bool logged_in(false); @@ -21,6 +22,8 @@ bool logged_in(false); if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> +#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" ); + if ( request.getMethod() == "POST") { LiveSetup().SetLastChannel(lastchannel != "" ? lexical_cast< int >(lastchannel):0); LiveSetup().SetUseAuth(useauth); @@ -30,6 +33,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); LiveSetup().SetAdminPassword(pass); } LiveSetup().SetTimes(times); + LiveSetup().SetStartScreen(startscreen); LiveSetup().SaveSetup(); } pageTitle = tr("Setup"); @@ -42,6 +46,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); login = LiveSetup().GetAdminLogin(); useauth = LiveSetup().UseAuth(); times = LiveSetup().GetTimes(); + startscreen = LiveSetup().GetStartScreen(); <& pageelems.doc_type &> @@ -104,6 +109,18 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <& tooltip.help text=(tr("Format is HH:MM. Separate multiple times with a colon")) &> + + + <$ tr("Start page") $>: + + + -- cgit v1.2.3