permission($radice)) { if(! empty($_POST["codice"])) { $pacchetto = $pdo->go("SELECT * FROM b_conservazione WHERE codice = :codice LIMIT 0,1", [":codice" => $_POST["codice"]])->fetch(PDO::FETCH_ASSOC); if(! empty($pacchetto)) { $result = shell_exec("php {$config["cmds_folder"]}/artisan job:dispatch Preservation/CheckPreservationStatusJob -P {$_SESSION["ente"]->codice} -P {$pacchetto["codice"]} -Q preservation -C database 2>&1"); $result = preg_replace('~[[:cntrl:]]~', '', $result); if($result == "Job has been scheduled.") { die("table.ajax.reload(null, false);"); } } } } HTTPStatus(403);