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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/login/phpmyadmin/libraries/   drwxr-xr-x
Free 851.79 MB of 27.03 GB (3.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Template.class.php (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* hold PMA\Template class
*
* @package PMA
*/

namespace PMA;

if (!
defined('PHPMYADMIN')) {
    exit;
}

/**
* Class Template
*
* Handle front end templating
*
* @package PMA
*/
class Template
{

    protected
$name = null;

    const
BASE_PATH = 'templates/';

    
/**
     * Template constructor
     *
     * @param string $name Template name
     */
    
protected function __construct($name)
    {
        
$this->name = $name;
    }

    
/**
     * Template getter
     *
     * @param string $name Template name
     *
     * @return Template
     */
    
public static function get($name)
    {
        return new
Template($name);
    }

    
/**
     * Remove whitespaces between tags and innerHTML
     *
     * @param string $content HTML to perform the trim method
     *
     * @return string
     */
    
public static function trim($content)
    {
        
$regexp = '/(<[^\/][^>]+>)\s+|\s+(<\/)/';

        return
preg_replace($regexp, "$1$2", $content);
    }

    
/**
     * Render template
     *
     * @param array $data Variables to provides for template
     * @param bool  $trim Trim content
     *
     * @return string
     */
    
public function render($data = array(), $trim = true)
    {
        
$template = static::BASE_PATH . $this->name . '.phtml';
        try {
            
extract($data);
            
ob_start();
            if (
file_exists($template)) {
                include
$template;
            } else {
                throw new
LogicException(
                    
'The template "' . $template . '" not found.'
                
);
            }
            if (
$trim) {
                
$content = Template::trim(ob_get_clean());
            } else {
                
$content = ob_get_clean();
            }

            return
$content;
        } catch (
LogicException $e) {
            
ob_end_clean();
            throw new
LogicException($e->getMessage());
        }
    }
}

:: 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 #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0049 ]--