!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.93 GB of 200.55 GB (58.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     modifiercompiler.escape.php (3.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 *
 * @package Smarty
 * @subpackage PluginsModifierCompiler
 */

/**
 * @ignore
 */
require_once( SMARTY_PLUGINS_DIR .'shared.literal_compiler_param.php' );

/**
 * Smarty escape modifier plugin
 *
 * Type:     modifier<br>
 * Name:     escape<br>
 * Purpose:  escape string for output
 *
 * @link http://www.smarty.net/docsv2/en/language.modifier.escape count_characters (Smarty online manual)
 * @author Rodney Rehm
 * @param array $params parameters
 * @return string with compiled code
 */
function smarty_modifiercompiler_escape($params$compiler)
{
    try {
        
$esc_type smarty_literal_compiler_param($params1'html');
        
$char_set smarty_literal_compiler_param($params2SMARTY_RESOURCE_CHAR_SET);
        
$double_encode smarty_literal_compiler_param($params3true);

        if (!
$char_set) {
            
$char_set SMARTY_RESOURCE_CHAR_SET;
        }

        switch (
$esc_type) {
            case 
'html':
                return 
'htmlspecialchars('
                    
$params[0] .', ENT_QUOTES, '
                    
var_export($char_settrue) . ', '
                    
var_export($double_encodetrue) . ')';

            case 
'htmlall':
                if (
SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) {
                    return 
'mb_convert_encoding(htmlspecialchars('
                        
$params[0] .', ENT_QUOTES, '
                        
var_export($char_settrue) . ', '
                        
var_export($double_encodetrue)
                        . 
'), "HTML-ENTITIES", '
                        
var_export($char_settrue) . ')';
                }

                
// no MBString fallback
                
return 'htmlentities('
                    
$params[0] .', ENT_QUOTES, '
                    
var_export($char_settrue) . ', '
                    
var_export($double_encodetrue) . ')';

            case 
'url':
                return 
'rawurlencode(' $params[0] . ')';

            case 
'urlpathinfo':
                return 
'str_replace("%2F", "/", rawurlencode(' $params[0] . '))';

            case 
'quotes':
                
// escape unescaped single quotes
                
return 'preg_replace("%(?<!\\\\\\\\)\'%", "\\\'",' $params[0] . ')';

            case 
'javascript':
                
// escape quotes and backslashes, newlines, etc.
                
return 'strtr(' $params[0] . ', array("\\\\" => "\\\\\\\\", "\'" => "\\\\\'", "\"" => "\\\\\"", "\\r" => "\\\\r", "\\n" => "\\\n", "</" => "<\/" ))';

        }
    } catch(
SmartyException $e) {
        
// pass through to regular plugin fallback
    
}

    
// could not optimize |escape call, so fallback to regular plugin
    
if ($compiler->tag_nocache $compiler->nocache) {
        
$compiler->template->required_plugins['nocache']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR .'modifier.escape.php';
        
$compiler->template->required_plugins['nocache']['escape']['modifier']['function'] = 'smarty_modifier_escape';
    } else {
        
$compiler->template->required_plugins['compiled']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR .'modifier.escape.php';
        
$compiler->template->required_plugins['compiled']['escape']['modifier']['function'] = 'smarty_modifier_escape';
    }
    return 
'smarty_modifier_escape(' join', '$params ) . ')';
}

?>

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