summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-02-02 16:01:43 +0100
committerMichael Neves2012-02-02 16:01:43 +0100
commitfeda2105284dcefb8f0eab0873ca716beae2dd2c (patch)
treeeb8969fa994f28c51fde29b60ee95c0a0371bf0f
parentpbs no apikey warning (diff)
downloadpbs2-feda2105284dcefb8f0eab0873ca716beae2dd2c.tar.gz
pbs2-feda2105284dcefb8f0eab0873ca716beae2dd2c.tar.xz
pbs2-feda2105284dcefb8f0eab0873ca716beae2dd2c.zip
Remote_HOST nicht ADDR
-rw-r--r--application/controllers/ResourceController.php2
-rw-r--r--application/modules/fbgui/controllers/IndexController.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 2a7b3e9..089e5ba 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -196,7 +196,7 @@ class ResourceController extends Zend_Controller_Action {
$apikey = $this->_request->getParam('apikey');
if($apikey == "") {
header('Content-Type: text/html');
- echo "No API Key\n";
+ echo "Error: No API Key\n";
die();
}
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 3bd9794..8c909e3 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -182,7 +182,7 @@ class Fbgui_IndexController extends Zend_Controller_Action {
$sessionMapper->save($session);
- $this->view->host = $_SERVER['REMOTE_ADDR'];
+ $this->view->host = $_SERVER['REMOTE_HOST'];
$this->view->alphasessionID = $a;
}