⚝
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
/
Maillog
/
Storage
/
Edit File: Composite.php
<?php /** * Copyright 2014-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 2014-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ /** * Compose storage driver for the IMP_Maillog class. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2014-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Maillog_Storage_Composite extends IMP_Maillog_Storage_Base { /** * List of drivers. * * @var array */ protected $_drivers; /** * Constructor. * * @param array $drivers List of drivers. */ public function __construct(array $drivers) { $this->_drivers = $drivers; } /** */ public function saveLog( IMP_Maillog_Message $msg, IMP_Maillog_Log_Base $log ) { foreach ($this->_drivers as $val) { if ($val->saveLog($msg, $log)) { return true; } } return false; } /** */ public function getLog(IMP_Maillog_Message $msg, array $filter = array()) { $out = array(); foreach ($this->_drivers as $val) { $out = array_merge($out, $val->getLog($msg, $filter)); } return $out; } /** */ public function deleteLogs($msgs) { foreach ($this->_drivers as $val) { $val->deleteLogs($msgs); } } /** */ public function getChanges($ts) { $out = array(); foreach ($this->_drivers as $val) { $out = array_merge($out, $val->getChanges($ts)); } return $out; } }
Simpan