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:23.6 GB of 70.42 GB (33.51%)
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/ yalagina/ libraries/ joomla/ html/ html/ - drwxr-xr-x

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

/**
 * Utility class working with images.
 *
 * @package     Joomla.Platform
 * @subpackage  HTML
 * @since       11.1
 */
abstract class JHtmlImage
{
    
/**
     * Checks to see if an image exists in the current templates image directory.
     * If it does it loads this image. Otherwise the default image is loaded.
     * Also can be used in conjunction with the menulist param to create the chosen image
     * load the default or use no image.
     *
     * @param   string   $file       The file name, eg foobar.png.
     * @param   string   $folder     The path to the image.
     * @param   integer  $altFile    Empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder.
     * @param   string   $altFolder  Another path.  Only used for the contact us form based on the value of the imagelist param.
     * @param   string   $alt        Alternative text.
     * @param   array    $attribs    An associative array of attributes to add.
     * @param   boolean  $asTag      True (default) to display full tag, false to return just the path.
     *
     * @return  string   The value for the src or if $asTag is true, the full img html.
     *
     * @since    11.1
     *
     * @deprecated    12.1
     */
    
public static function site($file$folder '/images/system/'$altFile null$altFolder '/images/system/'$alt null$attribs null,
        
$asTag true)
    {
        
// Deprecation warning.
        
JLog::add('JImage::site is deprecated.'JLog::WARNING'deprecated');

        static 
$paths;
        
$app JFactory::getApplication();

        if (!
$paths)
        {
            
$paths = array();
        }

        if (
is_array($attribs))
        {
            
$attribs JArrayHelper::toString($attribs);
        }

        
$cur_template $app->getTemplate();

        
// Strip HTML.
        
$alt html_entity_decode($altENT_COMPAT'UTF-8');

        if (
$altFile)
        {
            
$src $altFolder $altFile;
        }
        elseif (
$altFile == -1)
        {
            return 
'';
        }
        else
        {
            
$path JPATH_SITE '/templates/' $cur_template '/images/' $file;
            if (!isset(
$paths[$path]))
            {
                if (
file_exists(JPATH_SITE '/templates/' $cur_template '/images/' $file))
                {
                    
$paths[$path] = 'templates/' $cur_template '/images/' $file;
                }
                else
                {
                    
// Outputs only path to image.
                    
$paths[$path] = $folder $file;
                }
            }
            
$src $paths[$path];
        }

        if (
substr($src01) == "/")
        {
            
$src substr_replace($src''01);
        }

        
// Prepend the base path.
        
$src JURI::base(true) . '/' $src;

        
// Outputs actual HTML <img> tag.
        
if ($asTag)
        {
            return 
'<img src="' $src '" alt="' $alt '" ' $attribs ' />';
        }

        return 
$src;
    }

    
/**
     * Checks to see if an image exists in the current templates image directory
     * if it does it loads this image.  Otherwise the default image is loaded.
     * Also can be used in conjunction with the menulist param to create the chosen image
     * load the default or use no image
     *
     * @param   string   $file       The file name, eg foobar.png.
     * @param   string   $folder     The path to the image.
     * @param   integer  $altFile    Empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder.
     * @param   string   $altFolder  Another path.  Only used for the contact us form based on the value of the imagelist param.
     * @param   string   $alt        Alternative text.
     * @param   array    $attribs    An associative array of attributes to add.
     * @param   boolean  $asTag      True (default) to display full tag, false to return just the path.
     *
     * @return  string   The src or the full img tag if $asTag is true.
     *
     * @since   11.1
     *
     * @deprecated  12.1
     */
    
public static function administrator($file$folder '/images/'$altFile null$altFolder '/images/'$alt null$attribs null,
        
$asTag true)
    {
        
// Deprecation warning.
        
JLog::add('JImage::administrator is deprecated.'JLog::WARNING'deprecated');

        
$app JFactory::getApplication();

        if (
is_array($attribs))
        {
            
$attribs JArrayHelper::toString($attribs);
        }

        
$cur_template $app->getTemplate();

        
// Strip HTML.
        
$alt html_entity_decode($altENT_COMPAT'UTF-8');

        if (
$altFile)
        {
            
$image $altFolder $altFile;
        }
        elseif (
$altFile == -1)
        {
            
$image '';
        }
        else
        {
            if (
file_exists(JPATH_ADMINISTRATOR '/templates/' $cur_template '/images/' $file))
            {
                
$image 'templates/' $cur_template '/images/' $file;
            }
            else
            {
                
// Compatibility with previous versions.
                
if (substr($folder014) == "/administrator")
                {
                    
$image substr($folder15) . $file;
                }
                else
                {
                    
$image $folder $file;
                }
            }
        }

        if (
substr($image01) == "/")
        {
            
$image substr_replace($image''01);
        }

        
// Prepend the base path.
        
$image JURI::base(true) . '/' $image;

        
// Outputs actual HTML <img> tag.
        
if ($asTag)
        {
            
$image '<img src="' $image '" alt="' $alt '" ' $attribs ' />';
        }

        return 
$image;
    }
}
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.1713 seconds