Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
echasl23 /
phpqrcode /
Delete
Unzip
Name
Size
Permission
Date
Action
bindings
[ DIR ]
drwxr-sr-x
2022-05-04 09:30
cache
[ DIR ]
drwxr-sr-x
2022-05-04 09:30
tools
[ DIR ]
drwxr-sr-x
2022-05-04 09:30
CHANGELOG
1.23
KB
-rw-r--r--
2022-05-04 09:30
INSTALL
1.99
KB
-rw-r--r--
2022-05-04 09:30
LICENSE
7.63
KB
-rw-r--r--
2022-05-04 09:30
README
1.6
KB
-rw-r--r--
2022-05-04 09:30
VERSION
17
B
-rw-r--r--
2022-05-04 09:30
index.php
3.57
KB
-rw-r--r--
2022-05-04 09:30
phpqrcode.php
118.93
KB
-rw-r--r--
2022-05-04 09:30
qrbitstream.php
5.26
KB
-rw-r--r--
2022-05-04 09:30
qrconfig.php
1.41
KB
-rw-r--r--
2022-05-04 09:30
qrconst.php
1.72
KB
-rw-r--r--
2022-05-04 09:30
qrencode.php
17.1
KB
-rw-r--r--
2022-05-04 09:30
qrimage.php
3.54
KB
-rw-r--r--
2022-05-04 09:30
qrinput.php
24.22
KB
-rw-r--r--
2022-05-04 09:30
qrlib.php
1.56
KB
-rw-r--r--
2022-05-04 09:30
qrmask.php
12.29
KB
-rw-r--r--
2022-05-04 09:30
qrrscode.php
8.29
KB
-rw-r--r--
2022-05-04 09:30
qrspec.php
25.99
KB
-rw-r--r--
2022-05-04 09:30
qrsplit.php
11.11
KB
-rw-r--r--
2022-05-04 09:30
qrtools.php
6.18
KB
-rw-r--r--
2022-05-04 09:30
Save
Rename
<?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; } }