From 0c31823eaf26a6464320a6f3b157077c80f7185a Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 3 Jun 2007 09:43:38 +0000 Subject: - support for local net without necessary login --- pages/setup.ecpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/setup.ecpp b/pages/setup.ecpp index 1c0393f..7e17774 100644 --- a/pages/setup.ecpp +++ b/pages/setup.ecpp @@ -13,6 +13,7 @@ using namespace std; string pass; string times; string startscreen; + string localnetmask; <%session scope="global"> bool logged_in(false); @@ -31,6 +32,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); LiveSetup().SetAdminLogin(login); if (pass != "") LiveSetup().SetAdminPassword(pass); + LiveSetup().SetLocalNetMask(localnetmask); } LiveSetup().SetTimes(times); LiveSetup().SetStartScreen(startscreen); @@ -44,10 +46,10 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); lastchannel = lexical_cast(ilastchannel); login = LiveSetup().GetAdminLogin(); - useauth = LiveSetup().UseAuth(); + useauth = LiveSetup().GetUseAuth(); times = LiveSetup().GetTimes(); startscreen = LiveSetup().GetStartScreen(); - + localnetmask = LiveSetup().GetLocalNetMask(); <& pageelems.doc_type &> @@ -97,6 +99,10 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <$ tr("Admin password") $>: + + <$ tr("Local net (no login required)") $>: + + -- cgit v1.2.3