From 2b6e2311c0c027ee650cd2f9fa22ace67c4e9aa0 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 Mar 2023 12:41:28 +0000 Subject: [PATCH] =?UTF-8?q?Cleanup=20Script=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cleanup.php | 27 +++++++++++++++++++++++++++ config.dist.php | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 cleanup.php diff --git a/cleanup.php b/cleanup.php new file mode 100644 index 0000000..61e1fd7 --- /dev/null +++ b/cleanup.php @@ -0,0 +1,27 @@ += $lifetime) { + unlink($abspath . '/' . $datadir . '/' . $image); + } +} + +?> diff --git a/config.dist.php b/config.dist.php index ebd9429..d690a29 100644 --- a/config.dist.php +++ b/config.dist.php @@ -12,4 +12,7 @@ $datadir = "i"; // Length of the generated file names $length = 8; +// Image lifetime in seconds +$lifetime = 3600; + ?>