From 61a3bb790dcb656a67518c28b61b155a455c85cc Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 22 Dec 2019 16:12:57 +0100 Subject: [PATCH] code docu cleanup --- webroot/lib/mancubus.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webroot/lib/mancubus.class.php b/webroot/lib/mancubus.class.php index 7596654..c14e6e7 100644 --- a/webroot/lib/mancubus.class.php +++ b/webroot/lib/mancubus.class.php @@ -107,6 +107,11 @@ class Mancubus { } } + /** + * After setting importing stuff process the upload + * return status and message + * @return array + */ public function process() { $ret = array( 'message' => '', @@ -281,6 +286,9 @@ class Mancubus { ); } + /** + * clean up the flood tmp files. Everything older then 30 sec will be deleted. + */ private function _cleanupFloodFiles() { $iterator = new DirectoryIterator(SELFPASTE_UPLOAD_DIR); $now = time(); -- 2.39.5