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
commit9db235056c081adf494bb6d8555a46ea15639b35 (patch)
tree8d38a8b9a8100a4279268900e1176fbefe8d180a /WebPush/index.php
parent1efc273d94e93ea4677230f154bf07ddd452acb5 (diff)
downloadEssentials-9db235056c081adf494bb6d8555a46ea15639b35.tar
Essentials-9db235056c081adf494bb6d8555a46ea15639b35.tar.gz
Essentials-9db235056c081adf494bb6d8555a46ea15639b35.tar.lz
Essentials-9db235056c081adf494bb6d8555a46ea15639b35.tar.xz
Essentials-9db235056c081adf494bb6d8555a46ea15639b35.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();
}