From: Banana Date: Sun, 22 Dec 2019 15:12:57 +0000 (+0100) Subject: code docu cleanup X-Git-Tag: v0.2-beta~3 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=61a3bb790dcb656a67518c28b61b155a455c85cc;p=selfpaste.git code docu cleanup --- 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();