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

[email protected]: ~ $
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_finder
 *
 * @copyright   (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Finder\Administrator\Indexer;

use Joomla\String\StringHelper;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Token class for the Finder indexer package.
 *
 * @since  2.5
 */
class Token
{
    /**
     * This is the term that will be referenced in the terms table and the
     * mapping tables.
     *
     * @var    string
     * @since  2.5
     */
    public $term;

    /**
     * The stem is used to match the root term and produce more potential
     * matches when searching the index.
     *
     * @var    string
     * @since  2.5
     */
    public $stem;

    /**
     * If the token is numeric, it is likely to be short and uncommon so the
     * weight is adjusted to compensate for that situation.
     *
     * @var    boolean
     * @since  2.5
     */
    public $numeric;

    /**
     * If the token is a common term, the weight is adjusted to compensate for
     * the higher frequency of the term in relation to other terms.
     *
     * @var    boolean
     * @since  2.5
     */
    public $common;

    /**
     * Flag for phrase tokens.
     *
     * @var    boolean
     * @since  2.5
     */
    public $phrase;

    /**
     * The length is used to calculate the weight of the token.
     *
     * @var    integer
     * @since  2.5
     */
    public $length;

    /**
     * The weight is calculated based on token size and whether the token is
     * considered a common term.
     *
     * @var    integer
     * @since  2.5
     */
    public $weight;

    /**
     * The simple language identifier for the token.
     *
     * @var    string
     * @since  2.5
     */
    public $language;

    /**
     * The container for matches.
     *
     * @var    array
     * @since  3.8.12
     */
    public $matches = [];

    /**
     * Is derived token (from individual words)
     *
     * @var    boolean
     * @since  3.8.12
     */
    public $derived;

    /**
     * The suggested term
     *
     * @var    string
     * @since  3.8.12
     */
    public $suggestion;

    /**
     * The token required flag
     *
     * @var    boolean
     * @since  4.3.0
     */
    public $required;

    /**
     * Method to construct the token object.
     *
     * @param   mixed   $term    The term as a string for words or an array for phrases.
     * @param   string  $lang    The simple language identifier.
     * @param   string  $spacer  The space separator for phrases. [optional]
     *
     * @since   2.5
     */
    public function __construct($term, $lang, $spacer = ' ')
    {
        if (!$lang) {
            $this->language = '*';
        } else {
            $this->language = $lang;
        }

        // Tokens can be a single word or an array of words representing a phrase.
        if (\is_array($term)) {
            // Populate the token instance.
            $langs         = array_fill(0, \count($term), $lang);
            $this->term    = implode($spacer, $term);
            $this->stem    = implode($spacer, array_map([Helper::class, 'stem'], $term, $langs));
            $this->numeric = false;
            $this->common  = false;
            $this->phrase  = true;
            $this->length  = StringHelper::strlen($this->term);

            /*
             * Calculate the weight of the token.
             *
             * 1. Length of the token up to 30 and divide by 30, add 1.
             * 2. Round weight to 4 decimal points.
             */
            $this->weight = (min($this->length, 30) / 30) + 1;
            $this->weight = round($this->weight, 4);
        } else {
            // Populate the token instance.
            $this->term    = $term;
            $this->stem    = Helper::stem($this->term, $lang);
            $this->numeric = (is_numeric($this->term) || (bool) preg_match('#^[0-9,.\-\+]+$#', $this->term));
            $this->common  = $this->numeric ? false : Helper::isCommon($this->term, $lang);
            $this->phrase  = false;
            $this->length  = StringHelper::strlen($this->term);

            /*
             * Calculate the weight of the token.
             *
             * 1. Length of the token up to 15 and divide by 15.
             * 2. If common term, divide weight by 8.
             * 3. If numeric, multiply weight by 1.5.
             * 4. Round weight to 4 decimal points.
             */
            $this->weight = min($this->length, 15) / 15;
            $this->weight = $this->common === true ? $this->weight / 8 : $this->weight;
            $this->weight = $this->numeric === true ? $this->weight * 1.5 : $this->weight;
            $this->weight = round($this->weight, 4);
        }
    }
}

Filemanager

Name Type Size Permission Actions
Language Folder 0775
Parser Folder 0775
Adapter.php File 26.45 KB 0664
DebugAdapter.php File 26.86 KB 0664
DebugIndexer.php File 910 B 0664
Helper.php File 15.85 KB 0664
Indexer.php File 37.12 KB 0664
Language.php File 5.09 KB 0664
Parser.php File 3.48 KB 0664
Query.php File 44.74 KB 0664
Result.php File 14.33 KB 0664
Taxonomy.php File 16.29 KB 0664
Token.php File 4.84 KB 0664
Filemanager