diff --git a/cron.php b/cron.php new file mode 100644 index 0000000..de55b25 --- /dev/null +++ b/cron.php @@ -0,0 +1,21 @@ + 60 * 60 * 24) { + if (preg_match('/\.jpg$/i', $file)) { + echo "Deleting $file\n"; + unlink($path . $file); + } + } + } +} \ No newline at end of file