summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php5
-rw-r--r--application/modules/fbgui/views/scripts/index/index.phtml1
2 files changed, 4 insertions, 2 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{
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 @@
<input style="display:none;" type='text' id="selectedBootOs" />
<button style='cursor:pointer;float:right;margin-top:10px;' onClick="start();"><img id='startball' src='/media/img/button-red.png'> <span style='font-size:14px;'>Start System</span></button>
<div class='clear'></div>
- <a href='/fbgui/auth/login/'>Goto Login to get your Bootmenu</a>
<?php endif;?>