Subversion Repositories ALCASAR

Rev

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

Rev 2091 Rev 2095
Line 112... Line 112...
112
			echo "<TD>".$detail[1]."</TD>";
112
			echo "<TD>".$detail[1]."</TD>";
113
			if(file_exists('/usr/share/arp-scan/ieee-oui.txt')) // for each device on LAN, retrieve the MAC manufacturer
113
			if(file_exists('/usr/share/arp-scan/ieee-oui.txt')) // for each device on LAN, retrieve the MAC manufacturer
114
			{
114
			{
115
				$oui_id = substr(str_replace("-","",$detail[0]),0,6);
115
				$oui_id = substr(str_replace("-","",$detail[0]),0,6);
116
				exec ("grep $oui_id /usr/share/arp-scan/ieee-oui.txt | cut -f2", $mac_manufacturer);
116
				exec ("grep $oui_id /usr/share/arp-scan/ieee-oui.txt | cut -f2", $mac_manufacturer);
-
 
117
				if(empty($mac_manufacturer[0]))
-
 
118
                {
-
 
119
                	$mac_manufacturer[0] = "Unknown";
-
 
120
                }
-
 
121
 
117
				echo "<TD>$detail[0] ($mac_manufacturer[0])</TD>";
122
				echo "<TD>$detail[0] ($mac_manufacturer[0])</TD>";
118
				unset($mac_manufacturer);
123
				unset($mac_manufacturer);
119
			}
124
			}
120
			else
125
			else
121
			{
126
			{