gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

27 righe
888 B

<?php
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->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);