Update download.php

pull/8/head
SuperDev 4 years ago committed by GitHub
parent 688fb64b6a
commit e2f7de6984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,10 +32,11 @@ $maxsize = max_size;
$file = $_GET['file'];
$fileURL = base64_decode($file);
$filesize = filesize($fileURL);
$baseurl = file_url_destination;
// Check if file exists
if(!file_exists($fileURL){
header("Location: " . file_url_destination);
header('Location: ' . $baseurl);
}
$core = new Core();

Loading…
Cancel
Save