Beispiel #1
0
 public function GetSystemUUIDfromRemote()
 {
     $method = "CetSystemUUID";
     if (function_exists("ioncube_server_data")) {
         $system_server_data = ioncube_server_data();
     } else {
         $system_server_data = "";
     }
     $params = array("system_server_data" => $system_server_data);
     $argsJson = urlencode(json_encode($params));
     $query = array("method={$method}", "format=json", "argsJson={$argsJson}");
     $httpClient = new HttpClient('POST');
     foreach ($query as $q) {
         $httpClient->addQuery($q);
     }
     $headerList = array();
     $out = $httpClient->fetchContents($this->m_UDC_Server, $headerList);
     $cats = json_decode($out, true);
     $result = $cats['data'];
     if ($result) {
         $dataFile = APP_HOME . '/files/system_uuid.data';
         file_put_contents($dataFile, $result);
     }
     return $result;
 }
 public function GoRegister()
 {
     $this->getAppRegister();
     if ($this->moduleRegister && function_exists($this->moduleRegister)) {
         $param = null;
         if (function_exists("ioncube_server_data")) {
             $param = ioncube_server_data();
         }
         return call_user_func($this->moduleRegister, $param);
     }
 }
<?php

/**
* Get Server Info
*/
$data = ioncube_server_data();
echo '<html><body><pre>' . $data . '</pre></body></html>';