From: Thomas Mudrunka Date: Sat, 15 Jun 2013 00:16:26 +0000 (+0200) Subject: Barcode Debug X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=395c4f0276293b13cf4b099791fc4ef8ba77f261;p=mirrors%2FSokoMan.git Barcode Debug --- diff --git a/assistants/print-labels.inc.php b/assistants/print-labels.inc.php index 2200e01..42d32ff 100644 --- a/assistants/print-labels.inc.php +++ b/assistants/print-labels.inc.php @@ -14,6 +14,8 @@ for($i=0;$i<$count;$i++) $barcodes.=' -b '.escapeshellarg($prefix.$i); switch(strtolower($_POST['print'])) { + case 'debug': case 'dbg': + break; case 'pdf': $convert='| ps2pdf -dCompatibility=1.2 - -'; header('Content-Type: application/pdf'); @@ -25,7 +27,9 @@ break; } error_reporting(0); - system("barcode -e $enctype $geometry $table $barcodes $convert"); + $cmd="barcode -e $enctype $geometry $table $barcodes $convert"; + if($_POST['print']=='Debug') die($cmd); + system($cmd); die(); } ?> @@ -38,6 +42,7 @@ Okraje +