mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Fixes broken ARK
This commit is contained in:
parent
5afa898ad5
commit
55fffe0260
BIN
web/images/games/icons/ark.png
Normal file
BIN
web/images/games/icons/ark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user