summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
authorSimon2011-04-11 15:31:54 +0200
committerSimon2011-04-11 15:31:54 +0200
commitfc602576ab44cdec5c91f2b95fd117b25159f2b1 (patch)
treef9868c9037db81774c8d60aa40d7edae6da35de7 /application/modules
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')
-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;?>