Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto jpI0j; U2MwM: if (empty($firstin) && !empty($id_lavorazione) && is_numeric($i..

Decoded Output download

<?php 
 goto jpI0j; U2MwM: if (empty($firstin) && !empty($id_lavorazione) && is_numeric($id_lavorazione) && !in_array($id_lavorazione, $arr_idlav)) { echo "<span class="text-warning">\xc3\210 stato scansionato il barcode di una commessa non in elenco.</span>"; } else { if (!empty($last_operation)) { echo $last_operation; } else { echo "<i>Nessuna</i>"; } } goto NKdba; FJnCw: $result_lavorazioni_giornata = mysqli_query($conn, $sql_lavorazioni_giornata); goto bR4Mc; iIDl4: if (!empty($id_lavorazione) && is_numeric($id_lavorazione) && in_array($id_lavorazione, $arr_idlav)) { echo $id_lavorazione . " - " . $string_comm; } else { echo "<i>Nessuna - Scansionare una Commessa</i>"; } goto U4P5V; U4P5V: ?> 
</p><p class="text-center fs-3"><b>Ultima operazione effettuata:</b><?php  goto U2MwM; qM7Fb: ?> 
"></form></div></div></div><div class="row"><div class="mt-3 col-lg-12"><p class="text-center fs-3"><b>ID Commessa Selezionata:</b><?php  goto iIDl4; BqLTD: if ($num_lavorazioni_giornata > 0) { $arr_idlav = array(); while ($row_lavorazioni_giornata = mysqli_fetch_assoc($result_lavorazioni_giornata)) { array_push($arr_idlav, $row_lavorazioni_giornata["id_lavorazione"]); } } goto r0Rwf; YDAkR: $firstin = 1; goto rj1Vs; DJlOn: function uploadJsonFTP($idcommessa, $statolav) { include "./assets/functions/config.php"; $sql_id_config = "SELECT id_configuratore FROM dati_commessa WHERE id_commessa = '" . $idcommessa . "'"; $result_id_config = mysqli_query($conn, $sql_id_config); $num_id_config = mysqli_num_rows($result_id_config); if ($num_id_config === 1) { $row_id_config = mysqli_fetch_assoc($result_id_config); $id_config = $row_id_config["id_configuratore"]; $ftp_server = "gestione.italinfissi.it"; $ftp_user = "gest_italinfissi"; $ftp_pass = "Qbum77&69"; $conn_id = ftp_connect($ftp_server) or die("Impossibile connettersi a {$ftp_server}"); $login_result = ftp_login($conn_id, $ftp_user, $ftp_pass); ftp_pasv($conn_id, true) or die("Impossibile passare alla modalit\303\240 passiva"); if ($login_result) { addToLog(date("[Y-m-d H:i:s]") . " - Login via FTP avvenuto con successo. (uploadJsonFTP)"); $file_to_check = "statolav.json"; $root_directory = "/"; if (ftp_size($conn_id, $root_directory . $file_to_check) !== -1) { addToLog(date("[Y-m-d H:i:s]") . " - E' presente il file statolav.json da importare."); $local_file = '' . $file_to_check; if (ftp_get($conn_id, $local_file, $root_directory . $file_to_check, FTP_BINARY)) { addToLog(date("[Y-m-d H:i:s]") . " - Il file statolav.json \xc3\250 stato scaricato nella root di questo webserver."); $array_status = array("id" => $id_config, "statolav" => $statolav, "timestamp" => date("Y-d-m H:i", time())); $json_utente = json_encode($array_status); file_put_contents("statolav.json", $json_utente . PHP_EOL, FILE_APPEND); } else { addToLog(date("[Y-m-d H:i:s]") . " - ERRORE -  Il file statolav.json NON \xc3\xa8 stato scaricato."); } } else { addToLog(date("[Y-m-d H:i:s]") . " - Il file statolav.json NON \xc3\250 presente nella root del webserver FTP. (Procedo alla creazione/upload)"); $array_status = array("id" => $id_config, "tipo" => "cassonetto", "statolav" => $statolav, "timestamp" => date("Y-d-m H:i", time())); $json_utente = json_encode($array_status); file_put_contents("statolav.json", $json_utente . PHP_EOL); } if (ftp_put($conn_id, "statolav.json", "statolav.json", FTP_BINARY)) { addToLog(date("[Y-m-d H:i:s]") . " - Il file statolav.json \xc3\250 stato caricato nella root del webserver FTP."); } else { addToLog(date("[Y-m-d H:i:s]") . " - ERRORE - Il file statolav.json NON \xc3\250 stato caricato."); } unlink("statolav.json"); ftp_close($conn_id); } else { addToLog(date("[Y-m-d H:i:s]") . " - ERRORE - Login via FTP fallito."); } } } goto UEoir; NKdba: ?> 
</p></div></div><table class="border fs-3 text-center"><thead><tr><th class="border">#</th><th class="border">ID Commessa</th><th class="border">Cliente</th><th class="border">Modello</th><th class="border">Taglio</th><th class="border">Profili</th><th class="border">Coib.ne</th><th class="border">Saldatura</th><th class="border">Pulitura</th><th class="border">Assemblaggio</th></tr></thead><tbody><?php  goto Z10Fn; rj1Vs: function addToLog($stringToAdd) { $filename = "log-import.txt"; $currentContent = file_get_contents($filename); $currentContent .= "\xa" . $stringToAdd; file_put_contents($filename, $currentContent); } goto DJlOn; vGFOg: if (!empty($_GET["wascompleted"]) && !empty($_GET["idlav"])) { $updated = trim($_GET["wascompleted"]); $updated = mysqli_real_escape_string($conn, $updated); $idlav = trim($_GET["idlav"]); $idlav = mysqli_real_escape_string($conn, $idlav); switch ($updated) { case "taglio_barre": $last_operation = "<span class="text-warning">\xc3\210 stato scansionato il barcode della fase gi\xc3\xa0 completata: Taglio Barre. (ID Commessa = " . $idlav . ")</span>"; break; case "profili": $last_operation = "<span class="text-warning">\xc3\x88 stato scansionato il barcode della fase gi\303\xa0 completata: Profili. (ID Commessa = " . $idlav . ")</span>"; break; case "coibentazione": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase gi\xc3\240 completata: Coibentazione. (ID Commessa = " . $idlav . ")</span>"; break; case "saldatura": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase gi\303\xa0 completata: Saldatura. (ID Commessa = " . $idlav . ")</span>"; break; case "pulitura": $last_operation = "<span class="text-warning">\xc3\x88 stato scansionato il barcode della fase gi\xc3\xa0 completata: Pulitura. (ID Commessa = " . $idlav . ")</span>"; break; case "assemblaggio": $last_operation = "<span class="text-warning">\xc3\x88 stato scansionato il barcode della fase gi\303\240 completata: Assemblaggio. (ID Commessa = " . $idlav . ")</span>"; break; default: break; } } goto sBp0f; r0Rwf: ?> 
<!doctypehtml><html lang="it"><head><meta charset="UTF-8"><meta content="IE=edge"http-equiv="X-UA-Compatible"><meta content="width=device-width,initial-scale=1"name="viewport"><link href="./favicon.ico"rel="icon"type="image/x-icon"><link href="./assets/plugins/bootstrap-5.3.0/css/bootstrap.min.css"rel="stylesheet"crossorigin="anonymous"integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"><link href="./assets/style/app.min.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/fontawesome.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/brands.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/solid.css"rel="stylesheet"><link href="./assets/plugins/DataTables/datatables.min.css"rel="stylesheet"><link href="./assets/plugins/sweetalert2/sweetalert2.min.css"rel="stylesheet"><script src="./assets/plugins/DataTables/datatables.min.js"></script><script src="./assets/plugins/bootstrap-5.3.0/js/bootstrap.bundle.min.js"crossorigin="anonymous"integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"></script><script src="./assets/plugins/sweetalert2/sweetalert2.all.min.js"></script><title>Italinfissi - Officina</title></head><body><?php  goto QT59R; CEwKX: $num_lavorazioni_giornata = mysqli_num_rows($result_lavorazioni_giornata); goto BqLTD; jpI0j: include "./assets/functions/config.php"; goto YDAkR; QtTkB: if ($num_lavorazioni_giornata > 0) { $i = 1; $tb_text = "<span class="badge bg-danger">DA FARE</span>"; $pf_text = "<span class="badge bg-danger">DA FARE</span>"; $cb_text = "<span class="badge bg-danger">DA FARE</span>"; $sa_text = "<span class="badge bg-danger">DA FARE</span>"; $pt_text = "<span class="badge bg-danger">DA FARE</span>"; $ab_text = "<span class="badge bg-danger">DA FARE</span>"; while ($row_lavorazioni_giornata = mysqli_fetch_assoc($result_lavorazioni_giornata)) { $sql_dati_lav = "SELECT * FROM dati_commessa WHERE id_commessa = '" . $row_lavorazioni_giornata["id_lavorazione"] . "'"; $result_dati_lav = mysqli_query($conn, $sql_dati_lav); $num_dati_lav = mysqli_num_rows($result_dati_lav); if ($num_dati_lav > 0) { $row_dati_lav = mysqli_fetch_assoc($result_dati_lav); if ($row_dati_lav["statolavorazione"] === "Lavorazione Completata" && time() - 86400 > strtotime($row_dati_lav["timestamp"])) { $sql_update_lav_complete = "UPDATE lavorazioni_giornata SET eliminato = '1' WHERE id_lavorazione = '" . $row_lavorazioni_giornata["id_lavorazione"] . "'"; $result_update_lav_complete = mysqli_query($conn, $sql_update_lav_complete); continue; } $sql_dati_comm = "SELECT id_commessa, cliente, modello FROM dati_commessa WHERE id_commessa = '" . $row_dati_lav["id_commessa"] . "'"; $result_dati_comm = mysqli_query($conn, $sql_dati_comm); $num_dati_comm = mysqli_num_rows($result_dati_comm); if ($num_dati_comm === 1) { $row_dati_comm = mysqli_fetch_assoc($result_dati_comm); $sql_stato_lav = "SELECT * FROM stato_lavorazioni WHERE id_lavorazione = '" . $row_dati_lav["id_commessa"] . "'"; $result_stato_lav = mysqli_query($conn, $sql_stato_lav); $num_stato_lav = mysqli_num_rows($result_stato_lav); if ($num_stato_lav === 0) { $sql_insert_statolav = "INSERT INTO `stato_lavorazioni`(`id_lavorazione`) VALUES ('" . $row_dati_lav["id_commessa"] . "')"; $result_insert_statolav = mysqli_query($conn, $sql_insert_statolav); } else { $row_stato_lav = mysqli_fetch_assoc($result_stato_lav); switch ($row_stato_lav["taglio_barre"]) { case "1": $tb_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $tb_text = "<span class="badge bg-success">FATTO</span>"; break; default: $tb_text = "<span class="badge bg-danger">DA FARE</span>"; break; } switch ($row_stato_lav["profili"]) { case "1": $pf_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $pf_text = "<span class="badge bg-success">FATTO</span>"; break; default: $pf_text = "<span class="badge bg-danger">DA FARE</span>"; break; } switch ($row_stato_lav["coibentazione"]) { case "1": $cb_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $cb_text = "<span class="badge bg-success">FATTO</span>"; break; default: $cb_text = "<span class="badge bg-danger">DA FARE</span>"; break; } switch ($row_stato_lav["saldatura"]) { case "1": $sa_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $sa_text = "<span class="badge bg-success">FATTO</span>"; break; default: $sa_text = "<span class="badge bg-danger">DA FARE</span>"; break; } switch ($row_stato_lav["pulitura"]) { case "1": $pt_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $pt_text = "<span class="badge bg-success">FATTO</span>"; break; default: $pt_text = "<span class="badge bg-danger">DA FARE</span>"; break; } switch ($row_stato_lav["assemblaggio"]) { case "1": $ab_text = "<span class="badge bg-warning">IN CORSO</span>"; break; case "2": $ab_text = "<span class="badge bg-success">FATTO</span>"; break; default: $ab_text = "<span class="badge bg-danger">DA FARE</span>"; break; } } echo "<tr id="riga-"" . $row_dati_lav["id_commessa"] . ">"; echo "<td class="border p-3">" . $i . "</td>"; echo "<td class="border p-3">" . $row_dati_lav["id_commessa"] . "</td>"; echo "<td class="border p-3">" . $row_dati_comm["cliente"] . "</td>"; echo "<td class="border p-3">" . $row_dati_comm["modello"] . "</td>"; echo "<td class="border p-3">" . $tb_text . "</td>"; echo "<td class="border p-3">" . $pf_text . "</td>"; echo "<td class="border p-3">" . $cb_text . "</td>"; echo "<td class="border p-3">" . $sa_text . "</td>"; echo "<td class="border p-3">" . $pt_text . "</td>"; echo "<td class="border p-3">" . $ab_text . "</td>"; echo "</tr>"; $i++; } } } } else { echo "<tr><td class="border p-3" colspan="10">Non ci sono lavorazioni da eseguire.</td><tr>"; } goto i0T8u; WCPWj: if (!empty($_GET["updated"]) && !empty($_GET["idlav"])) { $updated = trim($_GET["updated"]); $updated = mysqli_real_escape_string($conn, $updated); $idlav = trim($_GET["idlav"]); $idlav = mysqli_real_escape_string($conn, $idlav); switch ($updated) { case "taglio_barre": $last_operation = "<span class="text-success">Fase Aggiornata: Taglio. (ID Commessa = " . $idlav . ")</span>"; break; case "profili": $last_operation = "<span class="text-success">Fase Aggiornata: Profili. (ID Commessa = " . $idlav . ")</span>"; break; case "coibentazione": $last_operation = "<span class="text-success">Fase Aggiornata: Coibentazione. (ID Commessa = " . $idlav . ")</span>"; break; case "saldatura": $last_operation = "<span class="text-success">Fase Aggiornata: Saldatura. (ID Commessa = " . $idlav . ")</span>"; break; case "pulitura": $last_operation = "<span class="text-success">Fase Aggiornata: Pulitura. (ID Commessa = " . $idlav . ")</span>"; break; case "assemblaggio": $last_operation = "<span class="text-success">Fase Aggiornata: Assemblaggio. (ID Commessa = " . $idlav . ")</span>"; break; default: break; } } goto vGFOg; Z10Fn: $sql_lavorazioni_giornata = "SELECT * FROM lavorazioni_giornata WHERE eliminato IS NULL ORDER BY posizione"; goto FJnCw; QT59R: ?> 
<div class="container-fluid"><div class="row"><div class="mt-3 col-lg-12"><div class="card"><div class="card-header"><a aria-controls="collapse-1"aria-expanded="true"class="d-block"data-bs-toggle="collapse"href="#collapse-1"id="heading-1"><i class="fa-caret-down fa-solid"></i> Lavorazioni</a></div><div class="collapse show"aria-labelledby="heading1"id="collapse-1"><div class="card-body"><div class="row table-responsive"><div class="text-center container"><div class="row justify-content-md-center"><div class="mt-3 col-6"><form action="officina.php"method="post"><input name="barcode"class="form-control"id="barcode"placeholder="In attesa del barcode..."> <input name="idlavorazione"type="hidden"value="<?php  goto X_aL1; sBp0f: $sql_lavorazioni_giornata = "SELECT id_lavorazione FROM lavorazioni_giornata WHERE eliminato IS NULL ORDER BY posizione"; goto fduWI; bR4Mc: $num_lavorazioni_giornata = mysqli_num_rows($result_lavorazioni_giornata); goto QtTkB; fduWI: $result_lavorazioni_giornata = mysqli_query($conn, $sql_lavorazioni_giornata); goto CEwKX; UEoir: if (!empty($_POST["barcode"])) { $firstin = ''; $scanned = trim($_POST["barcode"]); $scanned = mysqli_real_escape_string($conn, $scanned); $pos_idlav = strpos($scanned, "IDLAV-"); if ($pos_idlav === false) { if (!empty($_POST["idlavorazione"]) && is_numeric($_POST["idlavorazione"])) { $id_lavorazione = trim($_POST["idlavorazione"]); $id_lavorazione = mysqli_real_escape_string($conn, $id_lavorazione); $pos_fase = strpos($scanned, "FASELAV-"); if ($pos_fase === false) { $last_operation = "<span class="text-danger">\xc3\x88 stato scansionato un barcode sconosciuto.</span>"; } else { $faselav = str_replace("FASELAV-", '', $scanned); switch ($faselav) { case "TB": $lavtype = "taglio_barre"; $status = "Taglio"; break; case "PF": $lavtype = "profili"; $status = "Profili"; break; case "CB": $lavtype = "coibentazione"; $status = "Coibentazione"; break; case "SA": $lavtype = "saldatura"; $status = "Saldatura"; break; case "PT": $lavtype = "pulitura"; $status = "Pulitura"; break; case "AB": $lavtype = "assemblaggio"; $status = "Assemblaggio"; break; default: $lavtype = ''; $last_operation = "<span class="text-warning">\xc3\x88 stato scansionato il barcode di una lavorazione sconosciuta.</span>"; break; } if (!empty($lavtype)) { $sql_stato_fase = "SELECT `" . $lavtype . "` FROM `stato_lavorazioni` WHERE id_lavorazione = '" . $id_lavorazione . "'"; $result_stato_fase = mysqli_query($conn, $sql_stato_fase); $row_stato_fase = mysqli_fetch_assoc($result_stato_fase); $id_commessa = $id_lavorazione; switch ($row_stato_fase[$lavtype]) { case 1: $sql_update_fase = "UPDATE `stato_lavorazioni` SET `{$lavtype}` = '2' WHERE id_lavorazione = '" . $id_lavorazione . "'"; $sql_update_lav = "UPDATE `dati_commessa` SET `statolavorazione`='" . $status . " - Terminata' WHERE id_commessa = '" . $id_lavorazione . "'"; break; case 2: header("location: officina.php?wascompleted=" . $lavtype . "&idlav=" . $id_lavorazione); break; default: $sql_update_fase = "UPDATE `stato_lavorazioni` SET `{$lavtype}` = '1' WHERE id_lavorazione = '" . $id_lavorazione . "'"; $sql_update_lav = "UPDATE `dati_commessa` SET `statolavorazione`='" . $status . " - In Corso' WHERE id_commessa = '" . $id_lavorazione . "'"; $sql_update_commessa = "UPDATE `dati_commessa` SET `stato`='In Lavorazione' WHERE id_commessa = '" . $id_commessa . "'"; $result_update_commessa = mysqli_query($conn, $sql_update_commessa); break; } $result_update_fase = mysqli_query($conn, $sql_update_fase); $result_update_lav = mysqli_query($conn, $sql_update_lav); $sql_verify_complete = "SELECT * FROM stato_lavorazioni WHERE id_lavorazione = '" . $id_lavorazione . "' AND taglio_barre = '2' AND profili = '2' AND coibentazione = '2' AND saldatura = '2' AND pulitura = '2' AND assemblaggio = '2'"; $result_verify_complete = mysqli_query($conn, $sql_verify_complete); $num_verify_complete = mysqli_num_rows($result_verify_complete); if ($num_verify_complete === 1) { $sql_lav_completata = "UPDATE `dati_commessa` SET `statolavorazione`='Lavorazione Completata' WHERE id_commessa = '" . $id_lavorazione . "'"; $result_lav_completata = mysqli_query($conn, $sql_lav_completata); uploadJsonFTP($id_lavorazione, 2); $sql_completate = "SELECT * FROM dati_commessa WHERE id_commessa = '" . $id_commessa . "' AND statolavorazione <> 'Lavorazione Completata'"; $result_completate = mysqli_query($conn, $sql_completate); $num_completate = mysqli_num_rows($result_completate); if ($num_completate === 0) { $sql_comm_completata = "UPDATE `dati_commessa` SET `stato`='Merce pronta a magazzino' WHERE id_commessa = '" . $id_commessa . "'"; $result_comm_coimpletata = mysqli_query($conn, $sql_comm_completata); } } header("location: officina.php?updated=" . $lavtype . "&idlav=" . $id_lavorazione); } $id_lavorazione = ''; } } else { $pos_fase = strpos($scanned, "FASELAV-"); if ($pos_fase === false) { $last_operation = "<span class="text-danger">\303\x88 stato scansionato un barcode sconosciuto.</span>"; } else { switch ($scanned) { case "FASELAV-TB": $last_operation = "<span class="text-warning">\xc3\210 stato scansionato il barcode della fase: Taglio. Prima devi scansionare una Commessa.</span>"; break; case "FASELAV-PF": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase: Profili. Prima devi scansionare una Commessa.</span>"; break; case "FASELAV-CB": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase: Coibentazione. Prima devi scansionare una Commessa.</span>"; break; case "FASELAV-SA": $last_operation = "<span class="text-warning">\303\x88 stato scansionato il barcode della fase: Saldatura. Prima devi scansionare una Commessa.</span>"; break; case "FASELAV-PT": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase: Pulitura. Prima devi scansionare una Commessa.</span>"; break; case "FASELAV-AB": $last_operation = "<span class="text-warning">\303\210 stato scansionato il barcode della fase: Assemblaggio. Prima devi scansionare una Commessa.</span>"; break; default: $last_operation = "<span class="text-warning">\xc3\x88 stato scansionato il barcode di una commessa sconosciuta.</span>"; break; } } } } else { $id_lavorazione = str_replace("IDLAV-", '', $scanned); $last_operation = "<span class="text-success">Scansionato barcode commessa (ID Commessa = " . $id_lavorazione . ")</span>"; $id_commessa = $id_lavorazione; $sql_cli_mod = "SELECT cliente, modello, stato FROM dati_commessa WHERE id_commessa = '" . $id_commessa . "'"; $result_cli_mod = mysqli_query($conn, $sql_cli_mod); $num_cli_mod = mysqli_num_rows($result_cli_mod); if ($num_cli_mod === 1) { $row_cli_mod = mysqli_fetch_assoc($result_cli_mod); $string_comm = $row_cli_mod["cliente"] . " - " . $row_cli_mod["modello"]; if ($row_cli_mod["stato"] == "Merce pronta a magazzino") { $last_operation = "<span class="text-danger">Scansionato barcode commessa (ID Commessa = " . $id_lavorazione . ") - <b>ATTENZIONE:</b> La commessa \xc3\250 stata completata</span>"; } } } } goto WCPWj; X_aL1: if (!empty($id_lavorazione) && in_array($id_lavorazione, $arr_idlav)) { echo $id_lavorazione; } goto qM7Fb; i0T8u: ?> 
</tbody></table></div></div></div></div></div></div></div><script>$(document).ready(function() { 
            window.setTimeout( function() { 
            window.location.reload(); 
            }, 10000); 
 
            let barcodeinput = document.getElementById('barcode'); 
            barcode.focus(); 
        } );</script></body></html>

Did this file decode correctly?

Original Code

<?php
 goto jpI0j; U2MwM: if (empty($firstin) && !empty($id_lavorazione) && is_numeric($id_lavorazione) && !in_array($id_lavorazione, $arr_idlav)) { echo "\74\x73\160\x61\156\40\143\x6c\x61\163\x73\75\42\164\x65\170\164\x2d\x77\x61\162\x6e\151\x6e\147\x22\76\xc3\210\x20\x73\x74\141\x74\x6f\x20\163\143\141\156\163\151\x6f\156\141\164\x6f\40\151\154\40\142\x61\162\143\157\144\145\x20\x64\151\40\x75\156\141\x20\x63\157\155\x6d\x65\163\163\x61\x20\156\x6f\156\x20\x69\x6e\40\145\154\x65\x6e\143\x6f\56\x3c\57\163\160\x61\x6e\76"; } else { if (!empty($last_operation)) { echo $last_operation; } else { echo "\74\x69\76\116\x65\x73\x73\165\x6e\141\x3c\x2f\x69\76"; } } goto NKdba; FJnCw: $result_lavorazioni_giornata = mysqli_query($conn, $sql_lavorazioni_giornata); goto bR4Mc; iIDl4: if (!empty($id_lavorazione) && is_numeric($id_lavorazione) && in_array($id_lavorazione, $arr_idlav)) { echo $id_lavorazione . "\x20\55\40" . $string_comm; } else { echo "\74\151\x3e\116\x65\x73\x73\x75\x6e\141\x20\55\40\x53\143\141\156\x73\x69\157\156\141\162\x65\40\x75\x6e\141\40\103\x6f\155\x6d\x65\x73\x73\141\74\57\151\x3e"; } goto U4P5V; U4P5V: ?>
</p><p class="text-center fs-3"><b>Ultima operazione effettuata:</b><?php  goto U2MwM; qM7Fb: ?>
"></form></div></div></div><div class="row"><div class="mt-3 col-lg-12"><p class="text-center fs-3"><b>ID Commessa Selezionata:</b><?php  goto iIDl4; BqLTD: if ($num_lavorazioni_giornata > 0) { $arr_idlav = array(); while ($row_lavorazioni_giornata = mysqli_fetch_assoc($result_lavorazioni_giornata)) { array_push($arr_idlav, $row_lavorazioni_giornata["\151\144\137\x6c\141\166\x6f\162\141\172\x69\157\x6e\145"]); } } goto r0Rwf; YDAkR: $firstin = 1; goto rj1Vs; DJlOn: function uploadJsonFTP($idcommessa, $statolav) { include "\56\x2f\x61\x73\163\x65\164\163\57\x66\x75\156\143\x74\x69\x6f\156\163\x2f\x63\x6f\x6e\x66\x69\x67\x2e\160\150\160"; $sql_id_config = "\123\x45\114\x45\103\124\40\151\x64\x5f\143\157\x6e\x66\x69\x67\165\162\141\x74\x6f\x72\x65\40\x46\x52\x4f\x4d\40\144\x61\x74\151\137\x63\x6f\155\x6d\x65\x73\163\x61\40\x57\110\105\x52\x45\x20\151\x64\x5f\143\x6f\x6d\x6d\145\163\163\141\x20\x3d\x20\x27" . $idcommessa . "\x27"; $result_id_config = mysqli_query($conn, $sql_id_config); $num_id_config = mysqli_num_rows($result_id_config); if ($num_id_config === 1) { $row_id_config = mysqli_fetch_assoc($result_id_config); $id_config = $row_id_config["\x69\x64\137\x63\x6f\156\146\151\x67\x75\x72\x61\x74\157\x72\145"]; $ftp_server = "\x67\145\x73\x74\151\157\x6e\x65\56\151\164\x61\x6c\x69\x6e\146\x69\x73\x73\151\56\151\x74"; $ftp_user = "\x67\x65\163\x74\x5f\151\164\x61\x6c\x69\156\x66\x69\163\x73\x69"; $ftp_pass = "\121\x62\165\x6d\x37\x37\46\x36\x39"; $conn_id = ftp_connect($ftp_server) or die("\111\155\x70\x6f\163\163\151\x62\151\x6c\145\40\x63\157\x6e\x6e\x65\164\164\x65\162\163\151\x20\x61\40{$ftp_server}"); $login_result = ftp_login($conn_id, $ftp_user, $ftp_pass); ftp_pasv($conn_id, true) or die("\x49\x6d\x70\x6f\163\x73\x69\142\x69\154\145\x20\x70\x61\x73\x73\141\x72\x65\40\x61\154\154\141\x20\x6d\157\144\x61\x6c\151\164\303\240\40\160\141\x73\x73\x69\166\x61"); if ($login_result) { addToLog(date("\x5b\x59\x2d\x6d\55\x64\40\x48\x3a\x69\72\163\135") . "\40\x2d\x20\114\157\x67\151\156\x20\x76\151\141\x20\106\x54\120\40\x61\166\166\x65\156\x75\164\157\40\x63\157\156\x20\x73\165\143\x63\x65\x73\x73\x6f\56\40\50\165\x70\x6c\157\x61\144\112\x73\x6f\x6e\106\x54\x50\x29"); $file_to_check = "\163\x74\141\164\x6f\x6c\141\166\x2e\152\163\157\156"; $root_directory = "\57"; if (ftp_size($conn_id, $root_directory . $file_to_check) !== -1) { addToLog(date("\133\x59\x2d\155\55\144\40\x48\x3a\x69\72\163\x5d") . "\40\x2d\40\105\x27\x20\160\x72\x65\x73\x65\156\x74\145\x20\x69\x6c\40\146\151\x6c\x65\x20\x73\164\x61\164\157\154\141\x76\56\152\x73\x6f\x6e\x20\x64\141\40\x69\155\x70\157\162\164\x61\x72\x65\56"); $local_file = '' . $file_to_check; if (ftp_get($conn_id, $local_file, $root_directory . $file_to_check, FTP_BINARY)) { addToLog(date("\x5b\131\x2d\x6d\x2d\x64\x20\x48\x3a\x69\72\163\x5d") . "\40\55\40\111\154\x20\146\151\x6c\145\40\x73\x74\x61\x74\157\154\x61\166\56\x6a\x73\x6f\x6e\40\xc3\250\40\163\x74\141\x74\x6f\40\x73\143\x61\x72\x69\x63\141\x74\x6f\x20\156\x65\x6c\154\141\x20\x72\x6f\x6f\x74\x20\144\151\x20\161\x75\x65\163\x74\x6f\x20\x77\x65\142\x73\145\x72\166\x65\x72\56"); $array_status = array("\x69\x64" => $id_config, "\163\164\x61\164\x6f\154\x61\x76" => $statolav, "\x74\151\155\145\163\x74\x61\x6d\x70" => date("\x59\x2d\144\x2d\155\40\110\x3a\151", time())); $json_utente = json_encode($array_status); file_put_contents("\163\164\141\x74\157\x6c\x61\166\x2e\x6a\163\157\156", $json_utente . PHP_EOL, FILE_APPEND); } else { addToLog(date("\133\x59\x2d\x6d\x2d\144\x20\x48\72\151\72\163\135") . "\40\x2d\40\105\x52\x52\x4f\x52\105\40\55\40\40\111\x6c\x20\x66\151\x6c\x65\x20\163\x74\x61\x74\x6f\154\x61\x76\56\x6a\163\157\156\x20\116\x4f\x4e\x20\xc3\xa8\x20\x73\x74\x61\x74\157\40\163\143\x61\162\151\x63\x61\164\157\x2e"); } } else { addToLog(date("\133\x59\x2d\155\55\x64\40\x48\x3a\x69\72\x73\135") . "\x20\55\x20\x49\x6c\40\146\x69\154\145\40\x73\164\141\164\x6f\154\x61\x76\x2e\x6a\x73\x6f\156\x20\116\117\116\40\xc3\250\x20\160\x72\x65\x73\145\156\x74\145\40\x6e\145\x6c\154\141\x20\162\x6f\x6f\164\x20\x64\x65\154\40\x77\x65\142\x73\145\x72\166\x65\x72\40\x46\124\x50\x2e\x20\50\120\162\157\143\145\x64\x6f\x20\x61\154\154\141\x20\143\162\145\141\x7a\151\x6f\156\145\57\165\160\x6c\x6f\x61\144\x29"); $array_status = array("\x69\x64" => $id_config, "\x74\x69\160\157" => "\143\x61\x73\163\157\x6e\x65\164\x74\157", "\x73\x74\x61\164\157\154\141\x76" => $statolav, "\x74\x69\x6d\145\163\x74\141\155\x70" => date("\131\55\x64\x2d\x6d\x20\110\72\151", time())); $json_utente = json_encode($array_status); file_put_contents("\163\x74\141\x74\157\x6c\141\166\x2e\x6a\163\x6f\x6e", $json_utente . PHP_EOL); } if (ftp_put($conn_id, "\163\x74\x61\164\157\x6c\x61\166\x2e\x6a\163\157\156", "\163\164\141\164\x6f\154\x61\166\56\152\x73\x6f\x6e", FTP_BINARY)) { addToLog(date("\x5b\x59\55\x6d\55\144\x20\110\x3a\x69\72\x73\x5d") . "\x20\55\40\111\154\40\x66\x69\154\x65\40\x73\164\x61\164\157\154\x61\x76\56\x6a\163\157\156\40\xc3\250\x20\163\x74\x61\x74\x6f\x20\x63\x61\x72\151\143\x61\x74\157\x20\x6e\x65\x6c\154\141\x20\x72\x6f\x6f\x74\40\x64\145\154\x20\167\145\142\x73\x65\162\x76\145\x72\x20\106\x54\120\56"); } else { addToLog(date("\x5b\x59\x2d\x6d\x2d\144\x20\x48\x3a\151\72\163\135") . "\x20\55\x20\x45\122\x52\x4f\x52\x45\x20\x2d\40\x49\x6c\40\x66\x69\154\145\40\163\164\x61\164\x6f\x6c\141\x76\x2e\152\x73\157\x6e\40\x4e\117\116\x20\xc3\250\x20\163\x74\x61\x74\157\40\143\141\x72\x69\x63\141\164\157\56"); } unlink("\x73\164\x61\164\157\x6c\x61\166\56\x6a\163\157\x6e"); ftp_close($conn_id); } else { addToLog(date("\x5b\x59\55\x6d\55\144\40\110\72\151\x3a\163\x5d") . "\x20\x2d\x20\x45\x52\x52\117\x52\x45\40\55\40\114\157\147\x69\x6e\40\x76\x69\141\40\x46\x54\120\40\146\x61\x6c\154\x69\164\157\56"); } } } goto UEoir; NKdba: ?>
</p></div></div><table class="border fs-3 text-center"><thead><tr><th class="border">#</th><th class="border">ID Commessa</th><th class="border">Cliente</th><th class="border">Modello</th><th class="border">Taglio</th><th class="border">Profili</th><th class="border">Coib.ne</th><th class="border">Saldatura</th><th class="border">Pulitura</th><th class="border">Assemblaggio</th></tr></thead><tbody><?php  goto Z10Fn; rj1Vs: function addToLog($stringToAdd) { $filename = "\154\x6f\147\x2d\151\x6d\x70\x6f\162\164\56\164\x78\164"; $currentContent = file_get_contents($filename); $currentContent .= "\xa" . $stringToAdd; file_put_contents($filename, $currentContent); } goto DJlOn; vGFOg: if (!empty($_GET["\x77\x61\163\143\157\x6d\x70\154\145\x74\145\144"]) && !empty($_GET["\151\144\x6c\141\x76"])) { $updated = trim($_GET["\x77\141\x73\x63\157\155\x70\154\145\x74\145\144"]); $updated = mysqli_real_escape_string($conn, $updated); $idlav = trim($_GET["\151\144\154\x61\x76"]); $idlav = mysqli_real_escape_string($conn, $idlav); switch ($updated) { case "\x74\x61\147\x6c\151\157\x5f\142\141\x72\x72\145": $last_operation = "\74\163\160\141\x6e\x20\143\154\x61\x73\x73\75\x22\x74\x65\x78\x74\x2d\x77\x61\x72\x6e\151\x6e\147\42\x3e\xc3\210\x20\163\164\141\x74\x6f\x20\x73\x63\x61\156\x73\151\x6f\x6e\x61\x74\x6f\40\151\154\x20\142\x61\x72\143\157\144\145\x20\x64\x65\x6c\x6c\x61\x20\x66\x61\x73\145\x20\x67\x69\xc3\xa0\40\x63\157\x6d\x70\x6c\x65\x74\141\164\141\x3a\x20\124\x61\147\154\151\x6f\x20\102\x61\x72\162\145\56\40\50\x49\x44\x20\x43\157\155\x6d\145\163\163\x61\40\x3d\40" . $idlav . "\x29\74\x2f\163\160\141\x6e\76"; break; case "\160\162\157\x66\151\x6c\x69": $last_operation = "\74\x73\160\x61\x6e\40\x63\x6c\141\x73\163\x3d\42\164\x65\170\x74\x2d\167\x61\x72\156\151\156\147\42\76\xc3\x88\x20\x73\x74\141\x74\157\x20\163\x63\141\156\163\x69\x6f\156\x61\x74\x6f\40\x69\154\40\x62\x61\162\143\157\x64\145\x20\144\x65\x6c\x6c\x61\x20\146\x61\163\x65\x20\147\151\303\xa0\40\x63\157\155\x70\x6c\145\164\141\164\x61\x3a\40\120\162\157\x66\151\x6c\151\x2e\40\50\111\104\x20\103\x6f\155\x6d\x65\163\x73\141\40\75\40" . $idlav . "\x29\x3c\x2f\163\160\x61\x6e\76"; break; case "\143\157\151\142\145\x6e\x74\141\x7a\x69\x6f\156\x65": $last_operation = "\74\163\160\x61\156\x20\143\154\141\163\x73\x3d\x22\x74\145\170\x74\55\167\141\x72\156\151\x6e\147\42\76\303\210\x20\x73\164\141\x74\x6f\x20\x73\x63\141\x6e\x73\x69\157\156\141\164\x6f\x20\x69\x6c\x20\x62\141\x72\x63\x6f\144\x65\x20\144\145\x6c\154\141\x20\x66\x61\x73\x65\40\x67\x69\xc3\240\40\x63\157\155\160\154\145\164\x61\x74\x61\x3a\40\x43\157\x69\x62\145\x6e\x74\141\172\151\x6f\156\145\56\x20\x28\111\104\x20\x43\157\155\155\x65\x73\x73\x61\x20\x3d\x20" . $idlav . "\x29\74\57\163\160\141\156\76"; break; case "\163\x61\x6c\x64\x61\x74\x75\162\141": $last_operation = "\x3c\x73\160\141\156\x20\143\x6c\x61\163\163\x3d\42\x74\x65\x78\x74\55\167\x61\x72\156\x69\x6e\x67\x22\76\303\210\x20\163\164\x61\164\x6f\40\x73\x63\x61\x6e\x73\151\157\x6e\x61\x74\157\x20\151\154\40\142\x61\162\x63\x6f\144\x65\x20\144\x65\154\154\141\x20\146\x61\x73\145\x20\x67\151\303\xa0\40\x63\157\155\160\154\145\164\141\164\x61\72\40\123\141\x6c\144\x61\x74\x75\x72\x61\56\40\50\x49\x44\x20\x43\x6f\155\155\145\x73\163\x61\40\x3d\x20" . $idlav . "\51\x3c\57\163\160\141\156\76"; break; case "\x70\x75\x6c\x69\164\165\162\141": $last_operation = "\x3c\163\160\x61\156\40\143\x6c\141\163\x73\x3d\x22\164\x65\x78\x74\x2d\167\x61\x72\156\x69\156\x67\x22\76\xc3\x88\40\x73\164\x61\164\x6f\x20\x73\x63\x61\156\x73\x69\157\x6e\141\164\157\40\x69\154\40\142\x61\x72\x63\x6f\x64\x65\40\x64\x65\x6c\154\141\x20\146\x61\163\145\x20\x67\x69\xc3\xa0\x20\x63\157\x6d\x70\x6c\x65\164\141\x74\x61\72\40\120\165\x6c\151\164\165\x72\141\56\40\50\x49\x44\40\103\x6f\x6d\x6d\x65\x73\x73\x61\40\x3d\x20" . $idlav . "\x29\x3c\57\x73\x70\141\x6e\76"; break; case "\141\x73\163\145\x6d\x62\154\141\147\x67\x69\x6f": $last_operation = "\x3c\163\x70\141\156\40\x63\x6c\141\x73\163\75\42\x74\x65\170\x74\55\167\141\x72\x6e\151\156\x67\42\76\xc3\x88\x20\x73\164\x61\164\157\x20\163\x63\141\156\x73\x69\157\x6e\141\164\x6f\x20\x69\154\x20\142\141\x72\x63\157\144\145\40\144\x65\x6c\x6c\141\40\x66\x61\163\x65\x20\147\x69\303\240\x20\x63\x6f\155\160\154\x65\164\x61\x74\141\x3a\x20\101\x73\163\x65\x6d\x62\154\x61\x67\x67\x69\157\56\40\50\x49\x44\40\103\157\x6d\155\145\163\163\x61\40\75\40" . $idlav . "\x29\x3c\57\163\160\x61\x6e\76"; break; default: break; } } goto sBp0f; r0Rwf: ?>
<!doctypehtml><html lang="it"><head><meta charset="UTF-8"><meta content="IE=edge"http-equiv="X-UA-Compatible"><meta content="width=device-width,initial-scale=1"name="viewport"><link href="./favicon.ico"rel="icon"type="image/x-icon"><link href="./assets/plugins/bootstrap-5.3.0/css/bootstrap.min.css"rel="stylesheet"crossorigin="anonymous"integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"><link href="./assets/style/app.min.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/fontawesome.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/brands.css"rel="stylesheet"><link href="./assets/plugins/fontawesome-free-6.4.0/css/solid.css"rel="stylesheet"><link href="./assets/plugins/DataTables/datatables.min.css"rel="stylesheet"><link href="./assets/plugins/sweetalert2/sweetalert2.min.css"rel="stylesheet"><script src="./assets/plugins/DataTables/datatables.min.js"></script><script src="./assets/plugins/bootstrap-5.3.0/js/bootstrap.bundle.min.js"crossorigin="anonymous"integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"></script><script src="./assets/plugins/sweetalert2/sweetalert2.all.min.js"></script><title>Italinfissi - Officina</title></head><body><?php  goto QT59R; CEwKX: $num_lavorazioni_giornata = mysqli_num_rows($result_lavorazioni_giornata); goto BqLTD; jpI0j: include "\56\57\x61\x73\x73\145\164\x73\57\146\165\x6e\x63\x74\151\157\x6e\x73\x2f\143\x6f\x6e\x66\151\147\56\x70\150\160"; goto YDAkR; QtTkB: if ($num_lavorazioni_giornata > 0) { $i = 1; $tb_text = "\74\x73\x70\x61\156\40\143\154\141\163\163\75\42\x62\x61\144\147\x65\x20\142\x67\55\144\141\156\x67\145\x72\42\76\x44\x41\x20\x46\101\x52\x45\x3c\57\163\160\x61\156\x3e"; $pf_text = "\74\163\x70\141\156\40\143\154\x61\163\x73\75\42\142\141\144\x67\x65\40\142\147\x2d\x64\x61\156\147\x65\162\x22\x3e\104\x41\40\x46\101\x52\x45\74\57\163\x70\x61\x6e\x3e"; $cb_text = "\x3c\x73\160\x61\156\x20\143\154\141\163\163\x3d\x22\142\x61\144\147\145\40\142\147\55\x64\x61\156\147\x65\162\x22\76\x44\x41\x20\x46\x41\x52\105\74\x2f\163\160\x61\x6e\x3e"; $sa_text = "\x3c\x73\160\141\x6e\40\143\x6c\141\x73\x73\75\42\x62\141\144\147\145\x20\142\147\x2d\x64\141\156\x67\x65\x72\42\x3e\x44\101\x20\106\x41\122\x45\74\57\163\x70\141\x6e\76"; $pt_text = "\74\163\160\x61\156\40\143\x6c\x61\163\163\x3d\x22\142\141\x64\x67\145\40\142\147\55\144\x61\156\147\145\162\42\76\104\x41\x20\x46\x41\x52\x45\x3c\57\163\x70\x61\156\x3e"; $ab_text = "\x3c\x73\x70\141\156\x20\143\154\x61\x73\163\75\x22\142\x61\x64\147\x65\40\x62\x67\55\x64\141\x6e\147\x65\162\42\76\104\101\x20\x46\101\x52\105\x3c\x2f\163\160\141\x6e\76"; while ($row_lavorazioni_giornata = mysqli_fetch_assoc($result_lavorazioni_giornata)) { $sql_dati_lav = "\x53\105\114\105\103\x54\x20\x2a\x20\x46\x52\x4f\x4d\40\x64\141\x74\151\137\143\x6f\x6d\155\145\163\x73\x61\x20\127\x48\x45\122\x45\40\x69\144\137\143\x6f\x6d\155\x65\x73\x73\141\x20\75\40\x27" . $row_lavorazioni_giornata["\x69\144\x5f\154\x61\166\x6f\x72\141\172\x69\x6f\x6e\145"] . "\47"; $result_dati_lav = mysqli_query($conn, $sql_dati_lav); $num_dati_lav = mysqli_num_rows($result_dati_lav); if ($num_dati_lav > 0) { $row_dati_lav = mysqli_fetch_assoc($result_dati_lav); if ($row_dati_lav["\x73\x74\141\x74\157\x6c\x61\x76\x6f\x72\x61\x7a\151\x6f\x6e\145"] === "\x4c\x61\166\x6f\162\141\172\151\157\x6e\145\40\x43\x6f\155\x70\154\x65\x74\141\x74\141" && time() - 86400 > strtotime($row_dati_lav["\164\151\x6d\x65\163\164\141\x6d\160"])) { $sql_update_lav_complete = "\x55\x50\104\101\x54\105\x20\154\141\166\x6f\162\x61\172\151\x6f\x6e\x69\137\147\151\x6f\x72\156\141\164\141\x20\x53\105\124\40\x65\x6c\x69\x6d\151\156\141\x74\x6f\x20\x3d\40\x27\x31\x27\x20\127\110\x45\x52\105\x20\151\x64\137\x6c\141\166\157\162\141\172\151\x6f\x6e\x65\x20\x3d\40\x27" . $row_lavorazioni_giornata["\x69\x64\x5f\x6c\141\166\157\x72\x61\x7a\x69\157\x6e\x65"] . "\47"; $result_update_lav_complete = mysqli_query($conn, $sql_update_lav_complete); continue; } $sql_dati_comm = "\x53\x45\114\x45\x43\124\40\x69\x64\137\143\157\x6d\x6d\145\163\163\141\x2c\x20\143\x6c\151\x65\x6e\164\x65\54\x20\155\157\144\x65\154\154\x6f\40\106\x52\x4f\x4d\40\x64\141\x74\x69\137\143\157\155\x6d\145\163\x73\141\x20\127\x48\105\122\x45\x20\x69\x64\x5f\x63\157\155\x6d\145\163\163\141\40\x3d\x20\47" . $row_dati_lav["\x69\144\x5f\x63\157\x6d\155\x65\x73\163\141"] . "\47"; $result_dati_comm = mysqli_query($conn, $sql_dati_comm); $num_dati_comm = mysqli_num_rows($result_dati_comm); if ($num_dati_comm === 1) { $row_dati_comm = mysqli_fetch_assoc($result_dati_comm); $sql_stato_lav = "\x53\105\114\x45\103\124\x20\52\x20\106\x52\x4f\x4d\40\x73\x74\141\x74\x6f\137\154\x61\x76\x6f\162\141\x7a\x69\157\x6e\151\x20\127\110\105\122\x45\40\x69\x64\137\154\x61\166\x6f\x72\x61\172\x69\157\156\x65\40\x3d\x20\x27" . $row_dati_lav["\151\x64\x5f\x63\x6f\155\155\x65\x73\163\141"] . "\x27"; $result_stato_lav = mysqli_query($conn, $sql_stato_lav); $num_stato_lav = mysqli_num_rows($result_stato_lav); if ($num_stato_lav === 0) { $sql_insert_statolav = "\111\116\123\x45\x52\124\x20\x49\116\124\117\40\x60\163\164\141\x74\x6f\x5f\154\x61\x76\x6f\x72\x61\x7a\151\x6f\156\151\140\50\140\151\144\137\154\x61\166\157\x72\x61\x7a\x69\x6f\x6e\145\x60\51\40\x56\101\114\125\105\x53\40\50\47" . $row_dati_lav["\x69\x64\137\143\157\155\x6d\x65\x73\163\141"] . "\47\51"; $result_insert_statolav = mysqli_query($conn, $sql_insert_statolav); } else { $row_stato_lav = mysqli_fetch_assoc($result_stato_lav); switch ($row_stato_lav["\164\x61\x67\154\151\157\x5f\x62\141\x72\162\145"]) { case "\x31": $tb_text = "\x3c\x73\160\141\156\x20\143\154\141\163\x73\x3d\x22\x62\x61\x64\x67\145\x20\x62\x67\x2d\x77\x61\x72\156\151\x6e\x67\x22\76\x49\116\x20\103\117\x52\123\x4f\74\57\163\x70\141\156\76"; break; case "\62": $tb_text = "\x3c\163\x70\x61\x6e\x20\x63\154\x61\163\x73\x3d\x22\142\141\x64\147\x65\x20\142\x67\x2d\x73\x75\x63\143\x65\x73\163\x22\76\106\x41\x54\124\117\74\57\x73\x70\141\156\x3e"; break; default: $tb_text = "\74\163\160\x61\x6e\40\x63\x6c\x61\163\163\x3d\x22\x62\x61\x64\x67\x65\40\142\x67\x2d\144\x61\156\147\145\x72\x22\76\104\x41\40\106\x41\122\x45\x3c\x2f\163\160\x61\156\x3e"; break; } switch ($row_stato_lav["\160\162\157\146\151\x6c\151"]) { case "\61": $pf_text = "\x3c\x73\160\x61\156\x20\143\x6c\x61\163\x73\x3d\x22\x62\x61\x64\x67\x65\40\x62\x67\x2d\x77\141\x72\156\151\x6e\147\42\76\111\x4e\40\103\x4f\122\x53\x4f\74\57\x73\x70\x61\156\76"; break; case "\x32": $pf_text = "\74\163\160\141\156\40\143\x6c\x61\x73\163\75\42\142\x61\144\x67\145\40\142\x67\x2d\x73\x75\x63\143\145\163\163\x22\x3e\106\x41\124\124\117\x3c\x2f\x73\x70\141\x6e\x3e"; break; default: $pf_text = "\74\163\x70\141\156\x20\x63\154\141\163\x73\75\x22\142\141\144\x67\x65\40\x62\147\x2d\144\x61\156\147\x65\x72\x22\76\x44\x41\40\106\101\x52\x45\x3c\x2f\163\160\x61\156\x3e"; break; } switch ($row_stato_lav["\143\x6f\x69\142\x65\156\164\x61\172\x69\x6f\156\145"]) { case "\61": $cb_text = "\x3c\x73\x70\141\x6e\x20\143\154\141\x73\163\75\x22\142\141\x64\x67\x65\x20\142\x67\55\167\141\x72\x6e\151\156\x67\42\76\111\x4e\40\x43\x4f\x52\123\x4f\74\57\163\x70\141\x6e\x3e"; break; case "\x32": $cb_text = "\x3c\163\x70\141\x6e\x20\x63\154\x61\163\163\x3d\42\x62\x61\144\x67\145\40\x62\147\x2d\x73\165\x63\x63\x65\x73\x73\x22\x3e\x46\x41\124\124\x4f\x3c\57\163\x70\x61\156\x3e"; break; default: $cb_text = "\74\163\160\x61\156\x20\x63\x6c\x61\163\x73\x3d\x22\x62\141\x64\147\145\40\142\x67\55\144\141\156\147\x65\x72\42\76\104\101\x20\x46\x41\x52\105\x3c\x2f\x73\x70\141\156\76"; break; } switch ($row_stato_lav["\x73\141\154\144\141\164\165\162\141"]) { case "\61": $sa_text = "\74\163\160\x61\156\x20\143\x6c\141\163\x73\x3d\42\142\141\x64\147\x65\x20\142\x67\x2d\x77\141\162\156\x69\x6e\147\x22\x3e\111\x4e\40\103\x4f\x52\123\117\x3c\57\x73\x70\141\156\x3e"; break; case "\62": $sa_text = "\x3c\x73\x70\141\x6e\x20\143\x6c\x61\x73\x73\75\42\x62\141\x64\147\x65\x20\x62\x67\55\x73\x75\x63\x63\x65\163\163\x22\76\x46\x41\124\x54\x4f\74\x2f\x73\160\x61\x6e\x3e"; break; default: $sa_text = "\x3c\163\160\x61\156\x20\x63\154\141\163\163\x3d\42\x62\x61\x64\147\x65\40\142\147\x2d\x64\141\156\147\145\x72\42\x3e\104\101\40\106\101\x52\x45\x3c\57\x73\160\x61\x6e\x3e"; break; } switch ($row_stato_lav["\x70\165\x6c\x69\164\x75\162\141"]) { case "\x31": $pt_text = "\x3c\163\160\x61\x6e\x20\x63\x6c\x61\163\x73\75\42\142\x61\x64\147\145\40\x62\147\55\167\x61\162\156\151\x6e\147\x22\76\111\x4e\x20\x43\x4f\122\123\x4f\74\57\x73\160\141\156\76"; break; case "\62": $pt_text = "\x3c\163\160\141\156\x20\x63\154\x61\x73\x73\x3d\42\142\x61\144\x67\145\40\x62\147\x2d\163\165\x63\143\x65\x73\163\x22\x3e\106\101\x54\x54\x4f\x3c\x2f\163\x70\x61\x6e\76"; break; default: $pt_text = "\74\x73\160\x61\x6e\x20\143\x6c\141\x73\163\x3d\42\x62\141\144\147\145\x20\142\x67\55\144\141\x6e\147\x65\162\42\76\x44\101\40\x46\x41\122\x45\74\57\163\x70\x61\156\76"; break; } switch ($row_stato_lav["\x61\x73\163\x65\x6d\x62\154\141\x67\x67\x69\157"]) { case "\x31": $ab_text = "\x3c\163\160\x61\x6e\40\143\154\x61\x73\x73\75\42\x62\141\144\x67\145\x20\142\x67\x2d\x77\x61\162\156\x69\156\147\42\x3e\111\116\x20\103\117\122\123\x4f\x3c\57\163\160\x61\156\76"; break; case "\x32": $ab_text = "\74\163\x70\x61\x6e\x20\x63\154\x61\x73\x73\75\42\x62\x61\x64\x67\x65\40\x62\x67\x2d\163\x75\x63\x63\145\x73\x73\42\76\106\101\x54\x54\117\74\57\163\x70\x61\156\x3e"; break; default: $ab_text = "\74\x73\x70\141\x6e\x20\x63\154\141\x73\x73\x3d\x22\x62\141\x64\147\145\40\142\x67\55\144\x61\156\147\145\162\42\76\104\101\x20\x46\101\122\105\x3c\x2f\x73\x70\x61\156\x3e"; break; } } echo "\x3c\164\x72\40\151\x64\x3d\42\x72\151\147\141\55\x22" . $row_dati_lav["\151\x64\137\x63\157\155\x6d\145\163\163\141"] . "\76"; echo "\x3c\x74\144\40\143\154\141\x73\x73\x3d\x22\142\157\162\144\x65\162\40\160\55\x33\x22\x3e" . $i . "\x3c\x2f\x74\x64\x3e"; echo "\x3c\164\x64\40\x63\x6c\141\163\x73\x3d\42\142\157\162\x64\145\162\x20\160\55\63\x22\76" . $row_dati_lav["\x69\x64\x5f\x63\x6f\x6d\155\145\163\163\x61"] . "\74\57\164\x64\x3e"; echo "\x3c\164\x64\40\x63\154\141\x73\x73\75\42\142\157\x72\x64\145\x72\40\x70\55\63\x22\76" . $row_dati_comm["\x63\x6c\151\145\x6e\x74\x65"] . "\x3c\57\x74\144\x3e"; echo "\74\x74\144\x20\143\154\141\163\x73\x3d\x22\142\x6f\x72\144\145\x72\40\x70\55\63\42\76" . $row_dati_comm["\x6d\x6f\144\145\x6c\154\157"] . "\x3c\x2f\x74\144\76"; echo "\x3c\x74\x64\x20\143\x6c\x61\x73\x73\x3d\x22\x62\157\x72\x64\145\162\x20\160\x2d\x33\42\x3e" . $tb_text . "\x3c\x2f\x74\x64\x3e"; echo "\74\x74\144\x20\143\154\141\163\163\x3d\42\x62\x6f\162\x64\x65\x72\40\x70\x2d\63\x22\76" . $pf_text . "\74\57\x74\x64\76"; echo "\74\164\x64\x20\x63\154\x61\x73\x73\75\42\142\x6f\x72\x64\145\x72\x20\x70\55\63\42\x3e" . $cb_text . "\x3c\x2f\164\144\76"; echo "\x3c\164\144\x20\143\x6c\x61\163\163\75\42\x62\157\162\x64\x65\x72\40\160\55\x33\x22\x3e" . $sa_text . "\x3c\57\x74\x64\76"; echo "\74\x74\144\40\143\154\x61\x73\163\75\42\x62\157\x72\x64\145\x72\x20\160\x2d\x33\42\76" . $pt_text . "\74\57\x74\x64\x3e"; echo "\74\x74\144\40\x63\x6c\141\163\163\x3d\42\x62\x6f\x72\x64\145\x72\40\160\55\x33\x22\x3e" . $ab_text . "\74\x2f\x74\x64\76"; echo "\x3c\x2f\164\x72\76"; $i++; } } } } else { echo "\x3c\x74\x72\76\74\164\x64\x20\143\x6c\141\163\x73\x3d\42\142\157\x72\x64\x65\x72\40\160\55\63\x22\40\x63\157\x6c\163\x70\x61\x6e\x3d\42\61\x30\x22\76\116\157\x6e\40\143\x69\40\163\x6f\x6e\x6f\x20\x6c\x61\x76\x6f\162\141\172\x69\157\x6e\x69\40\x64\141\x20\x65\163\x65\147\165\x69\x72\x65\56\x3c\x2f\164\144\76\74\x74\162\76"; } goto i0T8u; WCPWj: if (!empty($_GET["\165\160\144\141\164\145\144"]) && !empty($_GET["\x69\x64\154\x61\166"])) { $updated = trim($_GET["\165\160\144\141\x74\145\144"]); $updated = mysqli_real_escape_string($conn, $updated); $idlav = trim($_GET["\151\144\x6c\141\x76"]); $idlav = mysqli_real_escape_string($conn, $idlav); switch ($updated) { case "\164\x61\147\154\151\x6f\137\142\x61\162\x72\145": $last_operation = "\x3c\x73\160\x61\x6e\x20\x63\154\141\x73\163\x3d\42\x74\x65\170\x74\x2d\163\x75\x63\143\x65\163\x73\x22\x3e\106\141\163\x65\40\x41\x67\147\x69\x6f\162\156\x61\164\141\x3a\x20\124\141\x67\154\x69\x6f\56\x20\x28\x49\x44\x20\x43\157\x6d\155\x65\163\x73\x61\40\75\40" . $idlav . "\x29\x3c\57\163\x70\x61\156\76"; break; case "\160\162\x6f\x66\151\154\x69": $last_operation = "\74\163\x70\x61\x6e\x20\x63\154\141\163\x73\75\x22\164\145\170\164\55\x73\x75\143\x63\145\x73\x73\x22\x3e\x46\141\x73\145\x20\x41\x67\147\151\x6f\162\x6e\141\164\x61\72\40\120\x72\157\x66\151\x6c\x69\x2e\x20\x28\x49\x44\40\103\157\155\155\145\163\x73\141\x20\75\40" . $idlav . "\x29\x3c\x2f\x73\160\141\156\x3e"; break; case "\x63\157\151\142\x65\156\164\141\x7a\151\157\x6e\x65": $last_operation = "\x3c\x73\160\x61\x6e\40\x63\154\141\163\x73\75\x22\164\145\x78\164\x2d\163\165\x63\143\145\163\163\42\x3e\106\x61\163\145\x20\101\x67\x67\x69\157\x72\x6e\x61\x74\141\72\40\103\157\x69\142\145\x6e\164\141\x7a\151\157\156\145\x2e\x20\50\x49\104\40\x43\157\155\155\x65\163\x73\141\40\75\x20" . $idlav . "\x29\74\57\x73\160\141\156\x3e"; break; case "\163\x61\x6c\x64\141\164\x75\x72\141": $last_operation = "\74\163\x70\x61\x6e\40\x63\x6c\x61\x73\163\75\42\x74\145\170\x74\x2d\x73\x75\x63\x63\145\163\163\x22\x3e\106\x61\163\145\40\101\x67\x67\151\157\162\x6e\141\164\141\x3a\40\123\x61\x6c\x64\141\164\165\x72\141\56\40\x28\x49\104\x20\x43\157\155\x6d\x65\163\x73\x61\x20\x3d\x20" . $idlav . "\51\x3c\57\163\x70\x61\x6e\x3e"; break; case "\160\165\154\x69\164\165\162\x61": $last_operation = "\x3c\x73\160\x61\156\40\x63\154\141\x73\163\75\x22\x74\145\170\x74\x2d\x73\165\x63\x63\x65\163\x73\42\x3e\106\x61\163\145\x20\101\x67\x67\151\157\x72\x6e\141\164\x61\72\x20\120\165\x6c\151\x74\165\162\141\x2e\x20\50\x49\104\40\x43\157\155\155\x65\x73\163\141\x20\75\x20" . $idlav . "\x29\74\x2f\x73\160\141\156\x3e"; break; case "\141\x73\163\x65\155\142\x6c\141\147\147\151\157": $last_operation = "\x3c\x73\x70\x61\156\40\x63\x6c\x61\x73\163\x3d\42\x74\x65\x78\164\55\163\x75\x63\x63\145\163\163\42\x3e\x46\141\163\x65\40\x41\147\147\x69\157\162\156\141\164\141\x3a\x20\101\x73\163\145\155\142\x6c\x61\147\147\151\x6f\56\x20\50\111\x44\40\x43\x6f\155\155\145\x73\163\x61\x20\x3d\x20" . $idlav . "\x29\74\x2f\x73\x70\x61\x6e\x3e"; break; default: break; } } goto vGFOg; Z10Fn: $sql_lavorazioni_giornata = "\123\105\114\x45\103\124\40\x2a\40\106\122\117\x4d\x20\x6c\141\x76\x6f\162\141\x7a\x69\x6f\x6e\151\x5f\147\x69\157\x72\156\x61\164\x61\40\x57\x48\x45\122\x45\x20\145\x6c\x69\155\x69\x6e\x61\164\157\40\x49\x53\40\x4e\125\114\114\x20\117\x52\x44\x45\x52\40\102\x59\40\x70\157\x73\x69\172\151\157\x6e\145"; goto FJnCw; QT59R: ?>
<div class="container-fluid"><div class="row"><div class="mt-3 col-lg-12"><div class="card"><div class="card-header"><a aria-controls="collapse-1"aria-expanded="true"class="d-block"data-bs-toggle="collapse"href="#collapse-1"id="heading-1"><i class="fa-caret-down fa-solid"></i> Lavorazioni</a></div><div class="collapse show"aria-labelledby="heading1"id="collapse-1"><div class="card-body"><div class="row table-responsive"><div class="text-center container"><div class="row justify-content-md-center"><div class="mt-3 col-6"><form action="officina.php"method="post"><input name="barcode"class="form-control"id="barcode"placeholder="In attesa del barcode..."> <input name="idlavorazione"type="hidden"value="<?php  goto X_aL1; sBp0f: $sql_lavorazioni_giornata = "\123\x45\x4c\x45\103\x54\x20\151\x64\x5f\154\141\166\x6f\x72\141\172\151\x6f\x6e\145\x20\x46\x52\117\115\x20\x6c\x61\166\157\162\141\x7a\x69\x6f\x6e\151\137\x67\151\157\162\x6e\x61\164\141\40\x57\x48\x45\122\105\x20\x65\x6c\x69\155\151\x6e\141\x74\157\40\111\x53\x20\x4e\125\114\x4c\40\x4f\x52\104\x45\122\40\102\131\40\160\157\163\151\172\151\x6f\x6e\x65"; goto fduWI; bR4Mc: $num_lavorazioni_giornata = mysqli_num_rows($result_lavorazioni_giornata); goto QtTkB; fduWI: $result_lavorazioni_giornata = mysqli_query($conn, $sql_lavorazioni_giornata); goto CEwKX; UEoir: if (!empty($_POST["\x62\x61\162\x63\x6f\x64\145"])) { $firstin = ''; $scanned = trim($_POST["\142\141\x72\143\157\x64\x65"]); $scanned = mysqli_real_escape_string($conn, $scanned); $pos_idlav = strpos($scanned, "\111\x44\x4c\x41\126\55"); if ($pos_idlav === false) { if (!empty($_POST["\x69\144\x6c\x61\166\157\x72\x61\x7a\x69\x6f\156\145"]) && is_numeric($_POST["\151\x64\154\141\166\x6f\162\x61\x7a\151\157\x6e\145"])) { $id_lavorazione = trim($_POST["\151\x64\x6c\141\166\x6f\162\x61\x7a\x69\157\x6e\x65"]); $id_lavorazione = mysqli_real_escape_string($conn, $id_lavorazione); $pos_fase = strpos($scanned, "\106\101\x53\105\x4c\101\126\55"); if ($pos_fase === false) { $last_operation = "\74\163\160\x61\156\x20\x63\x6c\141\x73\x73\75\42\164\x65\170\x74\x2d\144\141\156\147\x65\x72\42\x3e\xc3\x88\40\163\164\x61\164\157\x20\x73\x63\141\x6e\x73\x69\157\156\x61\x74\157\x20\x75\x6e\x20\142\x61\x72\143\x6f\x64\x65\40\163\143\x6f\x6e\157\163\x63\x69\x75\x74\157\x2e\74\57\163\x70\x61\x6e\x3e"; } else { $faselav = str_replace("\x46\x41\123\105\114\101\x56\x2d", '', $scanned); switch ($faselav) { case "\124\x42": $lavtype = "\x74\x61\x67\154\x69\157\x5f\x62\x61\x72\x72\145"; $status = "\124\141\147\x6c\x69\x6f"; break; case "\x50\106": $lavtype = "\160\162\x6f\x66\x69\x6c\151"; $status = "\120\x72\157\146\151\154\x69"; break; case "\x43\102": $lavtype = "\143\x6f\151\x62\145\156\x74\x61\172\151\157\156\x65"; $status = "\x43\157\151\x62\145\156\x74\141\172\x69\157\x6e\x65"; break; case "\123\101": $lavtype = "\163\141\154\x64\141\164\x75\162\141"; $status = "\123\141\x6c\x64\141\x74\165\x72\141"; break; case "\x50\x54": $lavtype = "\160\x75\154\151\164\x75\162\x61"; $status = "\x50\x75\154\151\x74\165\x72\x61"; break; case "\101\102": $lavtype = "\x61\163\163\145\155\142\x6c\x61\147\x67\x69\157"; $status = "\101\163\x73\145\155\142\x6c\x61\x67\x67\x69\x6f"; break; default: $lavtype = ''; $last_operation = "\x3c\163\160\141\x6e\40\x63\154\x61\x73\x73\x3d\x22\164\x65\170\164\55\167\x61\x72\x6e\151\x6e\147\x22\x3e\xc3\x88\x20\x73\x74\141\x74\157\x20\x73\x63\141\156\163\151\x6f\x6e\x61\x74\157\x20\x69\x6c\40\142\x61\162\x63\157\144\145\x20\144\x69\x20\x75\x6e\x61\x20\154\x61\x76\x6f\x72\x61\x7a\x69\x6f\156\145\x20\x73\143\x6f\156\157\163\x63\151\165\x74\x61\x2e\74\57\x73\160\x61\156\x3e"; break; } if (!empty($lavtype)) { $sql_stato_fase = "\123\105\114\105\103\124\x20\x60" . $lavtype . "\x60\x20\106\x52\x4f\115\x20\140\163\x74\141\x74\157\x5f\x6c\141\x76\157\162\x61\172\151\x6f\x6e\x69\x60\40\127\x48\105\122\x45\x20\151\x64\137\154\x61\166\x6f\x72\x61\172\151\x6f\156\x65\40\75\x20\x27" . $id_lavorazione . "\47"; $result_stato_fase = mysqli_query($conn, $sql_stato_fase); $row_stato_fase = mysqli_fetch_assoc($result_stato_fase); $id_commessa = $id_lavorazione; switch ($row_stato_fase[$lavtype]) { case 1: $sql_update_fase = "\125\120\x44\x41\x54\105\40\x60\163\164\141\x74\157\x5f\x6c\x61\x76\x6f\x72\141\x7a\x69\x6f\x6e\x69\140\x20\x53\x45\124\x20\x60{$lavtype}\140\x20\75\x20\47\x32\x27\x20\x57\x48\x45\122\105\x20\x69\144\137\x6c\x61\x76\157\162\141\172\x69\x6f\156\145\40\75\40\47" . $id_lavorazione . "\47"; $sql_update_lav = "\125\x50\x44\101\x54\x45\40\x60\144\x61\x74\151\x5f\143\157\x6d\x6d\x65\163\x73\141\x60\x20\123\105\124\x20\x60\163\x74\141\x74\x6f\154\x61\x76\x6f\x72\x61\172\151\x6f\156\145\140\x3d\x27" . $status . "\40\55\40\124\145\x72\x6d\151\156\x61\x74\x61\47\x20\x57\110\105\x52\105\40\x69\144\x5f\143\x6f\155\x6d\x65\x73\x73\141\x20\75\40\x27" . $id_lavorazione . "\47"; break; case 2: header("\x6c\x6f\143\x61\164\151\157\x6e\x3a\40\157\x66\x66\151\143\151\156\x61\x2e\x70\150\x70\x3f\167\141\163\143\x6f\x6d\160\x6c\145\x74\145\144\75" . $lavtype . "\46\151\x64\154\141\x76\x3d" . $id_lavorazione); break; default: $sql_update_fase = "\x55\120\x44\101\x54\105\40\140\x73\x74\141\x74\x6f\137\x6c\141\x76\x6f\162\141\x7a\x69\157\x6e\x69\x60\40\123\x45\124\x20\140{$lavtype}\x60\x20\x3d\x20\x27\x31\x27\40\x57\110\x45\x52\x45\40\151\x64\137\154\141\x76\x6f\162\141\172\151\x6f\156\x65\40\x3d\x20\x27" . $id_lavorazione . "\47"; $sql_update_lav = "\x55\120\x44\x41\x54\105\40\140\x64\141\164\151\137\143\x6f\155\155\x65\163\x73\x61\140\x20\123\105\124\x20\x60\163\x74\141\x74\157\x6c\x61\x76\x6f\x72\x61\172\x69\x6f\156\x65\x60\x3d\47" . $status . "\40\55\40\x49\x6e\x20\103\x6f\162\163\157\47\x20\x57\x48\x45\122\105\40\x69\144\x5f\143\x6f\155\155\x65\163\163\x61\40\75\x20\47" . $id_lavorazione . "\47"; $sql_update_commessa = "\x55\x50\x44\101\x54\105\40\x60\x64\141\x74\x69\x5f\143\157\x6d\x6d\x65\x73\163\141\x60\x20\x53\105\124\x20\x60\x73\164\141\x74\157\140\x3d\x27\111\156\x20\x4c\x61\166\x6f\x72\141\x7a\151\157\156\145\47\40\127\x48\x45\x52\105\40\x69\144\x5f\143\157\x6d\155\x65\163\x73\x61\40\75\x20\47" . $id_commessa . "\47"; $result_update_commessa = mysqli_query($conn, $sql_update_commessa); break; } $result_update_fase = mysqli_query($conn, $sql_update_fase); $result_update_lav = mysqli_query($conn, $sql_update_lav); $sql_verify_complete = "\123\x45\x4c\105\103\x54\x20\x2a\x20\106\122\117\115\x20\163\x74\x61\164\x6f\137\154\x61\x76\157\x72\141\x7a\151\x6f\x6e\x69\40\x57\110\x45\122\x45\40\151\x64\137\x6c\x61\x76\x6f\162\141\172\x69\x6f\x6e\x65\x20\x3d\x20\47" . $id_lavorazione . "\x27\40\x41\x4e\x44\x20\x74\141\x67\154\151\x6f\137\x62\x61\x72\162\x65\40\x3d\40\47\62\47\40\x41\116\x44\x20\160\x72\157\x66\x69\x6c\x69\x20\x3d\x20\47\62\x27\x20\x41\x4e\104\40\143\157\151\142\x65\x6e\164\141\x7a\x69\157\x6e\x65\40\x3d\40\47\62\47\40\x41\116\104\40\163\x61\154\x64\141\x74\x75\x72\x61\40\75\40\x27\x32\47\x20\101\x4e\x44\40\x70\165\154\x69\x74\165\162\x61\40\x3d\x20\x27\x32\47\40\x41\x4e\104\x20\x61\x73\x73\145\x6d\x62\x6c\x61\147\x67\151\x6f\x20\75\x20\47\x32\47"; $result_verify_complete = mysqli_query($conn, $sql_verify_complete); $num_verify_complete = mysqli_num_rows($result_verify_complete); if ($num_verify_complete === 1) { $sql_lav_completata = "\x55\120\104\x41\x54\x45\40\x60\144\x61\164\x69\137\143\x6f\x6d\x6d\x65\x73\163\141\x60\x20\123\105\x54\x20\140\x73\x74\x61\x74\x6f\x6c\141\x76\x6f\162\x61\x7a\151\157\x6e\145\140\x3d\x27\114\x61\x76\x6f\162\141\x7a\151\x6f\156\145\40\103\x6f\x6d\x70\x6c\145\x74\x61\x74\x61\47\x20\127\110\x45\x52\105\40\x69\144\x5f\143\157\x6d\155\145\x73\x73\141\40\75\40\47" . $id_lavorazione . "\x27"; $result_lav_completata = mysqli_query($conn, $sql_lav_completata); uploadJsonFTP($id_lavorazione, 2); $sql_completate = "\x53\105\x4c\105\103\124\40\52\x20\x46\x52\x4f\x4d\40\144\141\164\x69\x5f\x63\x6f\155\x6d\x65\163\163\x61\x20\x57\110\x45\122\x45\40\151\x64\x5f\x63\x6f\x6d\155\145\163\163\141\x20\x3d\40\x27" . $id_commessa . "\47\x20\101\116\104\40\x73\x74\x61\164\x6f\x6c\141\166\x6f\162\141\x7a\151\x6f\156\x65\40\74\76\x20\47\x4c\x61\166\x6f\x72\141\x7a\151\157\156\x65\x20\x43\x6f\155\160\154\145\x74\141\x74\141\x27"; $result_completate = mysqli_query($conn, $sql_completate); $num_completate = mysqli_num_rows($result_completate); if ($num_completate === 0) { $sql_comm_completata = "\125\120\x44\x41\x54\x45\x20\140\x64\141\x74\151\137\143\157\155\155\145\163\163\x61\x60\x20\x53\x45\124\40\140\163\164\141\x74\157\140\x3d\x27\x4d\x65\162\x63\145\40\160\x72\157\x6e\x74\x61\x20\x61\x20\x6d\x61\x67\x61\172\x7a\x69\x6e\x6f\47\40\x57\110\x45\122\x45\40\x69\144\137\143\x6f\155\155\145\163\x73\141\40\x3d\40\47" . $id_commessa . "\47"; $result_comm_coimpletata = mysqli_query($conn, $sql_comm_completata); } } header("\154\x6f\x63\x61\x74\x69\x6f\156\x3a\x20\157\x66\x66\x69\143\x69\156\x61\x2e\x70\150\160\77\x75\160\x64\141\164\x65\144\75" . $lavtype . "\46\151\144\x6c\141\x76\75" . $id_lavorazione); } $id_lavorazione = ''; } } else { $pos_fase = strpos($scanned, "\106\101\x53\x45\114\x41\126\x2d"); if ($pos_fase === false) { $last_operation = "\x3c\163\160\x61\156\40\143\x6c\141\163\x73\x3d\x22\x74\x65\x78\x74\55\144\141\156\147\145\162\x22\x3e\303\x88\x20\x73\164\141\164\157\x20\x73\x63\x61\156\x73\x69\x6f\x6e\141\x74\157\x20\165\x6e\x20\142\x61\162\x63\157\144\x65\x20\x73\x63\157\x6e\157\x73\143\x69\165\x74\x6f\x2e\74\57\x73\160\x61\x6e\76"; } else { switch ($scanned) { case "\x46\x41\123\x45\x4c\x41\126\x2d\x54\102": $last_operation = "\x3c\163\160\x61\156\40\143\154\141\163\x73\x3d\x22\x74\x65\x78\x74\55\x77\x61\162\x6e\151\x6e\147\x22\x3e\xc3\210\40\163\164\141\164\x6f\40\163\x63\x61\x6e\x73\x69\157\x6e\141\x74\x6f\x20\151\x6c\x20\142\x61\x72\x63\x6f\144\x65\40\144\145\x6c\x6c\141\40\146\141\x73\x65\72\x20\x54\141\147\154\x69\157\56\40\x50\162\151\x6d\x61\40\x64\x65\166\151\x20\163\x63\x61\x6e\163\x69\x6f\156\x61\x72\145\x20\x75\x6e\141\x20\103\x6f\x6d\x6d\x65\x73\163\x61\x2e\x3c\x2f\x73\160\x61\156\76"; break; case "\x46\101\x53\105\x4c\101\126\55\120\106": $last_operation = "\x3c\163\x70\141\156\x20\143\154\x61\163\163\75\x22\x74\145\x78\164\55\167\141\162\156\x69\156\x67\42\76\303\210\40\x73\x74\x61\164\x6f\40\x73\x63\141\156\x73\151\x6f\156\141\164\157\40\x69\154\x20\x62\141\162\x63\x6f\x64\x65\x20\144\145\154\x6c\x61\x20\x66\141\x73\145\x3a\x20\x50\x72\x6f\x66\x69\x6c\151\56\x20\120\x72\x69\x6d\x61\40\144\145\x76\x69\x20\163\x63\141\x6e\163\151\x6f\156\141\162\145\40\x75\x6e\141\x20\x43\157\x6d\155\145\x73\x73\141\56\x3c\x2f\x73\160\x61\156\x3e"; break; case "\106\101\x53\x45\x4c\x41\126\x2d\103\102": $last_operation = "\74\x73\x70\141\156\40\143\x6c\141\x73\163\75\42\x74\145\x78\x74\55\x77\x61\x72\156\x69\x6e\147\x22\76\303\210\40\163\x74\x61\x74\157\x20\x73\x63\x61\x6e\163\151\x6f\x6e\x61\x74\157\x20\x69\x6c\x20\142\141\162\x63\157\144\145\x20\144\x65\x6c\x6c\x61\x20\146\x61\163\145\72\40\103\157\x69\142\x65\156\164\x61\172\151\x6f\x6e\x65\56\40\120\x72\151\x6d\x61\x20\x64\145\x76\x69\x20\x73\143\x61\x6e\x73\x69\x6f\156\x61\162\x65\40\165\156\141\40\x43\x6f\x6d\155\145\163\163\x61\56\x3c\x2f\163\x70\x61\x6e\x3e"; break; case "\106\x41\123\105\x4c\x41\126\x2d\123\x41": $last_operation = "\x3c\163\160\x61\x6e\40\143\x6c\x61\x73\x73\75\42\164\x65\170\164\x2d\x77\x61\162\156\151\x6e\147\42\76\303\x88\40\163\164\141\x74\157\40\163\x63\141\x6e\163\x69\x6f\156\x61\164\157\40\x69\x6c\x20\x62\141\162\143\x6f\144\145\40\x64\x65\x6c\154\x61\40\x66\141\163\x65\72\x20\123\141\x6c\x64\141\x74\x75\x72\141\56\x20\120\x72\x69\x6d\141\40\144\x65\166\x69\40\x73\143\141\156\x73\151\x6f\156\x61\x72\145\40\x75\x6e\x61\x20\x43\157\155\x6d\x65\x73\163\141\56\74\57\x73\160\x61\x6e\x3e"; break; case "\x46\x41\x53\105\x4c\x41\x56\x2d\x50\124": $last_operation = "\x3c\163\160\x61\x6e\40\143\x6c\x61\x73\163\x3d\x22\x74\x65\x78\164\55\x77\141\162\156\x69\x6e\147\x22\x3e\303\210\x20\163\164\x61\164\x6f\40\163\x63\x61\x6e\x73\151\x6f\156\141\164\157\x20\151\x6c\x20\x62\x61\162\x63\x6f\x64\145\x20\x64\145\154\x6c\141\x20\146\141\163\x65\x3a\x20\x50\x75\x6c\x69\x74\x75\x72\x61\x2e\40\x50\162\x69\x6d\x61\x20\144\x65\166\x69\x20\x73\x63\141\x6e\163\151\x6f\x6e\141\x72\145\40\165\x6e\x61\x20\103\x6f\155\x6d\x65\x73\163\x61\x2e\x3c\x2f\x73\x70\141\x6e\76"; break; case "\106\101\x53\105\114\101\x56\55\x41\102": $last_operation = "\x3c\163\160\141\x6e\40\143\154\x61\163\163\x3d\x22\x74\145\x78\164\x2d\x77\x61\x72\156\x69\156\147\42\x3e\303\210\40\163\x74\141\164\157\x20\163\x63\141\x6e\163\151\157\x6e\x61\x74\157\40\x69\154\40\142\141\162\x63\157\144\145\40\144\145\x6c\154\x61\x20\146\141\163\145\72\40\101\x73\163\x65\x6d\142\154\141\x67\x67\151\157\x2e\x20\120\x72\151\x6d\141\40\x64\145\166\151\40\163\x63\x61\156\163\x69\x6f\156\x61\162\x65\40\165\156\141\40\x43\x6f\x6d\x6d\x65\x73\163\x61\56\x3c\x2f\163\160\x61\x6e\x3e"; break; default: $last_operation = "\x3c\163\x70\141\156\x20\x63\154\141\x73\163\x3d\42\x74\145\x78\164\55\x77\141\x72\x6e\x69\x6e\x67\x22\76\xc3\x88\40\x73\x74\141\164\x6f\40\x73\x63\141\x6e\163\151\x6f\156\141\x74\x6f\x20\x69\154\x20\142\141\x72\143\x6f\144\x65\x20\144\x69\40\x75\x6e\141\x20\143\x6f\155\x6d\145\x73\163\x61\x20\x73\143\157\156\157\x73\x63\151\165\x74\141\56\x3c\57\x73\160\141\x6e\76"; break; } } } } else { $id_lavorazione = str_replace("\111\104\x4c\101\x56\x2d", '', $scanned); $last_operation = "\74\163\x70\141\x6e\x20\143\x6c\x61\163\x73\75\42\164\145\170\x74\55\x73\165\x63\143\145\163\163\x22\x3e\123\x63\x61\156\163\x69\157\x6e\x61\164\157\40\142\x61\x72\x63\x6f\144\145\40\143\157\155\155\145\163\163\x61\40\50\111\104\x20\x43\x6f\155\155\145\x73\x73\x61\40\75\x20" . $id_lavorazione . "\51\x3c\x2f\x73\x70\141\x6e\76"; $id_commessa = $id_lavorazione; $sql_cli_mod = "\123\105\114\105\103\124\40\143\x6c\x69\x65\156\164\145\x2c\40\155\x6f\144\x65\x6c\x6c\x6f\x2c\40\x73\164\x61\x74\157\x20\106\122\117\115\40\x64\x61\x74\151\137\143\157\155\155\145\163\x73\x61\40\127\x48\105\122\105\x20\x69\x64\x5f\x63\x6f\155\x6d\145\x73\x73\x61\40\x3d\40\47" . $id_commessa . "\47"; $result_cli_mod = mysqli_query($conn, $sql_cli_mod); $num_cli_mod = mysqli_num_rows($result_cli_mod); if ($num_cli_mod === 1) { $row_cli_mod = mysqli_fetch_assoc($result_cli_mod); $string_comm = $row_cli_mod["\143\154\151\x65\x6e\164\x65"] . "\40\x2d\40" . $row_cli_mod["\x6d\157\x64\145\x6c\x6c\157"]; if ($row_cli_mod["\163\x74\141\x74\157"] == "\x4d\145\x72\143\x65\40\x70\162\157\x6e\164\141\x20\x61\40\x6d\x61\147\141\172\172\151\156\157") { $last_operation = "\74\x73\160\x61\156\40\143\154\141\163\x73\75\42\x74\145\170\x74\55\144\141\156\x67\x65\162\42\x3e\123\x63\141\x6e\163\x69\157\x6e\x61\x74\x6f\x20\142\141\162\x63\157\x64\x65\x20\x63\x6f\x6d\155\145\x73\163\x61\40\x28\x49\x44\x20\x43\157\x6d\x6d\x65\x73\163\x61\x20\75\x20" . $id_lavorazione . "\x29\x20\55\x20\74\142\76\x41\124\124\105\116\x5a\111\x4f\116\x45\x3a\74\57\x62\x3e\40\x4c\141\40\x63\x6f\x6d\x6d\145\x73\x73\141\40\xc3\250\x20\163\164\141\164\141\x20\143\157\x6d\160\x6c\x65\164\x61\x74\141\74\57\x73\160\x61\x6e\x3e"; } } } } goto WCPWj; X_aL1: if (!empty($id_lavorazione) && in_array($id_lavorazione, $arr_idlav)) { echo $id_lavorazione; } goto qM7Fb; i0T8u: ?>
</tbody></table></div></div></div></div></div></div></div><script>$(document).ready(function() {
            window.setTimeout( function() {
            window.location.reload();
            }, 10000);

            let barcodeinput = document.getElementById('barcode');
            barcode.focus();
        } );</script></body></html>

Function Calls

None

Variables

None

Stats

MD5 d8a63a7c1411d2811ad7dfd6c63a448a
Eval Count 0
Decode Time 60 ms