From 03f4fd4928d973cdaabe4b9b5cb676eac2f3a34c Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 25 Jan 2021 01:30:34 +0100 Subject: [PATCH] clean /tmp files --- G1BILLETS.sh | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.");