21 lines
625 B
PHP
21 lines
625 B
PHP
<?php
|
|
|
|
require "config.php";
|
|
require "functions.php";
|
|
require "options.php";
|
|
|
|
$os_guess = guess_os();
|
|
|
|
$latest = json_decode(file_get_contents('releases/latest.json'), true);
|
|
$version = empty($latest["version"]) ? "" : $latest["version"];
|
|
$version_timestamp = empty($latest["timestamp"]) ? -1 : $latest["timestamp"];
|
|
$version_timestamp_in_words = timestamp_in_words($version_timestamp);
|
|
|
|
if (!empty($latest["linux_path"])) {
|
|
$options["linux"]["download_path"] = "releases/" . $latest["linux_path"];
|
|
}
|
|
|
|
if (!empty($latest["windows_path"])) {
|
|
$options["windows"]["download_path"] = "releases/" . $latest["windows_path"];
|
|
}
|