summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-05 10:54:31 +0200
committerBjörn Geiger2011-08-05 10:54:31 +0200
commitcf7744b162a5f1e04de1f5dce0b53dd374ac59c0 (patch)
treeeb206a7e6e50d0585d50c81fac5dc456d5b33660 /application
parentweiteren Fehler korrigiert (diff)
downloadpoolctrl-cf7744b162a5f1e04de1f5dce0b53dd374ac59c0.tar.gz
poolctrl-cf7744b162a5f1e04de1f5dce0b53dd374ac59c0.tar.xz
poolctrl-cf7744b162a5f1e04de1f5dce0b53dd374ac59c0.zip
layout.phtml config eingebunden
Diffstat (limited to 'application')
-rw-r--r--application/layouts/default.phtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml
index b948b8d..7e9ef62 100644
--- a/application/layouts/default.phtml
+++ b/application/layouts/default.phtml
@@ -1,3 +1,8 @@
+<?php
+$bootstrap = $this->getInvokeArg('bootstrap');
+$config = $bootstrap->getOptions();
+$pbs2host = $this->config['pbs2']['host'];
+?>
<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
@@ -69,7 +74,7 @@ if(Zend_Auth::getInstance()->hasIdentity()){
$membershipMapper->find($userIDsNamespace['membershipID'],$membership);
}
if(isset($userIDsNamespace['personID'])){
- $personApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getperson'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
+ $personApiResult = PostToHost($pbs2host, $config['pbs2']['getperson'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
$personXMLString = $personApiResult['http-body'];
if(strlen($personXMLString) > 0) {
$personXML = new SimpleXMLElement($personXMLString);
@@ -92,7 +97,7 @@ if(Zend_Auth::getInstance()->hasIdentity()){
}
if(isset($userIDsNamespace['groupID'])){
echo " in group ";
- $groupApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getgroup'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
+ $groupApiResult = PostToHost($pbs2host, $config['pbs2']['getgroup'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
$groupXMLString = $groupApiResult['http-body'];
if(strlen($groupXMLString) > 0) {
$groupXML = new SimpleXMLElement($groupXMLString);