summaryrefslogtreecommitdiff
path: root/pages/edit_searchtimer.ecpp
diff options
context:
space:
mode:
authorMichael Brückner <mb (plus) vdr (at) gekrumbel (dot) de>2007-04-26 18:13:40 +0000
committerMichael Brückner <mb (plus) vdr (at) gekrumbel (dot) de>2007-04-26 18:13:40 +0000
commitd6e81adf9841989ca33f331637563cc8de8906e2 (patch)
tree109c4d6c52a256fa7804c841eef61f3611020676 /pages/edit_searchtimer.ecpp
parent08e7642de2193889057796cbdaae62a20f6c4323 (diff)
downloadvdr-plugin-live-d6e81adf9841989ca33f331637563cc8de8906e2.tar.gz
vdr-plugin-live-d6e81adf9841989ca33f331637563cc8de8906e2.tar.bz2
- added login protection to the following pages: edit_searchtimer.ecpp
edit_timer.ecpp login.ecpp recordings.ecpp remote.ecpp schedule.ecpp searchresults.ecpp searchtimers.ecpp timers.ecpp whats_on.ecpp - replaced DOCTYPE at login.ecpp and whats_on.ecpp with page element "<& pageelems.doc_type &>"
Diffstat (limited to 'pages/edit_searchtimer.ecpp')
-rw-r--r--pages/edit_searchtimer.ecpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp
index 84a4fde..1085be5 100644
--- a/pages/edit_searchtimer.ecpp
+++ b/pages/edit_searchtimer.ecpp
@@ -8,6 +8,7 @@
#include "exception.h"
#include "tools.h"
#include "epgsearch.h"
+#include "setup.h"
using namespace std;
using namespace vdrlive;
@@ -73,6 +74,9 @@ using namespace vdrlive;
bool usevps = false;
string blacklistids_internal;
</%args>
+<%session scope="global">
+bool logged_in(false);
+</%session>
<%request scope="page">
SearchTimer* searchtimer;
ExtEPGInfos extEPGInfos;
@@ -81,6 +85,9 @@ Blacklists blacklists;
</%request>
<%include>page_init.eh</%include>
+<{
+if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+}>
<%cpp>
#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" );