!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/internals/   drwxr-xr-x
Free 318.29 GB of 458.09 GB (69.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     core.assemble_plugin_filepath.php (1.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * assemble filepath of requested plugin
 *
 * @param string $type
 * @param string $name
 * @return string|false
 */
function smarty_core_assemble_plugin_filepath($params, &$smarty)
{
    static 
$_filepaths_cache = array();

    
$_plugin_filename $params['type'] . '.' $params['name'] . '.php';
    if (isset(
$_filepaths_cache[$_plugin_filename])) {
        return 
$_filepaths_cache[$_plugin_filename];
    }
    
$_return false;

    foreach ((array)
$smarty->plugins_dir as $_plugin_dir) {

        
$_plugin_filepath $_plugin_dir DIRECTORY_SEPARATOR $_plugin_filename;

        
// see if path is relative
        
if (!preg_match("/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/"$_plugin_dir)) {
            
$_relative_paths[] = $_plugin_dir;
            
// relative path, see if it is in the SMARTY_DIR
            
if (@is_readable(SMARTY_DIR $_plugin_filepath)) {
                
$_return SMARTY_DIR $_plugin_filepath;
                break;
            }
        }
        
// try relative to cwd (or absolute)
        
if (@is_readable($_plugin_filepath)) {
            
$_return $_plugin_filepath;
            break;
        }
    }

    if(
$_return === false) {
        
// still not found, try PHP include_path
        
if(isset($_relative_paths)) {
            foreach ((array)
$_relative_paths as $_plugin_dir) {

                
$_plugin_filepath $_plugin_dir DIRECTORY_SEPARATOR $_plugin_filename;

                
$_params = array('file_path' => $_plugin_filepath);
                require_once(
SMARTY_CORE_DIR 'core.get_include_path.php');
                if(
smarty_core_get_include_path($_params$smarty)) {
                    
$_return $_params['new_file_path'];
                    break;
                }
            }
        }
    }
    
$_filepaths_cache[$_plugin_filename] = $_return;
    return 
$_return;
}

/* 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.0299 ]--