summaryrefslogtreecommitdiff
path: root/server/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/index.php')
-rwxr-xr-x[-rw-r--r--]server/index.php30
1 files changed, 28 insertions, 2 deletions
diff --git a/server/index.php b/server/index.php
index ca84641..b3c061a 100644..100755
--- a/server/index.php
+++ b/server/index.php
@@ -3,7 +3,33 @@
include_once("config.inc.php");
include_once("init.php");
- $task = $_POST["task"];
- $action = $_POST["action"];
+// $task = $_POST["task"];
+// $action = $_POST["action"];
+
+ //$id = new identity($openstack_api, $pluginApi);
+
+// var_dump($id->genToken());
+// $identity = $openstack_api->identityV3($Args);
+ //$tmp = $identity->listEndpoints();
+ //foreach($tmp as $cred){
+// echo $cred->id." %%%%%% ";
+ //}
+ //$servers = $compute->listServers(true);
+ //var_dump($servers);
+ //foreach($servers as $server){
+ // echo $server->id." !!!!!!!!! ";
+ //}
+
+ $tmp = new genTokenOptions($Args);
+ $tmp->loadIdentityBackup($identityBack);
+ $array = $tmp->getOptions("Identity");
+
+ $openstackTest = new OpenStack\OpenStack([]);
+ $identityTest = $openstackTest->identityV3($array);
+ $domainsTest = $identityTest->listDomains();
+ foreach($domainsTest as $domain){
+ echo $domain->id." %%%%%% ";
+ }
+ // var_dump($openstack_api->getBuilderOptions());