Update fetchCard.php

This commit is contained in:
Mattia Mascarello 2022-08-26 04:40:35 +02:00 committed by GitHub
parent 980a6287f9
commit 6a005fd277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,8 @@ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
if($_GET["pass"]!="737373737361113273") exit;
$file = 'gdImg/archive/'.$_GET["id"].'.fi.jpeg';
$file = 'gdImg/archive/'.preg_replace("/[^A-Za-z0-9 ]/", '', $_GET["id"]).'.fi.jpeg';
$type = 'image/jpeg'; header('Content-Type:'.$type); header('Content-Length: ' . filesize($file));
readfile($file);
unlink($file);
unlink('gdImg/archive/'.$_GET["id"].'.pp.jpeg');
unlink('gdImg/archive/'.$_GET["id"].'.pp.jpeg');