retour vers menu principal si non requête connexion/déconnexion

This commit is contained in:
jbousquie 2016-11-24 11:11:50 +01:00
parent 429ed9c953
commit 61a6a20042

View File

@ -49,5 +49,9 @@ if ( $_SERVER["REQUEST_METHOD"] == "POST" && $_SERVER["SERVER_PORT"] == "443" &&
$req_modele_machine = 'UPDATE machines SET marque = "'. $marque .'", modele = "'. $modele .'", type_systeme ="'. $type .'", mac = "'. $mac .'", mac_description = "'. $descr .'" WHERE machine_id = "'. $computer .'"'; $req_modele_machine = 'UPDATE machines SET marque = "'. $marque .'", modele = "'. $modele .'", type_systeme ="'. $type .'", mac = "'. $mac .'", mac_description = "'. $descr .'" WHERE machine_id = "'. $computer .'"';
db_query($db, $req_modele_machine); db_query($db, $req_modele_machine);
} }
else {
// renvoi sur le menu principal
header('Location: '.$winlog_url.'/admin/index.php');
}
} }
?> ?>