From 73f12694b06f072e02766247aa86bb98e19a7b81 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Tue, 22 Nov 2016 16:08:31 +0100 Subject: [PATCH] ajout ip dans Machines() --- admin/connexions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/connexions.php b/admin/connexions.php index 3b4b581..6bfd53a 100644 --- a/admin/connexions.php +++ b/admin/connexions.php @@ -31,10 +31,10 @@ function Machines() { //$machines = array() ; $db = db_connect(); - $req = 'select machine_id, salle, os, os_sp, os_version from machines order by salle, machine_id'; + $req = 'select machine_id, salle, os, os_sp, os_version, adresse_ip from machines order by salle, machine_id'; $res = db_query($db, $req); while ($mac = db_fetch_row($res)) { - $machines[$mac[0]] = array($mac[1], $mac[2], $mac[3], $mac[4]); + $machines[$mac[0]] = array($mac[1], $mac[2], $mac[3], $mac[4], $mac[5]); } db_free($res); return $machines;