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; + ?>