Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
tidy /
Delete
Unzip
Name
Size
Permission
Date
Action
Balancer.php
102.94
KB
-rw-r--r--
2016-11-28 20:20
Html5Depurate.php
1.34
KB
-rw-r--r--
2016-11-28 20:20
Html5Internal.php
372
B
-rw-r--r--
2016-11-28 20:20
RaggettBase.php
1.39
KB
-rw-r--r--
2016-11-28 20:20
RaggettExternal.php
2.17
KB
-rw-r--r--
2016-11-28 20:20
RaggettInternalHHVM.php
819
B
-rw-r--r--
2016-11-28 20:20
RaggettInternalPHP.php
1.31
KB
-rw-r--r--
2016-11-28 20:20
RaggettWrapper.php
2.93
KB
-rw-r--r--
2016-11-28 20:20
TidyDriverBase.php
821
B
-rw-r--r--
2016-11-28 20:20
tidy.conf
679
B
-rw-r--r--
2016-11-28 20:20
Save
Rename
<?php namespace MediaWiki\Tidy; use MWHttpRequest; use Exception; class Html5Depurate extends TidyDriverBase { public function __construct( array $config ) { parent::__construct( $config + [ 'url' => 'http://localhost:4339/document', 'timeout' => 10, 'connectTimeout' => 0.5, ] ); } public function tidy( $text ) { $wrappedtext = '<!DOCTYPE html><html>' . '<body>' . $text . '</body></html>'; $req = MWHttpRequest::factory( $this->config['url'], [ 'method' => 'POST', 'timeout' => $this->config['timeout'], 'connectTimeout' => $this->config['connectTimeout'], 'postData' => [ 'text' => $wrappedtext ] ] ); $status = $req->execute(); if ( !$status->isOK() ) { throw new Exception( "Error contacting depurate service: " . $status->getWikiText( false, false, 'en' ) ); } elseif ( $req->getStatus() !== 200 ) { throw new Exception( "Depurate returned error: " . $status->getWikiText( false, false, 'en' ) ); } $result = $req->getContent(); $startBody = strpos( $result, "<body>" ); $endBody = strrpos( $result, "</body>" ); if ( $startBody !== false && $endBody !== false && $endBody > $startBody ) { $startBody += strlen( "<body>" ); return substr( $result, $startBody, $endBody - $startBody ); } else { return $text . "\n<!-- Html5Depurate returned an invalid result -->"; } } }