summaryrefslogtreecommitdiffstats
path: root/WebPush/index.php
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-13 17:19:25 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-13 17:19:25 +0100
commit0e14518c15c74025d7f0886298a1b61dedd1a7e7 (patch)
tree3b9f0993bd96defb7885022ed1e49c4d77e05aca /WebPush/index.php
parent7034524790a2940b5b136db5e354cc9120d49aa2 (diff)
downloadEssentials-0e14518c15c74025d7f0886298a1b61dedd1a7e7.tar
Essentials-0e14518c15c74025d7f0886298a1b61dedd1a7e7.tar.gz
Essentials-0e14518c15c74025d7f0886298a1b61dedd1a7e7.tar.lz
Essentials-0e14518c15c74025d7f0886298a1b61dedd1a7e7.tar.xz
Essentials-0e14518c15c74025d7f0886298a1b61dedd1a7e7.zip
Made a silly little upload script, for uploading things to dev bukkit.
Diffstat (limited to 'WebPush/index.php')
-rw-r--r--WebPush/index.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/WebPush/index.php b/WebPush/index.php
new file mode 100644
index 000000000..ab018bf27
--- /dev/null
+++ b/WebPush/index.php
@@ -0,0 +1,52 @@
+<?php
+
+//We want to be able to continue if the client aborts.
+ignore_user_abort();
+set_time_limit(0);
+error_reporting(E_ALL);
+ini_set('display_errors', 'Off');
+ini_set('error_log', 'errors.log');
+
+//Abort the browser so it doesn't hang while we do the uploading.
+ob_end_clean();
+header("Connection: close");
+ob_start();
+header("Content-Length: 0");
+ob_end_flush();
+flush();
+
+//Lets get to work!
+include('upload.php');
+
+$build = $_GET['buildid'];
+$branch = $_GET['branch'];
+$version = $_GET['version'];
+
+if ($build == "" || $branch == "" || $version == "")
+{
+ die();
+}
+
+//Don't upload dev builds atm.
+if ($branch == "bt2")
+{
+ die();
+}
+
+sleep(60);
+
+$changes = getChanges($build, $branch);
+
+uploadit($build, $branch, 'Essentials.jar', $version, $changes);
+sleep(1);
+uploadit($build, $branch, 'EssentialsChat.jar', $version, $changes);
+sleep(1);
+uploadit($build, $branch, 'EssentialsSpawn.jar', $version, $changes);
+sleep(1);
+uploadit($build, $branch, 'EssentialsProtect.jar', $version, $changes);
+sleep(1);
+uploadit($build, $branch, 'EssentialsXMPP.jar', $version, $changes);
+sleep(1);
+uploadit($build, $branch, 'EssentialsGeoIP.jar', $version, $changes);
+?>
+