-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To avoid having insufficient space on the server, a route for delete all PDFs generated is created. Access to 'project_name' / delete / into your browser to delete everything.
- Loading branch information
1 parent
bfd03c0
commit 0d17ba6
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
if (is_dir(HS_TMP_FOLDER) ) { | ||
$files = glob(HS_TMP_FOLDER.'*'); | ||
foreach($files as $file){ | ||
if(is_file($file)) { | ||
unlink($file); // delete file | ||
} | ||
} | ||
echo "<center>Les fichiers temporaires ont été supprimé avec succès.</center>"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters