/var/www/doncode.com.ua/www/libs
NameSizeModeActions
class.ajax.php7940644editdlrm
class.Barcode.php459360644editdlrm
class.BarcodeEAN.php24320644editdlrm
class.BarcodeI25.php21710644editdlrm
class.barcode_code_39.php33610644editdlrm
class.bootstrap.php143400644editdlrm
class.command.php5680644editdlrm
class.controller.php11160644editdlrm
class.cron.php8440644editdlrm
class.database.php20650644editdlrm
class.dcu_api.php28050644editdlrm
class.form.php29100644editdlrm
class.gd.php89750644editdlrm
class.hash.php2100644editdlrm
class.mail.php52130644editdlrm
class.model.php39450644editdlrm
class.num_to_string.php40160644editdlrm
class.order.php46300644editdlrm
class.payment.php13800644editdlrm
class.session.php11780644editdlrm
class.transfer_scales.php106260644editdlrm
class.validate.php26140644editdlrm
class.view.php15620644editdlrm
Edit: /var/www/doncode.com.ua/www/libs/class.BarcodeI25.php (2171B)
-1; $i--){ $v = intval($code[$i]); $sum += $odd ? 3 * $v : $v; $odd = ! $odd; } $code .= (string) ((10 - $sum % 10) % 10); } return($code); } static public function getDigit($code, $crc, $type){ $code = self::compute($code, $crc, $type); if ($code == '') return($code); $result = ''; if ($type == 'int25') { // Interleaved 2 of 5 // start $result .= '1010'; // digits + CRC $end = strlen($code) / 2; for($i=0; $i<$end; $i++){ $c1 = $code[2*$i]; $c2 = $code[2*$i+1]; for($j=0; $j<5; $j++){ $result .= '1'; if (self::$encoding[$c1][$j] == 'W') $result .= '1'; $result .= '0'; if (self::$encoding[$c2][$j] == 'W') $result .= '0'; } } // stop $result .= '1101'; } else if ($type == 'std25') { // Standard 2 of 5 is a numeric-only barcode that has been in use a long time. // Unlike Interleaved 2 of 5, all of the information is encoded in the bars; the spaces are fixed width and are used only to separate the bars. // The code is self-checking and does not include a checksum. // start $result .= '11011010'; // digits + CRC $end = strlen($code); for($i=0; $i<$end; $i++){ $c = $code[$i]; for($j=0; $j<5; $j++){ $result .= '1'; if (self::$encoding[$c][$j] == 'W') $result .= '11'; $result .= '0'; } } // stop $result .= '11010110'; } return($result); } } ?>