Subversion Repositories ALCASAR

Rev

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

Rev 2853 Rev 2874
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 2853 2020-07-19 21:50:07Z rexy $
2
# $Id: network.php 2874 2020-10-31 13:54:28Z rexy $
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 739... Line 739...
739
			foreach ($tab as $line) {
739
			foreach ($tab as $line) {
740
				$fields = explode(' ', $line);
740
				$fields = explode(' ', $line);
741
				$mac_addr = $fields[0];
741
				$mac_addr = $fields[0];
742
				$ip_addr  = $fields[1];
742
				$ip_addr  = $fields[1];
743
				$info     = (isset($fields[2])) ? implode(' ', array_slice($fields, 2)) : ' ';
743
				$info     = (isset($fields[2])) ? implode(' ', array_slice($fields, 2)) : ' ';
744
 
-
 
745
				echo '<tr>';
744
				echo '<tr>';
746
				echo "<td>$mac_addr</td>";
745
				echo "<td>$mac_addr</td>";
747
				echo "<td>$ip_addr</td>";
746
				echo "<td>$ip_addr</td>";
748
				if ($mac_addr !== $intif_mac_addr) {
747
				if ($mac_addr !== $intif_mac_addr) {
749
					echo '<td>'.ltrim($info, '#').'</td>';
748
					echo '<td>'.ltrim($info, '#').'</td>';