ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:22.02 GB of 70.42 GB (31.27%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ guitar.1/ libraries/ joomla/ document/ error/ - drwxr-xr-x

Directory:
Viewing file:     error.php (4.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Document
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

defined('JPATH_PLATFORM') or die;

/**
 * DocumentError class, provides an easy interface to parse and display an error page
 *
 * @package     Joomla.Platform
 * @subpackage  Document
 * @since       11.1
 */
class JDocumentError extends JDocument
{
    
/**
     * Error Object
     *
     * @var    object
     * @since  11.1
     */
    
protected $_error;

    
/**
     * Class constructor
     *
     * @param   array  $options  Associative array of attributes
     *
     * @since   11.1
     */
    
public function __construct($options = array())
    {
        
parent::__construct($options);

        
//set mime type
        
$this->_mime 'text/html';

        
//set document type
        
$this->_type 'error';
    }

    
/**
     * Set error object
     *
     * @param   object  $error  Error object to set
     *
     * @return  boolean  True on success
     *
     * @since   11.1
     */
    
public function setError($error)
    {
        if (
$error instanceof Exception)
        {
            
$this->_error = & $error;
            return 
true;
        }
        else
        {
            return 
false;
        }
    }

    
/**
     * Render the document
     *
     * @param   boolean  $cache   If true, cache the output
     * @param   array    $params  Associative array of attributes
     *
     * @return  string   The rendered data
     *
     * @since   11.1
     */
    
public function render($cache false$params = array())
    {
        
// If no error object is set return null
        
if (!isset($this->_error))
        {
            return;
        }

        
//Set the status header
        
JResponse::setHeader('status'$this->_error->getCode() . ' ' str_replace("\n"' '$this->_error->getMessage()));
        
$file 'error.php';

        
// check template
        
$directory = isset($params['directory']) ? $params['directory'] : 'templates';
        
$template = isset($params['template']) ? JFilterInput::getInstance()->clean($params['template'], 'cmd') : 'system';

        if (!
file_exists($directory '/' $template '/' $file))
        {
            
$template 'system';
        }

        
//set variables
        
$this->baseurl JURI::base(true);
        
$this->template $template;
        
$this->debug = isset($params['debug']) ? $params['debug'] : false;
        
$this->error $this->_error;

        
// load
        
$data $this->_loadTemplate($directory '/' $template$file);

        
parent::render();
        return 
$data;
    }

    
/**
     * Load a template file
     *
     * @param   string  $directory  The name of the template
     * @param   string  $filename   The actual filename
     *
     * @return  string  The contents of the template
     *
     * @since   11.1
     */
    
public function _loadTemplate($directory$filename)
    {
        
$contents '';

        
// Check to see if we have a valid template file
        
if (file_exists($directory '/' $filename))
        {
            
// Store the file path
            
$this->_file $directory '/' $filename;

            
// Get the file content
            
ob_start();
            require_once 
$directory '/' $filename;
            
$contents ob_get_contents();
            
ob_end_clean();
        }

        return 
$contents;
    }

    
/**
     * Render the backtrace
     *
     * @return  string  The contents of the backtrace
     *
     * @since   11.1
     */
    
public function renderBacktrace()
    {
        
$contents null;
        
$backtrace $this->_error->getTrace();
        if (
is_array($backtrace))
        {
            
ob_start();
            
$j 1;
            echo 
'<table cellpadding="0" cellspacing="0" class="Table">';
            echo 
'    <tr>';
            echo 
'        <td colspan="3" class="TD"><strong>Call stack</strong></td>';
            echo 
'    </tr>';
            echo 
'    <tr>';
            echo 
'        <td class="TD"><strong>#</strong></td>';
            echo 
'        <td class="TD"><strong>Function</strong></td>';
            echo 
'        <td class="TD"><strong>Location</strong></td>';
            echo 
'    </tr>';
            for (
$i count($backtrace) - 1$i >= 0$i--)
            {
                echo 
'    <tr>';
                echo 
'        <td class="TD">' $j '</td>';
                if (isset(
$backtrace[$i]['class']))
                {
                    echo 
'    <td class="TD">' $backtrace[$i]['class'] . $backtrace[$i]['type'] . $backtrace[$i]['function'] . '()</td>';
                }
                else
                {
                    echo 
'    <td class="TD">' $backtrace[$i]['function'] . '()</td>';
                }
                if (isset(
$backtrace[$i]['file']))
                {
                    echo 
'        <td class="TD">' $backtrace[$i]['file'] . ':' $backtrace[$i]['line'] . '</td>';
                }
                else
                {
                    echo 
'        <td class="TD">&#160;</td>';
                }
                echo 
'    </tr>';
                
$j++;
            }
            echo 
'</table>';
            
$contents ob_get_contents();
            
ob_end_clean();
        }
        return 
$contents;
    }
}
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 6.161 seconds