diff options
author | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-04-28 20:12:49 +0000 |
---|---|---|
committer | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-04-28 20:12:49 +0000 |
commit | e30cc874d788d49efb5e45195178c23f3ee05fbf (patch) | |
tree | 6d101ad9685d00671685bba5eef6eb8957f22698 /pages/menu.ecpp | |
parent | 0f5bb66df5360a2befe4217de300a550eff4ad56 (diff) | |
download | vdr-plugin-live-e30cc874d788d49efb5e45195178c23f3ee05fbf.tar.gz vdr-plugin-live-e30cc874d788d49efb5e45195178c23f3ee05fbf.tar.bz2 |
"Logout" is not displayed anymore when authentication is disabled
Diffstat (limited to 'pages/menu.ecpp')
-rw-r--r-- | pages/menu.ecpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pages/menu.ecpp b/pages/menu.ecpp index a801a80..aebd764 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -1,6 +1,7 @@ <%pre> #include <vdr/plugin.h> #include <vdr/config.h> +#include "setup.h" </%pre> <%args> active; @@ -11,6 +12,9 @@ std::string set_active; std::string set_component; </%request> <{ + + using namespace vdrlive; + set_active = active; if (!component.empty()) set_component = component; @@ -22,8 +26,10 @@ std::string set_component; <a href="timers.html" <& menu.setactive current=("timers") &>><$ tr("Timers") $></a> | <a href="searchtimers.html" <& menu.setactive current=("searchtimers") &>><$ tr("Searchtimers") $></a> | <a href="recordings.html" <& menu.setactive current=("recordings") &>><$ tr("Recordings") $></a> | - <a href="remote.html" <& menu.setactive current=("remote") &>><$ tr("Remote Control") $></a> | - <a id="login" href="login.html?action=logout"><$ tr("Logout") $></a> + <a href="remote.html" <& menu.setactive current=("remote") &>><$ tr("Remote Control") $></a> +% if (LiveSetup().UseAuth()) { + | <a id="login" href="login.html?action=logout"><$ tr("Logout") $></a> +% } </div> % if (!component.empty()) { <div class="pagemenu"> |