Ejemplo n.º 1
0
//Authentification and deauthentification request
if ($task == "Authenticate") {
    $App->authenticate();
    $App->show();
} else {
    if ($task == "Deauthenticate") {
        $App->deauthenticate();
        $App->show();
    } else {
        if ($App->checkToken()) {
            //Task switcher and task's file loader
            switch ($task) {
                case "identity":
                    include_once "core/Identity.php";
                    $identityObject = new identity($App);
                    $identityObject->action($action);
                    $App->show();
                    break;
                case "network":
                    include_once "core/Network.php";
                    $networkObject = new network($App);
                    $networkObject->action($action);
                    $App->show();
                    break;
                case "image":
                    include_once "core/Image.php";
                    $imageObject = new image($App);
                    $imageObject->action($action);
                    $App->show();
                    break;
                case "compute":