!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)

/usr/local/webmail2/plugins/html_mail/htmlarea/plugins/ImageManager/Classes/   drwxr-xr-x
Free 318.3 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:     Thumbnail.php (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Create thumbnails.
 * @author $Author: ray $
 * @version $Id: Thumbnail.php 709 2007-01-30 23:22:04Z ray $
 * @package ImageManager
 */


require_once('../ImageManager/Classes/Transform.php');

/**
 * Thumbnail creation
 * @author $Author: ray $
 * @version $Id: Thumbnail.php 709 2007-01-30 23:22:04Z ray $
 * @package ImageManager
 * @subpackage Images
 */
class Thumbnail 
{
    
/**
     * Graphics driver, GD, NetPBM or ImageMagick.
     */
    
var $driver;

    
/**
     * Thumbnail default width.
     */
    
var $width 96;

    
/**
     * Thumbnail default height.
     */
    
var $height 96;

    
/**
     * Thumbnail default JPEG quality.
     */
    
var $quality 85;

    
/**
     * Thumbnail is proportional
     */
    
var $proportional true;

    
/**
     * Default image type is JPEG.
     */
    
var $type 'jpeg';

    
/**
     * Create a new Thumbnail instance.
     * @param int $width thumbnail width
     * @param int $height thumbnail height
     */
    
function Thumbnail($width=96$height=96
    {
        
$this->driver Image_Transform::factory(IMAGE_CLASS);
        
$this->width $width;
        
$this->height $height;
    }

    
/**
     * Create a thumbnail.
     * @param string $file the image for the thumbnail
     * @param string $thumbnail if not null, the thumbnail will be saved
     * as this parameter value.
     * @return boolean true if thumbnail is created, false otherwise
     */
    
function createThumbnail($file$thumbnail=null
    {
        if(!
is_file($file)) 
            Return 
false;

        
//error_log('Creating Thumbs: '.$file);

        
$this->driver->load($file);

        if(
$this->proportional
        {
            
$width $this->driver->img_x;
            
$height $this->driver->img_y;

            if (
$width $height)
                
$this->height intval($this->width/$width*$height);
            else if (
$height $width)
                
$this->width intval($this->height/$height*$width);
        }

        
$this->driver->resize($this->width$this->height);

        if(
is_null($thumbnail)) 
            
$this->save($file);
        else
            
$this->save($thumbnail);


        
$this->free();

        if(
is_file($thumbnail)) 
            Return 
true;
        else
            Return 
false;
    }

    
/**
     * Save the thumbnail file.
     * @param string $file file name to be saved as.
     */
    
function save($file
    {
        
$this->driver->save($file);
    }

    
/**
     * Free up the graphic driver resources.
     */
    
function free() 
    {
        
$this->driver->free();
    }
}


?>

:: 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.0232 ]--