<?
require("cnimda.inc.php");
// Syntax: CNimda($cLogFile,$iRefresh,$iLines);
//
// Hints: Object Creation:
//
// $cLogFile is your (Apache) Logfile
// $iRefresh is the RefreshTime (ms), only if JavaSript is activated
// $iLines is the number of last Nimda-atemmpts on your server
//
// Methods:
//
// To show a clear result page (with Javascript Refresh TRUE|FALSE):
// $oNimda->ShowPage($bShowJavascript)
//
// To get only the result array (with the suspect lines):
// $oNimda->GetResultArray();
//
// To get the number of total suspect lines of your log:
// $oNimda->GetGetNumNimdaRequests()
//
// To make the Javascript Page-Refresh code only:
// $oNimda->GetRefreshJavaScript()
$oNimda=new CNimda("/etc/httpd/logs/access",2000,5);
echo $oNimda->ShowPage(TRUE); // Show the results (with Javascript refresh)
// print_r($oNimda->GetResultArray()); // Get the result array only (for own designs)
?>