diff options
author | Michael Brückner <mb (plus) vdr (at) gekrumbel (dot) de> | 2007-05-04 19:51:30 +0000 |
---|---|---|
committer | Michael Brückner <mb (plus) vdr (at) gekrumbel (dot) de> | 2007-05-04 19:51:30 +0000 |
commit | 9768f3ab067bd56dc83a14b3955f5d371707106e (patch) | |
tree | 6553f040711f394ed93e9528a67d6175b0d92b21 /pages/ibox.ecpp | |
parent | e6e4c0144fbf45181de6e997fe956ced29cc8bf5 (diff) | |
download | vdr-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.ecpp | 6 |
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()) { |