Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
monolog /
monolog /
src /
Monolog /
Handler /
Delete
Unzip
Name
Size
Permission
Date
Action
Curl
[ DIR ]
drwxr-xr-x
2018-11-05 09:00
FingersCrossed
[ DIR ]
drwxr-xr-x
2018-11-05 09:00
Slack
[ DIR ]
drwxr-xr-x
2018-11-05 09:00
SyslogUdp
[ DIR ]
drwxr-xr-x
2018-11-05 09:00
AbstractHandler.php
4.28
KB
-rw-r--r--
2018-11-05 09:00
AbstractProcessingHandler.php
1.5
KB
-rw-r--r--
2018-11-05 09:00
AbstractSyslogHandler.php
3.29
KB
-rw-r--r--
2018-11-05 09:00
AmqpHandler.php
3.78
KB
-rw-r--r--
2018-11-05 09:00
BrowserConsoleHandler.php
7.21
KB
-rw-r--r--
2018-11-05 09:00
BufferHandler.php
3.58
KB
-rw-r--r--
2018-11-05 09:00
ChromePHPHandler.php
5.48
KB
-rw-r--r--
2018-11-05 09:00
CouchDBHandler.php
1.91
KB
-rw-r--r--
2018-11-05 09:00
CubeHandler.php
4.52
KB
-rw-r--r--
2018-11-05 09:00
DeduplicationHandler.php
5.35
KB
-rw-r--r--
2018-11-05 09:00
DoctrineCouchDBHandler.php
1000
B
-rw-r--r--
2018-11-05 09:00
DynamoDbHandler.php
2.38
KB
-rw-r--r--
2018-11-05 09:00
ElasticSearchHandler.php
3.33
KB
-rw-r--r--
2018-11-05 09:00
ErrorLogHandler.php
2.31
KB
-rw-r--r--
2018-11-05 09:00
FilterHandler.php
4.32
KB
-rw-r--r--
2018-11-05 09:00
FingersCrossedHandler.php
5.77
KB
-rw-r--r--
2018-11-05 09:00
FirePHPHandler.php
5.33
KB
-rw-r--r--
2018-11-05 09:00
FleepHookHandler.php
3.28
KB
-rw-r--r--
2018-11-05 09:00
FlowdockHandler.php
3.28
KB
-rw-r--r--
2018-11-05 09:00
GelfHandler.php
1.91
KB
-rw-r--r--
2018-11-05 09:00
GroupHandler.php
2.69
KB
-rw-r--r--
2018-11-05 09:00
HandlerInterface.php
2.53
KB
-rw-r--r--
2018-11-05 09:00
HandlerWrapper.php
2.31
KB
-rw-r--r--
2018-11-05 09:00
HipChatHandler.php
10.51
KB
-rw-r--r--
2018-11-05 09:00
IFTTTHandler.php
2.06
KB
-rw-r--r--
2018-11-05 09:00
InsightOpsHandler.php
1.83
KB
-rw-r--r--
2018-11-05 09:00
LogEntriesHandler.php
1.58
KB
-rw-r--r--
2018-11-05 09:00
LogglyHandler.php
2.56
KB
-rw-r--r--
2018-11-05 09:00
MailHandler.php
1.58
KB
-rw-r--r--
2018-11-05 09:00
MandrillHandler.php
2.11
KB
-rw-r--r--
2018-11-05 09:00
MissingExtensionException.php
450
B
-rw-r--r--
2018-11-05 09:00
MongoDBHandler.php
1.57
KB
-rw-r--r--
2018-11-05 09:00
NativeMailerHandler.php
5.08
KB
-rw-r--r--
2018-11-05 09:00
NewRelicHandler.php
6.06
KB
-rw-r--r--
2018-11-05 09:00
NullHandler.php
953
B
-rw-r--r--
2018-11-05 09:00
PHPConsoleHandler.php
9.76
KB
-rw-r--r--
2018-11-05 09:00
PsrHandler.php
1.4
KB
-rw-r--r--
2018-11-05 09:00
PushoverHandler.php
6.47
KB
-rw-r--r--
2018-11-05 09:00
RavenHandler.php
6.96
KB
-rw-r--r--
2018-11-05 09:00
RedisHandler.php
2.82
KB
-rw-r--r--
2018-11-05 09:00
RollbarHandler.php
3.85
KB
-rw-r--r--
2018-11-05 09:00
RotatingFileHandler.php
5.75
KB
-rw-r--r--
2018-11-05 09:00
SamplingHandler.php
2.61
KB
-rw-r--r--
2018-11-05 09:00
SlackHandler.php
6.3
KB
-rw-r--r--
2018-11-05 09:00
SlackWebhookHandler.php
3.73
KB
-rw-r--r--
2018-11-05 09:00
SlackbotHandler.php
1.98
KB
-rw-r--r--
2018-11-05 09:00
SocketHandler.php
9.58
KB
-rw-r--r--
2018-11-05 09:00
StreamHandler.php
5.1
KB
-rw-r--r--
2018-11-05 09:00
SwiftMailerHandler.php
3.36
KB
-rw-r--r--
2018-11-05 09:00
SyslogHandler.php
1.8
KB
-rw-r--r--
2018-11-05 09:00
SyslogUdpHandler.php
2.51
KB
-rw-r--r--
2018-11-05 09:00
TestHandler.php
5.01
KB
-rw-r--r--
2018-11-05 09:00
WhatFailureGroupHandler.php
1.76
KB
-rw-r--r--
2018-11-05 09:00
ZendMonitorHandler.php
2.19
KB
-rw-r--r--
2018-11-05 09:00
Save
Rename
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\Formatter\FormatterInterface; use Monolog\Logger; use Monolog\Handler\Slack\SlackRecord; /** * Sends notifications through Slack Webhooks * * @author Haralan Dobrev <hkdobrev@gmail.com> * @see https://api.slack.com/incoming-webhooks */ class SlackWebhookHandler extends AbstractProcessingHandler { /** * Slack Webhook token * @var string */ private $webhookUrl; /** * Instance of the SlackRecord util class preparing data for Slack API. * @var SlackRecord */ private $slackRecord; /** * @param string $webhookUrl Slack Webhook URL * @param string|null $channel Slack channel (encoded ID or name) * @param string|null $username Name of a bot * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) * @param string|null $iconEmoji The emoji name to use (or null) * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style * @param bool $includeContextAndExtra Whether the attachment should include context and extra data * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] */ public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true, array $excludeFields = array()) { parent::__construct($level, $bubble); $this->webhookUrl = $webhookUrl; $this->slackRecord = new SlackRecord( $channel, $username, $useAttachment, $iconEmoji, $useShortAttachment, $includeContextAndExtra, $excludeFields, $this->formatter ); } public function getSlackRecord() { return $this->slackRecord; } public function getWebhookUrl() { return $this->webhookUrl; } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { $postData = $this->slackRecord->getSlackData($record); $postString = json_encode($postData); $ch = curl_init(); $options = array( CURLOPT_URL => $this->webhookUrl, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array('Content-type: application/json'), CURLOPT_POSTFIELDS => $postString ); if (defined('CURLOPT_SAFE_UPLOAD')) { $options[CURLOPT_SAFE_UPLOAD] = true; } curl_setopt_array($ch, $options); Curl\Util::execute($ch); } public function setFormatter(FormatterInterface $formatter) { parent::setFormatter($formatter); $this->slackRecord->setFormatter($formatter); return $this; } public function getFormatter() { $formatter = parent::getFormatter(); $this->slackRecord->setFormatter($formatter); return $formatter; } }