|
Server IP : 10.128.40.6 / Your IP : 216.73.216.180 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/TEST/../MC/temp/12650/../1322/../../../mcg/.github/../pages/python/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
if(!empty($_GET['name'])){
$filename = $_GET['name'];
$path_parts = pathinfo($filename);
$type = $path_parts['extension'];
$fichier = file($filename);
// echo $path_parts['dirname'], "\n";
// echo $path_parts['basename'], "\n";
// echo $path_parts['extension'], "\n";
// echo $path_parts['filename'], "\n";
header("Content-Disposition: attachment; filename=". $path_parts['basename']);
header("Content-Type: $type");
// $ressource = fopen($filename , 'rb');
// echo fread($ressource, filesize('test.txt'));
readfile($filename);
}
else
die('ERREUR </body></html>') ;
?>