array('header' => 'Content-type: '.$requestTyp, 'method' => 'POST', 'timeout' => 0.5, 'content' => $content)))); } else { return file_get_contents($url); } } catch (Exception $e) { echo "(HTTP REQUEST) error while conntect to remote server. : ".$url; } } public static function sendInworldIM($fromUUID, $toUUID, $fromName, $targetURL, $text) { $rawXML = "grid_instant_messageposition_x0position_y0position_z0to_agent_id".$toUUID."from_agent_session00000000-0000-0000-0000-000000000000im_session_id".$fromUUID."from_agent_name".$fromName."from_agent_id".$fromUUID."binary_bucketAA==region_handle0region_id00000000-0000-0000-0000-000000000000parent_estate_id1timestamp".time()."dialogAA==offlineAA==from_groupFALSEmessage".$text.""; Util::getDataFromHTTP($targetURL, $rawXML, "text/xml"); } public static function displayError($app, $message): void { $app->template('error.php')->parent('__presession.php')->vars([ 'title' => 'Fehler', 'error-message' => $message ])->render(); } }