diff --git a/web/images/games/icons/ark.png b/web/images/games/icons/ark.png new file mode 100644 index 00000000..18646e6c Binary files /dev/null and b/web/images/games/icons/ark.png differ diff --git a/web/stuff/admin/versioncheck.php b/web/stuff/admin/versioncheck.php index 86defe34..a7847f1b 100644 --- a/web/stuff/admin/versioncheck.php +++ b/web/stuff/admin/versioncheck.php @@ -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); diff --git a/web/stuff/methods/gameslist.php b/web/stuff/methods/gameslist.php index c876e702..a9925974 100644 --- a/web/stuff/methods/gameslist.php +++ b/web/stuff/methods/gameslist.php @@ -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,