1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<?php
session_start();
if(!isset($_SESSION['Pseudo']))
{
include("RetourIdentification.html");
exit();
}
else
{
if(isset($_GET['Nom']))
{
header("Content-type: application/force-download");
header("Content-Length: ".filesize($_GET['Nom']));
header("Content-Disposition: attachment; filename=".basename($_GET['Nom']));
header('Pragma: no-cache');
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
header('Expires: 0');
readfile($_GET['Nom']);
}
}
?> |
Partager