⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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-horde
/
imp
/
lib
/
Quota
/
Edit File: Hook.php
<?php /** * Copyright 2002-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2002-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ /** * Implementation of IMP_Quota API for a generic hook function. This * requires the quota hook to be set in config/hooks.php. * * You must configure this driver in imp/config/backends.php. The driver * supports the following parameters: * - params: (array) Parameters to pass to the quota function. * * @author Michael Redinger <Michael.Redinger@uibk.ac.at> * @category Horde * @copyright 2002-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Quota_Hook extends IMP_Quota { /** */ public function getQuota($mailbox = null) { try { $quota = $GLOBALS['injector']->getInstance('Horde_Core_Hooks')->callHook( 'quota', 'imp', array($this->_params) ); } catch (Horde_Exception_HookNotSet $e) { throw new IMP_Exception($e->getMessage()); } if (count($quota) != 2) { Horde::log('Incorrect number of return values from quota hook.', 'ERR'); throw new IMP_Exception(_("Unable to retrieve quota")); } return array( 'limit' => $quota[1], 'usage' => $quota[0] ); } }
Simpan