Subversion Repositories ALCASAR

Rev

Rev 2709 | Rev 2717 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2709 Rev 2713
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 2709 2019-03-05 23:20:31Z tom.houdayer $
2
# $Id: network.php 2713 2019-03-10 23:35:02Z tom.houdayer $
3
 
3
 
4
// written by steweb57, Rexy & Tom HOUDAYER
4
// written by steweb57, Rexy & Tom HOUDAYER
5
 
5
 
6
/********************
6
/********************
7
*  READ CONF FILES  *
7
*  READ CONF FILES  *
Line 735... Line 735...
735
		if ($tab) { // le fichier n'est pas vide
735
		if ($tab) { // le fichier n'est pas vide
736
			foreach ($tab as $line) {
736
			foreach ($tab as $line) {
737
				$fields = explode(' ', $line);
737
				$fields = explode(' ', $line);
738
				$mac_addr = $fields[0];
738
				$mac_addr = $fields[0];
739
				$ip_addr  = $fields[1];
739
				$ip_addr  = $fields[1];
740
				$info     = (isset($fields[2])) ? $fields[2] : ' ';
740
				$info     = (isset($fields[2])) ? implode(' ', array_slice($fields, 2)) : ' ';
741
 
741
 
742
				echo '<tr>';
742
				echo '<tr>';
743
				echo "<td>$mac_addr</td>";
743
				echo "<td>$mac_addr</td>";
744
				echo "<td>$ip_addr</td>";
744
				echo "<td>$ip_addr</td>";
745
				if ($mac_addr !== $intif_mac_addr) {
745
				if ($mac_addr !== $intif_mac_addr) {