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.133.149.244
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
facade /
flare-client-php /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Concerns
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Context
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Contracts
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Enums
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Glows
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Http
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Middleware
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Solutions
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Stacktrace
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Time
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Truncation
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Api.php
1.65
KB
-rw-r--r--
2020-11-17 16:24
Flare.php
6.35
KB
-rw-r--r--
2020-11-17 16:24
Frame.php
1.25
KB
-rw-r--r--
2020-11-17 16:24
Report.php
6.62
KB
-rw-r--r--
2020-11-17 16:24
View.php
1.09
KB
-rw-r--r--
2020-11-17 16:24
helpers.php
514
B
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php namespace Facade\FlareClient; use Facade\FlareClient\Http\Client; use Facade\FlareClient\Truncation\ReportTrimmer; class Api { /** @var \Facade\FlareClient\Http\Client */ private $client; /** @var bool */ public static $sendInBatches = true; /** @var array */ private $queue = []; public function __construct(Client $client) { $this->client = $client; register_shutdown_function([$this, 'sendQueuedReports']); } public static function sendReportsInBatches(bool $batchSending = true) { static::$sendInBatches = $batchSending; } public function report(Report $report) { try { if (static::$sendInBatches) { $this->addReportToQueue($report); } else { $this->sendReportToApi($report); } } catch (\Exception $e) { // } } public function sendTestReport(Report $report) { $this->sendReportToApi($report); } private function addReportToQueue(Report $report) { $this->queue[] = $report; } public function sendQueuedReports() { try { foreach ($this->queue as $report) { $this->sendReportToApi($report); } } catch (\Exception $e) { // } finally { $this->queue = []; } } private function sendReportToApi(Report $report) { $this->client->post('reports', $this->truncateReport($report->toArray())); } private function truncateReport(array $payload): array { return (new ReportTrimmer())->trim($payload); } }