!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/src/Barcode/   drwxr-xr-x
Free 26.11 GB of 117.98 GB (22.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Barcode;

/**
 * POSTNET and PLANET barcodes.
 * Used by U.S. Postal Service for automated mail sorting
 */
class Postnet extends \Mpdf\Barcode\AbstractBarcode implements \Mpdf\Barcode\BarcodeInterface
{

    
/**
     * @param string $code
     * @param float $xDim
     * @param float $gapWidth
     * @param bool $planet
     */
    
public function __construct($code$xDim$gapWidth$planet false)
    {
        
$this->init($code$gapWidth$planet);

        
$this->data['nom-X'] = $xDim;
        
$this->data['nom-H'] = 3.175// Nominal value for Height of Full bar in mm (spec.)
        
$this->data['quietL'] = 3.175// LEFT Quiet margin =  mm (?spec.)
        
$this->data['quietR'] = 3.175// RIGHT Quiet margin =  mm (?spec.)
        
$this->data['quietTB'] = 1.016// TOP/BOTTOM Quiet margin =  mm (?spec.)
    
}

    
/**
     * @param string $code
     * @param float $gapWidth
     * @param bool $planet
     */
    
private function init($code$gapWidth$planet)
    {
        
// bar lenght
        
if ($planet) {
            
$barlen = [
                
=> [11222],
                
=> [22211],
                
=> [22121],
                
=> [22112],
                
=> [21221],
                
=> [21212],
                
=> [21122],
                
=> [12221],
                
=> [12212],
                
=> [12122]
            ];
        } else {
            
$barlen = [
                
=> [22111],
                
=> [11122],
                
=> [11212],
                
=> [11221],
                
=> [12112],
                
=> [12121],
                
=> [12211],
                
=> [21112],
                
=> [21121],
                
=> [21211]
            ];
        }

        
$bararray = ['code' => $code'maxw' => 0'maxh' => 5'bcode' => []];

        
$k 0;
        
$code str_replace('-'''$code);
        
$code str_replace(' '''$code);
        
$len strlen($code);

        
// calculate checksum
        
$sum 0;
        for (
$i 0$i $len; ++$i) {
            
$sum += (int) $code[$i];
        }

        
$chkd = ($sum 10);
        if (
$chkd 0) {
            
$chkd = (10 $chkd);
        }

        
$code .= $chkd;
        
$checkdigit $chkd;
        
$len strlen($code);

        
// start bar
        
$bararray['bcode'][$k++] = ['t' => 1'w' => 1'h' => 5'p' => 0];
        
$bararray['bcode'][$k++] = ['t' => 0'w' => $gapWidth'h' => 5'p' => 0];
        
$bararray['maxw'] += ($gapWidth);

        for (
$i 0$i $len; ++$i) {
            for (
$j 0$j 5; ++$j) {
                
$bh $barlen[$code[$i]][$j];
                if (
$bh == 2) {
                    
$h 5;
                    
$p 0;
                } else {
                    
$h 2;
                    
$p 3;
                }
                
$bararray['bcode'][$k++] = ['t' => 1'w' => 1'h' => $h'p' => $p];
                
$bararray['bcode'][$k++] = ['t' => 0'w' => $gapWidth'h' => 2'p' => 0];
                
$bararray['maxw'] += ($gapWidth);
            }
        }

        
// end bar
        
$bararray['bcode'][$k++] = ['t' => 1'w' => 1'h' => 5'p' => 0];
        
$bararray['maxw'] += 1;
        
$bararray['checkdigit'] = $checkdigit;

        
$this->data $bararray;
    }

    
/**
     * @inheritdoc
     */
    
public function getType()
    {
        return 
'POSTNET';
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--