From 9db235056c081adf494bb6d8555a46ea15639b35 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 1 Nov 2011 16:54:36 +0000 Subject: Code tidy, trigger build id update. --- WebPush/index.php | 11 ++++++----- WebPush/upload.php | 47 ++++++++++++++++++----------------------------- 2 files changed, 24 insertions(+), 34 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(); } diff --git a/WebPush/upload.php b/WebPush/upload.php index cf5c2112e..f971062ed 100644 --- a/WebPush/upload.php +++ b/WebPush/upload.php @@ -1,35 +1,32 @@ load_file($url); $output = "Change Log: