Initial commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
<?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"];
|
||||
}
|
||||
Reference in New Issue
Block a user