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\LineFormatter; /** * Handler sending logs to browser's javascript console with no browser extension required * * @author Olivier Poitrey <rs@dailymotion.com> */ class BrowserConsoleHandler extends AbstractProcessingHandler { protected static $initialized = false; protected static $records = array(); /** * {@inheritDoc} * * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format. * * Example of formatted string: * * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white} */ protected function getDefaultFormatter() { return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); } /** * {@inheritDoc} */ protected function write(array $record) { // Accumulate records static::$records[] = $record; // Register shutdown handler if not already done if (!static::$initialized) { static::$initialized = true; $this->registerShutdownFunction(); } } /** * Convert records to javascript console commands and send it to the browser. * This method is automatically called on PHP shutdown if output is HTML or Javascript. */ public static function send() { $format = static::getResponseFormat(); if ($format === 'unknown') { return; } if (count(static::$records)) { if ($format === 'html') { static::writeOutput('<script>' . static::generateScript() . '</script>'); } elseif ($format === 'js') { static::writeOutput(static::generateScript()); } static::resetStatic(); } } public function close() { self::resetStatic(); } public function reset() { self::resetStatic(); } /** * Forget all logged records */ public static function resetStatic() { static::$records = array(); } /** * Wrapper for register_shutdown_function to allow overriding */ protected function registerShutdownFunction() { if (PHP_SAPI !== 'cli') { register_shutdown_function(array('Monolog\Handler\BrowserConsoleHandler', 'send')); } } /** * Wrapper for echo to allow overriding * * @param string $str */ protected static function writeOutput($str) { echo $str; } /** * Checks the format of the response * * If Content-Type is set to application/javascript or text/javascript -> js * If Content-Type is set to text/html, or is unset -> html * If Content-Type is anything else -> unknown * * @return string One of 'js', 'html' or 'unknown' */ protected static function getResponseFormat() { // Check content type foreach (headers_list() as $header) { if (stripos($header, 'content-type:') === 0) { // This handler only works with HTML and javascript outputs // text/javascript is obsolete in favour of application/javascript, but still used if (stripos($header, 'application/javascript') !== false || stripos($header, 'text/javascript') !== false) { return 'js'; } if (stripos($header, 'text/html') === false) { return 'unknown'; } break; } } return 'html'; } private static function generateScript() { $script = array(); foreach (static::$records as $record) { $context = static::dump('Context', $record['context']); $extra = static::dump('Extra', $record['extra']); if (empty($context) && empty($extra)) { $script[] = static::call_array('log', static::handleStyles($record['formatted'])); } else { $script = array_merge($script, array(static::call_array('groupCollapsed', static::handleStyles($record['formatted']))), $context, $extra, array(static::call('groupEnd')) ); } } return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);"; } private static function handleStyles($formatted) { $args = array(static::quote('font-weight: normal')); $format = '%c' . $formatted; preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); foreach (array_reverse($matches) as $match) { $args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0])); $args[] = '"font-weight: normal"'; $pos = $match[0][1]; $format = substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . substr($format, $pos + strlen($match[0][0])); } array_unshift($args, static::quote($format)); return $args; } private static function handleCustomStyles($style, $string) { static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey'); static $labels = array(); return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function ($m) use ($string, &$colors, &$labels) { if (trim($m[1]) === 'autolabel') { // Format the string as a label with consistent auto assigned background color if (!isset($labels[$string])) { $labels[$string] = $colors[count($labels) % count($colors)]; } $color = $labels[$string]; return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px"; } return $m[1]; }, $style); } private static function dump($title, array $dict) { $script = array(); $dict = array_filter($dict); if (empty($dict)) { return $script; } $script[] = static::call('log', static::quote('%c%s'), static::quote('font-weight: bold'), static::quote($title)); foreach ($dict as $key => $value) { $value = json_encode($value); if (empty($value)) { $value = static::quote(''); } $script[] = static::call('log', static::quote('%s: %o'), static::quote($key), $value); } return $script; } private static function quote($arg) { return '"' . addcslashes($arg, "\"\n\\") . '"'; } private static function call() { $args = func_get_args(); $method = array_shift($args); return static::call_array($method, $args); } private static function call_array($method, array $args) { return 'c.' . $method . '(' . implode(', ', $args) . ');'; } }