Fixes broken ARK

This commit is contained in:
Ulrich Block 2015-07-27 22:38:46 +02:00
parent 5afa898ad5
commit 55fffe0260
3 changed files with 9 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -103,19 +103,26 @@ if ($ui->st('d', 'get') == 'ud' and $reseller_id == 0 and $pa['updateEW'] and ($
$opts = stream_context_create(array('http' => array('method' => 'GET','header' => "Accept-language: en\r\nUser-Agent: ".$ui->server['HTTP_HOST']."\r\n")));
$response->add('Downloading: '. $licenceDetails['v'] . '.zip');
$fp = @fopen('http://update.easy-wi.com/ew/' . $licenceDetails['v'] . '.zip', 'rb', false, $opts);
$zip = @fopen(EASYWIDIR . '/tmp/' . $licenceDetails['v'] . '.zip', 'wb');
if ($fp == true and $zip == true) {
while (!feof($fp)){
fwrite($zip, fread($fp, 8192));
}
fclose($fp);
fclose($zip);
$response->add('Unpacking archive: '. $licenceDetails['v'] . '.zip');
$zo = @zip_open(EASYWIDIR . '/tmp/'. $licenceDetails['v'] . '.zip');
if (is_resource($zo)) {
while ($ze = zip_read($zo)) {
$name = zip_entry_name($ze);

View File

@ -1272,11 +1272,11 @@ $gameImages = array(
':description' => 'ARK: Survival Evolved',
':gamebinary' => 'ShooterGameServer',
':gamebinaryWin' => '',
':binarydir' => ShooterGame/Binaries/Linux,
':binarydir' => 'ShooterGame/Binaries/Linux',
':modfolder' => null,
':fps' => null,
':slots' => 20,
':map' => TheIsland,
':map' => 'TheIsland',
':cmd' => './%binary% %map%?listen?MultiHome=%ip%?Port=%port%?QueryPort=%port2%?RCONPort=%port3%?MaxPlayers=%slots% -server -log',
':modcmds' => null,
':tic' => null,