From 306695086c6ca801fea58a8ebb4ae801bf43d5f0 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Thu, 24 Nov 2016 16:45:04 +0100 Subject: [PATCH] machines() renvoie tous les nouveaux champs --- admin/connexions.php | 4 ++-- admin/machine.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 admin/machine.php diff --git a/admin/connexions.php b/admin/connexions.php index cd2ffb2..d601cdf 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, adresse_ip from machines order by salle, machine_id'; + $req = 'select machine_id, salle, os, os_sp, os_version, adresse_ip, marque, modele, type_systeme, mac, mac_description 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], $mac[5]); + $machines[$mac[0]] = array($mac[1], $mac[2], $mac[3], $mac[4], $mac[5], $mac[6], $mac[7], $mac[8], $mac[9], $mac[10]); } db_free($res); return $machines; diff --git a/admin/machine.php b/admin/machine.php new file mode 100644 index 0000000..15c5adc --- /dev/null +++ b/admin/machine.php @@ -0,0 +1,3 @@ + \ No newline at end of file