TransformProductCode2LaserFile.php 801 B

123456789101112131415161718192021
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. error_reporting(E_ALL);
  5. //header('Content-Type: application/json');
  6. header("Content-Type: text/plain");
  7. $productcode = json_decode($_GET["ProductCode"]);
  8. if ($productcode->Ba == "RKZ-S" || $productcode->Ba == "RHZ-S" || $productcode->Ba == "RDZ-S"){
  9. echo "CE_SerNr_SlotT1_RP." . $productcode->Za . ".rotiert.xml";
  10. }
  11. elseif (($productcode->Ba == "KZ-S" || $productcode->Ba == "HZ-S" || $productcode->Ba == "DZ-S") && $productcode->Pf == "FLU"){
  12. echo "CE_SerNr_FLU_SlotT1_EP." . $productcode->Za . ".rotiert.xml";
  13. }
  14. elseif ($productcode->Ba == "KZ-S" || $productcode->Ba == "HZ-S" || $productcode->Ba == "DZ-S"){
  15. echo "CE_SerNr_SlotT1_EP." . $productcode->Za . ".rotiert.xml";
  16. }
  17. ?>