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 /
parser /
Delete
Unzip
Name
Size
Permission
Date
Action
BlockLevelPass.php
14.38
KB
-rw-r--r--
2016-11-28 20:20
CacheTime.php
5.03
KB
-rw-r--r--
2016-11-28 20:20
CoreLinkFunctions.php
2.36
KB
-rw-r--r--
2011-04-21 02:07
CoreParserFunctions.php
40.46
KB
-rw-r--r--
2016-11-28 20:20
CoreTagHooks.php
4.87
KB
-rw-r--r--
2016-11-28 20:20
DateFormatter.php
10.5
KB
-rw-r--r--
2016-11-28 20:20
LinkHolderArray.php
17.82
KB
-rw-r--r--
2016-11-28 20:20
MWTidy.php
4.57
KB
-rw-r--r--
2016-11-28 20:20
Parser.php
189.5
KB
-rw-r--r--
2016-11-28 20:20
ParserCache.php
9.62
KB
-rw-r--r--
2016-11-28 20:20
ParserDiffTest.php
3.22
KB
-rw-r--r--
2016-11-28 20:20
ParserOptions.php
23.14
KB
-rw-r--r--
2016-11-28 20:20
ParserOutput.php
28.74
KB
-rw-r--r--
2016-11-28 20:20
Parser_DiffTest.php
2.92
KB
-rw-r--r--
2011-02-09 00:18
Parser_LinkHooks.php
9.98
KB
-rw-r--r--
2011-05-27 08:25
Preprocessor.php
10.56
KB
-rw-r--r--
2016-11-28 20:20
Preprocessor_DOM.php
53.36
KB
-rw-r--r--
2016-11-28 20:20
Preprocessor_Hash.php
57.08
KB
-rw-r--r--
2016-11-28 20:20
Preprocessor_HipHop.hphp
53.06
KB
-rw-r--r--
2011-06-02 04:44
StripState.php
6.25
KB
-rw-r--r--
2016-11-28 20:20
Tidy.php
7.03
KB
-rw-r--r--
2011-07-19 23:29
Save
Rename
<?php /** * HTML validation and correction * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file * @ingroup Parser */ /** * Class to interact with HTML tidy * * Either the external tidy program or the in-process tidy extension * will be used depending on availability. Override the default * $wgTidyInternal setting to disable the internal if it's not working. * * @ingroup Parser */ class MWTidy { private static $instance; /** * Interface with html tidy. * If tidy isn't able to correct the markup, the original will be * returned in all its glory with a warning comment appended. * * @param string $text HTML input fragment. This should not contain a * <body> or <html> tag. * @return string Corrected HTML output * @throws MWException */ public static function tidy( $text ) { $driver = self::singleton(); if ( !$driver ) { throw new MWException( __METHOD__ . ': tidy is disabled, caller should have checked MWTidy::isEnabled()' ); } return $driver->tidy( $text ); } /** * Check HTML for errors, used if $wgValidateAllHtml = true. * * @param string $text * @param string &$errorStr Return the error string * @return bool Whether the HTML is valid * @throws MWException */ public static function checkErrors( $text, &$errorStr = null ) { $driver = self::singleton(); if ( !$driver ) { throw new MWException( __METHOD__ . ': tidy is disabled, caller should have checked MWTidy::isEnabled()' ); } if ( $driver->supportsValidate() ) { return $driver->validate( $text, $errorStr ); } else { throw new MWException( __METHOD__ . ": error text return from HHVM tidy is not supported" ); } } /** * @return bool */ public static function isEnabled() { return self::singleton() !== false; } /** * @return bool|\MediaWiki\Tidy\TidyDriverBase */ protected static function singleton() { global $wgUseTidy, $wgTidyInternal, $wgTidyConf, $wgDebugTidy, $wgTidyConfig, $wgTidyBin, $wgTidyOpts; if ( self::$instance === null ) { if ( $wgTidyConfig !== null ) { $config = $wgTidyConfig; } elseif ( $wgUseTidy ) { // b/c configuration $config = [ 'tidyConfigFile' => $wgTidyConf, 'debugComment' => $wgDebugTidy, 'tidyBin' => $wgTidyBin, 'tidyCommandLine' => $wgTidyOpts ]; if ( $wgTidyInternal ) { if ( wfIsHHVM() ) { $config['driver'] = 'RaggettInternalHHVM'; } else { $config['driver'] = 'RaggettInternalPHP'; } } else { $config['driver'] = 'RaggettExternal'; } } else { return false; } self::$instance = self::factory( $config ); } return self::$instance; } /** * Create a new Tidy driver object from configuration. * @see $wgTidyConfig * @param array $config * @return bool|\MediaWiki\Tidy\TidyDriverBase * @throws MWException */ public static function factory( array $config ) { switch ( $config['driver'] ) { case 'RaggettInternalHHVM': $instance = new MediaWiki\Tidy\RaggettInternalHHVM( $config ); break; case 'RaggettInternalPHP': $instance = new MediaWiki\Tidy\RaggettInternalPHP( $config ); break; case 'RaggettExternal': $instance = new MediaWiki\Tidy\RaggettExternal( $config ); break; case 'Html5Depurate': $instance = new MediaWiki\Tidy\Html5Depurate( $config ); break; case 'Html5Internal': $instance = new MediaWiki\Tidy\Html5Internal( $config ); break; case 'disabled': return false; default: throw new MWException( "Invalid tidy driver: \"{$config['driver']}\"" ); } return $instance; } /** * Set the driver to be used. This is for testing. * @param MediaWiki\Tidy\TidyDriverBase|false|null $instance */ public static function setInstance( $instance ) { self::$instance = $instance; } /** * Destroy the current singleton instance */ public static function destroySingleton() { self::$instance = null; } }