Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (15 sloc) 417 Bytes
<?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.