diff --git a/G1BILLETS.sh b/G1BILLETS.sh index 9b44775..cd41587 100755 --- a/G1BILLETS.sh +++ b/G1BILLETS.sh @@ -44,7 +44,7 @@ montage /tmp/g1billet/${UNIQID}/*.jpg -tile 2x3 -geometry 964x459 /tmp/g1billet/ # # CLEANING TEMP FILES -# rm -Rf /tmp/g1billet/${UNIQID} +rm -Rf /tmp/g1billet/${UNIQID} # ALLOWS ANY USER TO DELETE chmod 777 /tmp/g1billet/${UNIQID}.pdf diff --git a/index.php b/index.php index e314c35..9464dd7 100644 --- a/index.php +++ b/index.php @@ -14,7 +14,7 @@ if (file_exists($attachment_location)) { header("Content-Length:".filesize($attachment_location)); header("Content-Disposition: attachment; filename=".$timestamp.".pdf"); readfile($attachment_location); -// unlink("/tmp/g1billet/".$timestamp.".pdf"); + unlink("/tmp/g1billet/".$timestamp.".pdf"); die(); } else { die("Error: File not found.");