Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.417 kB
<?php
require('functions.php');
$uploaddir = '/tmp/'.rand().'/';
$uploadfile = $uploaddir.'versions.zip';
mkdir($uploaddir);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
if($zipFilename = getVersionsFromZip($uploadfile, $uploaddir)) {
header("Location: ".$zipFilename);
}else{
echo "All of your Addons are up to date.";
}
} else {
echo "Let's not and say we did.\n";
}
?>
Jump to Line
Something went wrong with that request. Please try again.