summaryrefslogtreecommitdiff
path: root/pages/ibox.ecpp
diff options
context:
space:
mode:
authorMichael Brückner <mb (plus) vdr (at) gekrumbel (dot) de>2007-05-04 19:51:30 +0000
committerMichael Brückner <mb (plus) vdr (at) gekrumbel (dot) de>2007-05-04 19:51:30 +0000
commit9768f3ab067bd56dc83a14b3955f5d371707106e (patch)
tree6553f040711f394ed93e9528a67d6175b0d92b21 /pages/ibox.ecpp
parente6e4c0144fbf45181de6e997fe956ced29cc8bf5 (diff)
downloadvdr-plugin-live-9768f3ab067bd56dc83a14b3955f5d371707106e.tar.gz
vdr-plugin-live-9768f3ab067bd56dc83a14b3955f5d371707106e.tar.bz2
- added login protection to various pages that i did forget
Diffstat (limited to 'pages/ibox.ecpp')
-rw-r--r--pages/ibox.ecpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/ibox.ecpp b/pages/ibox.ecpp
index 7ca6069..e2b2fb8 100644
--- a/pages/ibox.ecpp
+++ b/pages/ibox.ecpp
@@ -7,6 +7,7 @@
#include <vdr/device.h>
#include "exception.h"
+#include "setup.h"
#include "tools.h"
#include "epg_events.h"
@@ -17,12 +18,15 @@ using namespace std;
<%args>
int update;
</%args>
+<%session scope="global">
+bool logged_in(false);
+</%session>
<%cpp>
+ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
EpgEvents epgEvents;
string EMPTY_STR;
tChannelID prev_chan;
tChannelID next_chan;
-
reply.setContentType( "application/xml" );
if (cReplayControl::NowReplaying()) {