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


Viewing file:     modifier.debug_print_var.php (2.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Smarty plugin

* @package Smarty
* @subpackage Debug
*/

/**
* Smarty debug_print_var modifier plugin

* Type:     modifier<br>
* Name:     debug_print_var<br>
* Purpose:  formats variable contents for display in the console

* @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php debug_print_var (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com> 
* @param array $ |object
* @param integer $ 
* @param integer $ 
* @return string 
*/
function smarty_modifier_debug_print_var ($var$depth 0$length 40)
{
    
$_replace = array("\n" => '<i>\n</i>',
        
"\r" => '<i>\r</i>',
        
"\t" => '<i>\t</i>'
        
);

    switch (
gettype($var)) {
        case 
'array' :
            
$results '<b>Array (' count($var) . ')</b>';
            foreach (
$var as $curr_key => $curr_val) {
                
$results .= '<br>' str_repeat('&nbsp;'$depth 2)
                 . 
'<b>' strtr($curr_key$_replace) . '</b> =&gt; '
                 
smarty_modifier_debug_print_var($curr_val, ++$depth$length);
                
$depth--;
            } 
            break;
        case 
'object' :
            
$object_vars get_object_vars($var);
            
$results '<b>' get_class($var) . ' Object (' count($object_vars) . ')</b>';
            foreach (
$object_vars as $curr_key => $curr_val) {
                
$results .= '<br>' str_repeat('&nbsp;'$depth 2)
                 . 
'<b> -&gt;' strtr($curr_key$_replace) . '</b> = '
                 
smarty_modifier_debug_print_var($curr_val, ++$depth$length);
                
$depth--;
            } 
            break;
        case 
'boolean' :
        case 
'NULL' :
        case 
'resource' :
            if (
true === $var) {
                
$results 'true';
            } elseif (
false === $var) {
                
$results 'false';
            } elseif (
null === $var) {
                
$results 'null';
            } else {
                
$results htmlspecialchars((string) $var);
            } 
            
$results '<i>' $results '</i>';
            break;
        case 
'integer' :
        case 
'float' :
            
$results htmlspecialchars((string) $var);
            break;
        case 
'string' :
            
$results strtr($var$_replace);
            if (
strlen($var) > $length) {
                
$results substr($var0$length 3) . '...';
            } 
            
$results htmlspecialchars('"' $results '"');
            break;
        case 
'unknown type' :
        default :
            
$results strtr((string) $var$_replace);
            if (
strlen($results) > $length) {
                
$results substr($results0$length 3) . '...';
            } 
            
$results htmlspecialchars($results);
    } 

    return 
$results;


?>

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