summaryrefslogtreecommitdiff
path: root/pages/whats_on.ecpp
diff options
context:
space:
mode:
authorThomas Keil <tkeil (at) datacrystal (dot) de>2007-04-26 16:18:16 +0000
committerThomas Keil <tkeil (at) datacrystal (dot) de>2007-04-26 16:18:16 +0000
commitda83671faaaaf84ebcfb171745166952ddb2d46c (patch)
tree9a12c56c475cebf8376204c38fae82653c52b1b2 /pages/whats_on.ecpp
parentdd0362636658a20fb4144f6b221cf2808ffa6439 (diff)
downloadvdr-plugin-live-da83671faaaaf84ebcfb171745166952ddb2d46c.tar.gz
vdr-plugin-live-da83671faaaaf84ebcfb171745166952ddb2d46c.tar.bz2
Added authentication
Diffstat (limited to 'pages/whats_on.ecpp')
-rw-r--r--pages/whats_on.ecpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index e24aca5..daf09d4 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -15,8 +15,13 @@ using namespace vdrlive;
<%args>
type = "now";
</%args>
+<%session scope="global">
+bool logged_in(false);
+</%session>
<%include>page_init.eh</%include>
<{
+if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+
cSchedulesLock schedulesLock;
const cSchedules* Schedules = cSchedules::Schedules(schedulesLock);