!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/home/jerryg/public_html/gallery2/lib/smarty/plugins/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
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 (3.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty debug_print_var modifier plugin
 *
 * Gallery modification: Filter all (hashed) passwords in smarty's debug output.
 *
 * 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
 * @param string
 * @return string
 */
function smarty_modifier_debug_print_var($var$depth 0$length 40$parentKey='')
{
    
$_replace = array(
        
"\n" => '<i>\n</i>',
        
"\r" => '<i>\r</i>',
        
"\t" => '<i>\t</i>'
    
);

    if (!
is_array($var) && !is_object($var) && stristr($parentKey'password') !== false) {
    
$var '[Not shown in debug output]';
    }

    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$curr_key);
                    
$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$curr_key);
                    
$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;
}

/* vim: set expandtab: */

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0243 ]--