X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=assistants%2Fprint-labels.inc.php;h=42d32ff43ea8bf1a9b84b917b6ef6e59155670ed;hb=395c4f0276293b13cf4b099791fc4ef8ba77f261;hp=2200e01157fda432b4dbd09718597ddad4da9e2a;hpb=8ffb8610b13528b8698585173d413ade1e3cab5e;p=mirrors%2FSokoMan.git 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 +