From fc602576ab44cdec5c91f2b95fd117b25159f2b1 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 11 Apr 2011 15:31:54 +0200 Subject: fbgui - link zum anmelden nur wenn er noch nicht angemeldet ist --- application/modules/fbgui/controllers/IndexController.php | 5 ++++- application/modules/fbgui/views/scripts/index/index.phtml | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'application/modules') 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 "Goto Login to get your Bootmenu"; + } } else{ /* @@ -76,7 +79,7 @@ class Fbgui_IndexController extends Zend_Controller_Action 'Your client is '.$session->getClientID(), 'there is no bootmenu for you'); */ - echo "Goto Login to get a Bootmenu"; + echo "Goto Login to get your Bootmenu"; } } else{ diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml index c90468f..6917643 100644 --- a/application/modules/fbgui/views/scripts/index/index.phtml +++ b/application/modules/fbgui/views/scripts/index/index.phtml @@ -36,5 +36,4 @@
- Goto Login to get your Bootmenu -- cgit v1.2.3-55-g7522