Browse Source

„index.php“ ändern

master
Chris 1 year ago
parent
commit
7cf6f166b3
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      index.php

+ 0
- 15
index.php View File

@ -3,21 +3,6 @@
$DATA['AssetServer'] = "http://127.0.0.1:8002/";
function getServerURI($homeURL, $userID)
{
$xml = '<?xml version="1.0" encoding="utf-8"?><methodCall><methodName>get_server_urls</methodName><params><param><value><struct><member><name>userID</name><value><string>'.$userID.'</string></value></member></struct></value></param></params></methodCall>';
$optionen = stream_context_create(array('http' => array('timeout' => 1, 'method' => 'POST', 'header' => 'Content-Type: application/xml', 'content' => $xml)));
$result = file_get_contents($homeURL, false, $optionen);
$servers = new SimpleXMLElement($result);
foreach ($servers->params->param->value->struct[0] as $serverEntry)
{
if($serverEntry->name == 'SRV_AssetServerURI')
return $serverEntry->value->string->__toString();
}
}
function getAssetData($assetServer, $assetUUID)
{
global $DATA;

Loading…
Cancel
Save