<%pre> #include #include #include #include "livefeatures.h" #include "setup.h" #include "i18n.h" #include "timerconflict.h" using namespace std; using namespace vdrlive; <%args> active; component; <%session scope="global"> bool logged_in(false); TimerConflictNotifier timerNotifier(); <%request scope="page"> std::string set_active; std::string set_component; <%cpp> if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); bool hasComp(!component.empty()); bool hasMesg(timerNotifier.ShouldNotify()); set_active = active; if (hasComp) { set_component = component; } <%def setactive> <%args> current; <%cpp> if (current == set_active) { class="active"<%cpp> } <%def component> <%args> current; <%cpp> if ((current == set_active) && (!set_component.empty())) { <& (set_component) &><%cpp> }