⚝
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
/
Imap
/
View File Name :
PermanentFlags.php
* @category Horde * @copyright 2011-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Imap_PermanentFlags implements IteratorAggregate { /* IMAP flag indicating flags can be created in mailbox. */ const CREATE = "\\*"; /** * Can new flags NOT be created? * * @var boolean */ protected $_nocreate = false; /** * List of unsettable flags. * * @var array */ protected $_noset = array(); /** * List of settable flags. * * @var array */ protected $_set = array(); /** * Constructor. * * @param array $permflags List of permanent flags in mailbox. * @param array $flags List of flags in mailbox. */ public function __construct(array $permflags = array(), array $flags = array()) { $this->_nocreate = !in_array(self::CREATE, $permflags); $this->_noset = array_diff($permflags, $flags, array(self::CREATE)); $this->_set = array_intersect($permflags, $flags); } /** * Determines if the given flag is allowed to be changed permanently. * * @param string $flag The flag to query. * * @return boolean True if flag can be set permanently. */ public function allowed($flag) { $flag = strtolower($flag); return (!in_array($flag, $this->_noset) && (!$this->_nocreate || in_array($flag, $this->_set))); } /* IteratorAggregate method. */ public function getIterator() { return new ArrayIterator($this->_set); } }