summaryrefslogtreecommitdiffstats
path: root/WebPush/index.php
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-11-01 16:54:36 +0000
committerKHobbits <rob@khobbits.co.uk>2011-11-01 16:54:36 +0000
commit375636cd36e94aea798be46decaa2fb44de19789 (patch)
tree1054761f941770593adfcef5559de466a5fb93bb /WebPush/index.php
parentdd87dcdd3d3d94d00a38dbb37280fad183356601 (diff)
downloadEssentials-375636cd36e94aea798be46decaa2fb44de19789.tar
Essentials-375636cd36e94aea798be46decaa2fb44de19789.tar.gz
Essentials-375636cd36e94aea798be46decaa2fb44de19789.tar.lz
Essentials-375636cd36e94aea798be46decaa2fb44de19789.tar.xz
Essentials-375636cd36e94aea798be46decaa2fb44de19789.zip
Code tidy, trigger build id update.
Diffstat (limited to 'WebPush/index.php')
-rw-r--r--WebPush/index.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/WebPush/index.php b/WebPush/index.php
index ab018bf27..fc3405fe2 100644
--- a/WebPush/index.php
+++ b/WebPush/index.php
@@ -22,14 +22,15 @@ $build = $_GET['buildid'];
$branch = $_GET['branch'];
$version = $_GET['version'];
-if ($build == "" || $branch == "" || $version == "")
-{
- die();
+include('../build/function.php');
+updateval($branch);
+
+if ($build == "" || $branch == "" || $version == "") {
+ die('Invalid');
}
//Don't upload dev builds atm.
-if ($branch == "bt2")
-{
+if ($branch == "bt2") {
die();
}