From 395c4f0276293b13cf4b099791fc4ef8ba77f261 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Sat, 15 Jun 2013 02:16:26 +0200 Subject: [PATCH] Barcode Debug --- assistants/print-labels.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + -- 2.30.2