Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/univers/plugins-dist/medias/genie/ |
<?php /** * Tache de nettoyages du répertoire tmp/upload * * @plugin Medias * @licence GNU/GPL * @package SPIP\Medias\Genie */ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Enlève les fichiers trop vieux du répertoire tmp/upload * * @param int $last * @return int **/ function genie_medias_nettoyer_repertoire_upload_dist($last) { include_spip('inc/invalideur'); purger_repertoire(_DIR_TMP . 'upload', ['mtime' => time() - 180 * 24 * 3600, 'subdir' => true]); return 1; }