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:24.56 GB of 70.42 GB (34.88%)
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/ utilities/ - drwxr-xr-x

Directory:
Viewing file:     xmlelement.php (3.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Utilities
 *
 * @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;

/**
 * Wrapper class for php SimpleXMLElement.
 *
 * @package     Joomla.Platform
 * @subpackage  Utilities
 * @since       11.1
 */
class JXMLElement extends SimpleXMLElement
{
    
/**
     * Get the name of the element.
     *
     * @return  string
     *
     * @since   11.1
     */
    
public function name()
    {
        return (string) 
$this->getName();
    }

    
/**
     * Legacy method to get the element data.
     *
     * @return  string
     *
     * @deprecated  12.1
     * @since   11.1
     */
    
public function data()
    {
        
// Deprecation warning.
        
JLog::add('Jxmlelement::data() is deprecated.'JLog::WARNING'deprecated');

        return (string) 
$this;
    }

    
/**
     * Legacy method gets an elements attribute by name.
     *
     * @param   string  $name  Attribute to get
     *
     * @return  string
     *
     * @since   11.1
     *
     * @deprecated    12.1
     * @see           SimpleXMLElement::attributes
     */
    
public function getAttribute($name)
    {
        
// Deprecation warning.
        
JLog::add('JXMLelement::getAttributes() is deprecated.'JLog::WARNING'deprecated');

        return (string) 
$this->attributes()->$name;
    }

    
/**
     * Return a well-formed XML string based on SimpleXML element
     *
     * @param   boolean  $compressed  Should we use indentation and newlines ?
     * @param   integer  $indent      Indention level.
     * @param   integer  $level       The level within the document which informs the indentation.
     *
     * @return  string
     *
     * @since   11.1
     */
    
public function asFormattedXML($compressed false$indent "\t"$level 0)
    {
        
$out '';

        
// Start a new line, indent by the number indicated in $level
        
$out .= ($compressed) ? '' "\n" str_repeat($indent$level);

        
// Add a <, and add the name of the tag
        
$out .= '<' $this->getName();

        
// For each attribute, add attr="value"
        
foreach ($this->attributes() as $attr)
        {
            
$out .= ' ' $attr->getName() . '="' htmlspecialchars((string) $attrENT_COMPAT'UTF-8') . '"';
        }

        
// If there are no children and it contains no data, end it off with a />
        
if (!count($this->children()) && !(string) $this)
        {
            
$out .= " />";
        }
        else
        {
            
// If there are children
            
if (count($this->children()))
            {
                
// Close off the start tag
                
$out .= '>';

                
$level++;

                
// For each child, call the asFormattedXML function (this will ensure that all children are added recursively)
                
foreach ($this->children() as $child)
                {
                    
$out .= $child->asFormattedXML($compressed$indent$level);
                }

                
$level--;

                
// Add the newline and indentation to go along with the close tag
                
$out .= ($compressed) ? '' "\n" str_repeat($indent$level);

            }
            elseif ((string) 
$this)
            {
                
// If there is data, close off the start tag and add the data
                
$out .= '>' htmlspecialchars((string) $thisENT_COMPAT'UTF-8');
            }

            
// Add the end tag
            
$out .= '</' $this->getName() . '>';
        }

        return 
$out;
    }
}
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: 0.1931 seconds