mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 02:33:08 +00:00
Made a silly little upload script, for uploading things to dev bukkit.
This commit is contained in:
parent
d732821e06
commit
e7b790861f
6 changed files with 1901 additions and 0 deletions
52
WebPush/index.php
Normal file
52
WebPush/index.php
Normal file
|
@ -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);
|
||||
?>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue