Dateien hochladen nach „api“
This commit is contained in:
parent
3f55867d8c
commit
fe88130aaf
|
@ -3,6 +3,18 @@
|
|||
//file_put_contents("debug.txt", file_get_contents('php://input'));
|
||||
//print_r($data);
|
||||
|
||||
if(count($data) == 0)
|
||||
die("data count error");
|
||||
|
||||
if(!isset($data['GridName']))
|
||||
die("cant find gridname");
|
||||
|
||||
if(!isset($data['RegionOwnerURL']))
|
||||
die("cant find RegionOwnerURL");
|
||||
|
||||
if(!isset($data['RegionOwnerURL']))
|
||||
die("cant find RegionOwnerURL");
|
||||
|
||||
//Add Grid
|
||||
if(isset($data['RegionOwnerURL']['HomeURI']))
|
||||
$GridData = new OSGrid(@$data['GridName'], @$data['RegionOwnerURL']['HomeURI'], @$data['RegionOwnerURL']['AssetServerURI'], @$data['RegionOwnerURL']['IMServerURI']);
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
if(!isset($userInfo['result']) || $userInfo['result'] == "false")
|
||||
die("userInfo request error");
|
||||
|
||||
if(trim(@$gridInfo['gridname']) == "")
|
||||
die("empty grid name");
|
||||
|
||||
//Add Grid
|
||||
$GridData = new OSGrid(@$gridInfo['gridname'], @$serviceURLS['SRV_HomeURI'], @$serviceURLS['SRV_AssetServerURI'], @$serviceURLS['SRV_IMServerURI']);
|
||||
|
||||
|
@ -27,6 +30,7 @@
|
|||
die("Unknown Error: Grid data not in db.");
|
||||
|
||||
//Add Region
|
||||
//$regionName, $regionUUID, $userUUID, $regionImage, $regionHostname, $regionPort
|
||||
$RegionData = $GridData->addRegion(@$regionData['region_name'], @$regionInfo['uuid'], @$_POST['object_owner'], @$_POST['region_image_asset'], @$regionData['hostname'], @$regionData['http_port']);
|
||||
|
||||
//Add User
|
||||
|
|
Loading…
Reference in New Issue