diff --git a/epub.php b/epub.php index 00f72ee..6b1866c 100644 --- a/epub.php +++ b/epub.php @@ -114,6 +114,18 @@ date_default_timezone_set('Europe/Paris'); $date = (new DateTime('today'))->format('Ymd'); + if (isset($_POST['emptycache']) && $_POST['emptycache']) + { + $files = glob('temp/*'); + foreach($files as $file) + { + if(is_file($file)) + { + unlink($file); + } + } + } + // Cafeyn if (isset($_POST['cafeyn']) && $_POST['cafeyn']) { @@ -567,6 +579,10 @@

+ + +

+