diff options
Diffstat (limited to 'server/core/App.php')
| -rwxr-xr-x | server/core/App.php | 19 |
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){
|
