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/error.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/error.ecpp')
-rw-r--r-- | pages/error.ecpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pages/error.ecpp b/pages/error.ecpp index e7bc8c5..bb82887 100644 --- a/pages/error.ecpp +++ b/pages/error.ecpp @@ -1,5 +1,8 @@ <%pre> #include <vdr/i18n.h> +#include "setup.h" + +using namespace vdrlive; </%pre> <%args> @@ -7,6 +10,12 @@ errorTitle = tr("Page error"); errorMessage; </%args> +<%session scope="global"> +bool logged_in(false); +</%session> +<{ +if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); +}> <& pageelems.doc_type &> <html> <head> |