Error correction
This commit is contained in:
parent
1d42345e07
commit
c9202d9113
5 changed files with 10 additions and 1 deletions
|
@ -13,6 +13,7 @@ include("Image.php");
|
||||||
include("Network.php");
|
include("Network.php");
|
||||||
include("Compute.php");
|
include("Compute.php");
|
||||||
include("NetworkLayer3.php");
|
include("NetworkLayer3.php");
|
||||||
|
include("CoreInterface.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* automating Class of the back-end application
|
* automating Class of the back-end application
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
use OpenCloud\Common\Error;
|
use OpenCloud\Common\Error;
|
||||||
|
|
||||||
|
include("CoreInterface.php");
|
||||||
/**
|
/**
|
||||||
* Compute Class of the back-end application
|
* Compute Class of the back-end application
|
||||||
*
|
*
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
use OpenCloud\Common\Error;
|
use OpenCloud\Common\Error;
|
||||||
|
|
||||||
|
include("CoreInterface.php");
|
||||||
/**
|
/**
|
||||||
* Identity Class of the back-end application
|
* Identity Class of the back-end application
|
||||||
*
|
*
|
||||||
|
|
|
@ -385,7 +385,9 @@ class genTokenOptions
|
||||||
*/
|
*/
|
||||||
private function saveBackup($name, $data){
|
private function saveBackup($name, $data){
|
||||||
$token = $this->serializeToken($data["token"]);
|
$token = $this->serializeToken($data["token"]);
|
||||||
file_put_contents("core/LibOverride/projectTokenData/".$token['saved']["project"]["name"], serialize($token['saved']));
|
$ret = file_put_contents("core/LibOverride/projectTokenData/".$token['saved']["project"]["name"], serialize($token['saved']));
|
||||||
|
if($ret === FALSE)
|
||||||
|
die("Internal Server Error : File Rights");
|
||||||
$this->backup['time'] = $token['time'];
|
$this->backup['time'] = $token['time'];
|
||||||
$this->backup["roles"] = $token["roles"];
|
$this->backup["roles"] = $token["roles"];
|
||||||
$this->backup["project"] = $token['saved']["project"]["name"];
|
$this->backup["project"] = $token['saved']["project"]["name"];
|
||||||
|
@ -504,6 +506,8 @@ class genTokenOptions
|
||||||
*/
|
*/
|
||||||
private function unserializeToken($tokenSerialized){
|
private function unserializeToken($tokenSerialized){
|
||||||
$Saved = file_get_contents("core/LibOverride/projectTokenData/".$this->backup["project"]);
|
$Saved = file_get_contents("core/LibOverride/projectTokenData/".$this->backup["project"]);
|
||||||
|
if($Saved === FALSE)
|
||||||
|
die("Internal Server Error : File Access");
|
||||||
$Saved = unserialize($Saved);
|
$Saved = unserialize($Saved);
|
||||||
|
|
||||||
$api = new Api();
|
$api = new Api();
|
||||||
|
|
|
@ -13,6 +13,8 @@ use OpenCloud\Common\Error\BaseError;
|
||||||
use OpenCloud\Common\Error\NotImplementedError;
|
use OpenCloud\Common\Error\NotImplementedError;
|
||||||
use OpenCloud\Common\Error\UserInputError;
|
use OpenCloud\Common\Error\UserInputError;
|
||||||
|
|
||||||
|
include("CoreInterface.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network Class of the back-end application
|
* Network Class of the back-end application
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue