Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<?php
if(isset($_GET['file']) && !empty($_GET['file'])){
$file = $_GET['file'];
if(file_exists($file)){
header('Content-Description: File Transfer');
header('Content-Type: application/x-shockwave-flash');
header('Content-Disposition: attachment; filename=' . basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
exit;
}
else{
echo "<h1>Datei " . $file . " nicht gefunden!</h1>";
}
}
else{
echo "<h1>Ungültiger Link!</h1>";
}
?>