One Hat Cyber Team
Your IP :
216.73.216.14
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
nosc
/
public_html
/
admin
/
lib
/
Swift
/
Log
/
View File Name :
Base.php
<?php /** * Swift Mailer Logging Layer * Please read the LICENSE file * @copyright Chris Corbyn <chris@w3style.co.uk> * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Log * @license GNU Lesser General Public License */ require_once dirname(__FILE__) . "/../ClassLoader.php"; Swift_ClassLoader::load("Swift_Log"); /** * The Base Logger class * @package Swift_Log * @author Chris Corbyn <chris@w3style.co.uk> */ abstract class Swift_Log_Base implements Swift_Log { /** * A command type entry */ const COMMAND = ">>"; /** * A response type entry */ const RESPONSE = "<<"; /** * An error type entry */ const ERROR = "!!"; /** * A standard entry */ const NORMAL = "++"; /** * Failed recipients * @var array */ protected $failedRecipients = array(); /** * If the logger is running or not * @var boolean */ protected $active = false; /** * The maximum number of log entries * @var int */ protected $maxSize = 50; /** * Enable logging */ public function enable() { $this->active = true; $this->add("Enabling logging", self::NORMAL); } /** * Disable logging */ public function disable() { $this->add("Disabling logging", self::NORMAL); $this->active = false; } /** * Check if logging is enabled */ public function isEnabled() { return $this->active; } /** * Add a failed recipient to the list * @param string The address of the recipient */ public function addFailedRecipient($address) { $this->failedRecipients[$address] = null; } /** * Get the list of failed recipients * @return array */ public function getFailedRecipients() { return array_keys($this->failedRecipients); } /** * Set the maximum size of this log (zero is no limit) * @param int The maximum entries */ public function setMaxSize($size) { $this->maxSize = (int) $size; } /** * Get the current maximum allowed log size * @return int */ public function getMaxSize() { return $this->maxSize; } }