Location: PHPKode > projects > Network Asset Management Archive > nama/iaso/editmac.php
<?
//phpinfo();
$now = date("m/j/y h:i:s",time());
include "../connect.php";

$MAC_ADDRESS = $_POST['MAC_ADDRESS'];
$MAC_ADDRESS = str_replace("-","",$MAC_ADDRESS);
$MAC_ADDRESS = str_replace(".","",$MAC_ADDRESS);
$MAC_ADDRESS = mysql_escape_string($MAC_ADDRESS); 
$REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];
if ($MAC_ADDRESS!="") {
     $stmt = "FROM arp_table a, subnets b where (a.subnet = b.subnet) and (mac_address containing '" . $MAC_ADDRESS . "')";
} else {
 Header("Location: /iaso/searchmac.php");
 print "Must enter a partial mac address!";
}
$stmt = urlencode($stmt);
?>
<html>

<title>IASO Review Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*" cols="262,*" frameborder="NO" border="0" framespacing="0"> 
  <frame name="leftFrame" noresize src="getpicks.php?stmt=<? print $stmt ?>" marginwidth="0" marginheight="0">
  <frame name="rightFrame" noresize src="right.php" marginwidth="0" marginheight="0">
</frameset>
<noframes><body bgcolor="#F9F3E0" text="#000000">

</body></noframes>
</html>

Return current item: Network Asset Management Archive