From 61a6a20042694c6aac90126a3e5b2411dc61c552 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Thu, 24 Nov 2016 11:11:50 +0100 Subject: [PATCH] =?UTF-8?q?retour=20vers=20menu=20principal=20si=20non=20r?= =?UTF-8?q?equ=C3=AAte=20connexion/d=C3=A9connexion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index f5d833d..8a309e3 100644 --- a/index.php +++ b/index.php @@ -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 .'"'; db_query($db, $req_modele_machine); } + else { + // renvoi sur le menu principal + header('Location: '.$winlog_url.'/admin/index.php'); + } } ?>