summaryrefslogtreecommitdiffstats
path: root/application/layouts
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-05 12:15:51 +0200
committerBjörn Geiger2011-08-05 12:15:51 +0200
commit2ad7dcd8251dcd1ec99f0f6c998dfb5423e36d6f (patch)
treeeb0c0125242fe7d69fc406514c1155255d9183a7 /application/layouts
parentFehler korrigiert (diff)
downloadpoolctrl-2ad7dcd8251dcd1ec99f0f6c998dfb5423e36d6f.tar.gz
poolctrl-2ad7dcd8251dcd1ec99f0f6c998dfb5423e36d6f.tar.xz
poolctrl-2ad7dcd8251dcd1ec99f0f6c998dfb5423e36d6f.zip
verschiedene Fehler korrigiert
Diffstat (limited to 'application/layouts')
-rw-r--r--application/layouts/default.phtml8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml
index f9de7ca..1932d5b 100644
--- a/application/layouts/default.phtml
+++ b/application/layouts/default.phtml
@@ -1,7 +1,7 @@
<?php
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$config = $bootstrap->getOptions();
-$pbs2host = $this->config['pbs2']['host'];
+$pbs2host = $config['pbs2']['host'];
?>
<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
@@ -65,7 +65,7 @@ echo $this->headScript()."\n";
<div id="head-titlebar">
<div style='float: right'><?php
if(Zend_Auth::getInstance()->hasIdentity()){
- echo 'Logged in as';
+ echo 'Logged in as ';
$userIDsNamespace = Zend_Session::namespaceGet('userIDs');
if(isset($userIDsNamespace['membershipID'])){
@@ -97,8 +97,8 @@ if(Zend_Auth::getInstance()->hasIdentity()){
}
if(isset($userIDsNamespace['groupID'])){
echo " in group ";
- $grouprequest = "groupid=" . $membership['groupID'];
- $groupApiResult = PostToHost($pbs2host, $config['pbs2']['getgroup'] . $membership['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $grouprequest);
+ $grouprequest = "groupid=" . $userIDsNamespace['groupID'];
+ $groupApiResult = PostToHost($pbs2host, $config['pbs2']['getgroup'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $grouprequest);
$groupXMLString = $groupApiResult['http-body'];
if(strlen($groupXMLString) > 0) {
$groupXML = new SimpleXMLElement($groupXMLString);