#!/usr/local/bin/php
trim($todo[0]),
"timestamp" => trim($todo[2]),
"hostname" => trim($todo[3]) ? trim($todo[3]) : "Unknown"
);
}
}
$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 ' ';
}
}
?>
|
|