⚝
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
/
Script
/
Sieve
/
Test
/
View File Name :
Size.php
* @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ /** * The Ingo_Script_Sieve_Test_Size class represents a message size test. * * @author Mike Cochrane
* @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ class Ingo_Script_Sieve_Test_Size extends Ingo_Script_Sieve_Test { /** * Constructor. * * @param array $vars Any required parameters. */ public function __construct($vars = array()) { $this->_vars['comparison'] = isset($vars['comparison']) ? $vars['comparison'] : ''; $this->_vars['size'] = isset($vars['size']) ? $vars['size'] : ''; } /** * Returns a script snippet representing this rule and any sub-rules. * * @return string A Sieve script snippet. */ public function generate() { return 'size ' . $this->_vars['comparison'] . ' ' . $this->_vars['size']; } /** * Checks if the rule parameters are valid. * * @return boolean|string True if this rule is valid, an error message * otherwise. */ public function check() { if (!(isset($this->_vars['comparison']) && isset($this->_vars['size']))) { return false; } return true; } }