From 0f80803af0947e51a877b683f1fd1ccf5f85a030 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 27 Apr 2011 10:34:24 +0200 Subject: Meldung bei 'kein Bootmenu' --- application/modules/fbgui/controllers/IndexController.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'application/modules/fbgui/controllers/IndexController.php') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 1401be3..3f59873 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -143,6 +143,15 @@ class Fbgui_IndexController extends Zend_Controller_Action // 'Your alphasessionID is '.$session->getAlphasessionID(), // 'Your client is '.$session->getClientID(), // 'there is no bootmenu for you'); + if (!Zend_Auth::getInstance()->hasIdentity()) { + $this->view->loginmenu = true; + $pbsNotifier = new Pbs_Notifier(); + $this->view->notification = $pbsNotifier->notify("There is no default BootMenu, please Login to get your BootMenu.",'info'); + } + else{ + $pbsNotifier = new Pbs_Notifier(); + $this->view->notification = $pbsNotifier->notify("You have no BootMenu.",'info'); + } $this->view->nobootmenu = true; } } -- cgit v1.2.3-55-g7522