summaryrefslogtreecommitdiff
path: root/latest.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-24 15:37:01 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-24 15:37:01 +0200
commite3298dbeaae79bb1d384fa8cd78a67be89819720 (patch)
tree871560e330f6c7225fb50ae86e3586776d81356a /latest.php
downloadkartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.tar.gz
kartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.tar.bz2
kartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.zip
Initial commit
Diffstat (limited to 'latest.php')
-rw-r--r--latest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/latest.php b/latest.php
new file mode 100644
index 0000000..564a22d
--- /dev/null
+++ b/latest.php
@@ -0,0 +1,20 @@
+<?php
+
+header("Content-Type: text/plain");
+
+if (isset($_GET['v'])) {
+ if ($_GET['v'] == "beta") {
+ die(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/beta/release"));
+ }
+ if ($_GET['v'] == "eap") {
+ die(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/eap/release"));
+ }
+ if ($_GET['v'] == "nightly") {
+ die(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/nightly/release"));
+ }
+ if ($_GET['v'] == "stable") {
+ die(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/stable/release"));
+ }
+} else {
+ die();
+}