%pre> #include "setup.h" using namespace vdrlive; using namespace std; %pre> <%args> int lastchannel = 0; bool useauth = 0; string login; string pass; int passLength = 0; %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); LiveSetup().SetAdminLogin(login); LiveSetup().SetAdminPassword(pass); return reply.redirect("setup.html"); } pageTitle = tr("Setup"); lastchannel = LiveSetup().GetLastChannel(); login = LiveSetup().GetAdminLogin(); useauth = LiveSetup().UseAuth(); %cpp> <& pageelems.doc_type &>