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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/mpdf/mpdf/src/Barcode/   drwxrwxrwx
Free 13.06 GB of 57.97 GB (22.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Barcode;

/**
 * CODABAR barcodes.
 * Older code often used in library systems, sometimes in blood banks
 */
class Codabar extends \Mpdf\Barcode\AbstractBarcode implements \Mpdf\Barcode\BarcodeInterface
{

    
/**
     * @param string $code
     * @param float $printRatio
     */
    
public function __construct($code$printRatio$quiet_zone_left null$quiet_zone_right null)
    {
        
$this->init($code$printRatio);

        
$this->data['nom-X'] = 0.381// Nominal value for X-dim (bar width) in mm (2 X min. spec.)
        
$this->data['nom-H'] = 10// Nominal value for Height of Full bar in mm (non-spec.)
        
$this->data['lightmL'] = ($quiet_zone_left !== null $quiet_zone_left 10); // LEFT light margin =  x X-dim (spec.)
        
$this->data['lightmR'] = ($quiet_zone_right !== null $quiet_zone_right 10); // RIGHT light margin =  x X-dim (spec.)
        
$this->data['lightTB'] = 0// TOP/BOTTOM light margin =  x X-dim (non-spec.)
    
}

    
/**
     * @param string $code
     * @param float $printRatio
     */
    
private function init($code$printRatio)
    {
        
$chr = [
            
'0' => '11111221',
            
'1' => '11112211',
            
'2' => '11121121',
            
'3' => '22111111',
            
'4' => '11211211',
            
'5' => '21111211',
            
'6' => '12111121',
            
'7' => '12112111',
            
'8' => '12211111',
            
'9' => '21121111',
            
'-' => '11122111',
            
'$' => '11221111',
            
':' => '21112121',
            
'/' => '21211121',
            
'.' => '21212111',
            
'+' => '11222221',
            
'A' => '11221211',
            
'B' => '12121121',
            
'C' => '11121221',
            
'D' => '11122211'
        
];

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

        
$code strtoupper($code);
        
$len strlen($code);

        for (
$i 0$i $len; ++$i) {

            if (!isset(
$chr[$code[$i]])) {
                throw new 
\Mpdf\Barcode\BarcodeException(sprintf('Invalid character "%s" in CODABAR barcode value "%s"'$code[$i], $code));
            }

            
$seq $chr[$code[$i]];

            for (
$j 0$j 8; ++$j) {
                if ((
$j 2) == 0) {
                    
$t true// bar
                
} else {
                    
$t false// space
                
}
                
$x $seq[$j];
                if (
$x == 2) {
                    
$w $printRatio;
                } else {
                    
$w 1;
                }
                
$bararray['bcode'][$k] = ['t' => $t'w' => $w'h' => 1'p' => 0];
                
$bararray['maxw'] += $w;
                ++
$k;
            }
        }

        
$this->data $bararray;
    }

    public function 
getType()
    {
        return 
'CODABAR';
    }

}

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