From ed33882ca3ea05aa94067ec322b901f802c63273 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 May 2009 00:12:11 +0000 Subject: [PATCH] Add more log --- .../barcode/php-barcode/php-barcode.php | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/htdocs/includes/barcode/php-barcode/php-barcode.php b/htdocs/includes/barcode/php-barcode/php-barcode.php index 5338dd7d130..72976910954 100644 --- a/htdocs/includes/barcode/php-barcode/php-barcode.php +++ b/htdocs/includes/barcode/php-barcode/php-barcode.php @@ -1,7 +1,7 @@ - + * The newest version can be found at http://www.ashberg.de/bar - + * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - + * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -52,7 +52,7 @@ $text_color=Array(0,0,0); /* location the the ttf-font */ /* the file arialbd.ttf isn't included! */ -/* SAMPLE1 : +/* SAMPLE1 : * use arialbd.ttf located in same directory like the script * which includes/requires php-barcode.php */ @@ -92,7 +92,7 @@ else require("encode_bars.php"); /* build-in encoders */ -/* +/* * barcode_outimage(text, bars [, scale [, mode [, total_y [, space ]]]] ) * * Outputs an image using libgd @@ -123,7 +123,7 @@ function barcode_outimage($text, $bars, $scale = 1, $mode = "png", if ($total_y<1) $total_y=(int)$scale * 60; if (!$space) $space=array('top'=>2*$scale,'bottom'=>2*$scale,'left'=>2*$scale,'right'=>2*$scale); - + /* count total width */ $xpos=0; $width=true; @@ -137,7 +137,7 @@ function barcode_outimage($text, $bars, $scale = 1, $mode = "png", if (ereg("[a-z]", $val)){ /* tall bar */ $val=ord($val)-ord('a')+1; - } + } $xpos+=$val*$scale; $width=true; } @@ -209,7 +209,7 @@ function barcode_outimage($text, $bars, $scale = 1, $mode = "png", // DOLCHANGE LDR global $filebarcode; - + /* output the image */ $mode=strtolower($mode); if ($mode=='jpg' || $mode=='jpeg'){ @@ -224,7 +224,7 @@ function barcode_outimage($text, $bars, $scale = 1, $mode = "png", { imagepng($im,$filebarcode); // End DOLCHANGE LDR - + } else { header("Content-Type: image/png; name=\"barcode.png\""); imagepng($im); @@ -264,7 +264,7 @@ function barcode_outtext($code,$bars){ return $bar_line; } -/* +/* * barcode_outhtml(text, bars [, scale [, total_y [, space ]]] ) * * returns(!) HTML-Code for barcode-image using html-code (using a table and with black.png and white.png) @@ -302,7 +302,7 @@ function barcode_outhtml($code, $bars, $scale = 1, $total_y = 0, $space = ''){ ''."\n". ''."\n". ''; - + $width=true; for ($i=0;$i