summaryrefslogtreecommitdiff
path: root/server/core/App.php
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
commit53f65de9d4163c9c095f2b8e87baca648c3645bd (patch)
tree37f167f38b25aa50bd7dd1429438c0245a280a28 /server/core/App.php
parent60cfe3ebc039df8d6a468a43a59e7fd8c2a16956 (diff)
parent804fa322d841d73ee7592885ec500dc94e91b9e6 (diff)
Test
Diffstat (limited to 'server/core/App.php')
-rwxr-xr-xserver/core/App.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/server/core/App.php b/server/core/App.php
index d35ccc0..48bb9ab 100755
--- a/server/core/App.php
+++ b/server/core/App.php
@@ -22,7 +22,7 @@ class App{
$this->tokenPost = NULL;
$this->tokenClass = new genTokenOptions($args);
- $this->openstack = new OpenStack\OpenStack([]);
+ $this->openstack = new OpenStack\OpenStack(['authUrl' => $args["authUrl"]]);
$this->pluginsApi = plugin_api::getInstance();
$this->errorClass = new errorManagement($this);
$this->output = array();
@@ -37,6 +37,10 @@ class App{
}
+ public function checkToken(){
+ return $this->tokenClass->checkToken();
+ }
+
public function getLibClass($service){
switch($service){
@@ -108,9 +112,20 @@ class App{
}
public function getPostParam($name){
+
+ if(isset($this->postParams[$name])){
+ return $this->postParams[$name];
+ }else{
+ $this->setOutput("Error", "Missing parameter ".$name);
+ }
- return $this->postParams[$name];
+ }
+
+
+ public function setPostParam($param, $value){
+ $this->postParams[$param] = $value;
+
}
public function setOutput($key, $out){