Subversion Repositories ALCASAR

Rev

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

Rev 3137 Rev 3173
Line 181... Line 181...
181
		exec("sudo /sbin/ip link show ".escapeshellarg($intif), $output); // retrieve ALCASAR @MAC
181
		exec("sudo /sbin/ip link show ".escapeshellarg($intif), $output); // retrieve ALCASAR @MAC
182
		$detail = explode (" " , $output[1]);
182
		$detail = explode (" " , $output[1]);
183
		$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
183
		$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
184
		unset ($output);unset ($detail);
184
		unset ($output);unset ($detail);
185
		exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); 
185
		exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); 
186
		foreach($output as $ligne){
186
		foreach ($output as $ligne){
187
			$detail = explode (" ", $ligne);
187
			$detail = explode (" ", $ligne);
188
			$nb_ligne ++;
188
			$nb_ligne ++;
189
			echo "<tr valign=\"middle\">";
189
			echo "<tr valign=\"middle\">";
190
			echo "<td>".$nb_ligne."</td>";
190
			echo "<td>".$nb_ligne."</td>";
191
			echo "<td>".$detail[1]."</td>"; // @IP
191
			echo "<td>".$detail[1]."</td>"; // @IP