summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers
diff options
context:
space:
mode:
authorSimon2011-04-11 15:31:54 +0200
committerSimon2011-04-11 15:31:54 +0200
commitfc602576ab44cdec5c91f2b95fd117b25159f2b1 (patch)
treef9868c9037db81774c8d60aa40d7edae6da35de7 /application/modules/fbgui/controllers
parentlogin wir din fbgui angezeigt (diff)
downloadpbs2-fc602576ab44cdec5c91f2b95fd117b25159f2b1.tar.gz
pbs2-fc602576ab44cdec5c91f2b95fd117b25159f2b1.tar.xz
pbs2-fc602576ab44cdec5c91f2b95fd117b25159f2b1.zip
fbgui - link zum anmelden nur wenn er noch nicht angemeldet ist
Diffstat (limited to 'application/modules/fbgui/controllers')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 3567f70..c874d97 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -66,6 +66,9 @@ class Fbgui_IndexController extends Zend_Controller_Action
$bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
$res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),false);
$this->view->entries = $res;
+ if (!Zend_Auth::getInstance()->hasIdentity()) {
+ echo "<a href='/fbgui/auth/login/'>Goto Login to get your Bootmenu</a>";
+ }
}
else{
/*
@@ -76,7 +79,7 @@ class Fbgui_IndexController extends Zend_Controller_Action
'Your client is '.$session->getClientID(),
'there is no bootmenu for you');
*/
- echo "<a href='/fbgui/auth/login/'>Goto Login to get a Bootmenu</a>";
+ echo "<a href='/fbgui/auth/login/'>Goto Login to get your Bootmenu</a>";
}
}
else{