%pre> #include "setup.h" using namespace vdrlive; using namespace std; %pre> <%args> int lastchannel = 0; bool useauth = 0; string login; string pass; string times; %args> <%session scope="global"> bool logged_in(false); %session> <%include>page_init.eh%include> <{ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> if ( request.getMethod() == "POST") { LiveSetup().SetLastChannel(lastchannel); LiveSetup().SetUseAuth(useauth); if (useauth) { LiveSetup().SetAdminLogin(login); if (pass != "") LiveSetup().SetAdminPassword(pass); } LiveSetup().SetTimes(times); LiveSetup().SaveSetup(); } pageTitle = tr("Setup"); lastchannel = LiveSetup().GetLastChannel(); login = LiveSetup().GetAdminLogin(); useauth = LiveSetup().UseAuth(); times = LiveSetup().GetTimes(); %cpp> <& pageelems.doc_type &>