Request Analyse reviewed, Server Initialisation Reviewed, Core Class Interface Created, App created

This commit is contained in:
EoleDev 2016-02-05 00:07:31 +01:00
parent b39f5c1cd4
commit c2a5b1880c
6 changed files with 147 additions and 83 deletions

View file

@ -3,33 +3,29 @@
include_once("config.inc.php");
include_once("init.php");
// $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." %%%%%% ";
if(isset($_POST["task"]) && isset($_POST["action"])){
$task = $_POST["task"];
$action = $_POST["action"];
}else if(isset($_POST["task"]) && $_POST["task"] == "Authenticate"){
$task = $_POST["task"];
}else{
//Gestion Erreur
}
if($task == "Authenticate"){
$App->authenticate();
$App->show();
}
switch($task)
{
case "identity":
include_once("core/Identity.php");
$identityObject = new identity($App);
$identityObject->action($action);
$App->show();
break;
}
// var_dump($openstack_api->getBuilderOptions());