#!/usr/local/bin/php
$newmac,
"timestamp" => trim($todo[2]),
"hostname" => trim($todo[3]) ? trim($todo[3]) : "Unknown"
);
unset($mac);
}
}
$pgtitle = "arpwatch: Reports";
include("head.inc");
?>
=$pgtitle?>
|
arp.dat entries |
IP |
Timestamp |
MAC |
Hostname |
$rawentries) {
$printip = true;
$entries = $rawentries;
sort($entries);
foreach($entries as $entry) {
echo '';
if($printip) {
echo '' . $ip . ' | ';
$stampclass = "listr";
$printip = false;
} else {
$stampclass = "listlr";
echo ' | ';
}
echo '' .
date("D M j G:i:s", $entry['timestamp']) .
' | ';
echo '' . $entry['mac'] . ' | ';
echo '' . $entry['hostname'] . ' | ';
echo ' ';
}
}
?>
|
|