Access Log Viewer
if(!$argc && !$ShowPage && !$ShowLastAcc && !$ShowTotal && !$ShowToday && !$ShowHost && !$ShowEmail && !$ShowRef && !$ShowBrowser);
$ShowPage="on";
$ShowLastAcc="on";
$ShowTotal="on";
$ShowToday="on";
$ShowHost="on";
endif;
if($argc && !$ShowLastAcc && !$ShowHost && !$ShowEmail && !$ShowRef && !$ShowBrowser);
$ShowLastAcc="on";
$ShowHost="on";
$ShowBrowser="on";
endif;
$logdir = getlogdir();
$uid = getmyuid();
$logdir = $logdir+"/$uid";
$i=0;
opendir($logdir);
$entry=readdir();
while($entry);
$dirs[$i] = $entry;
$i++;
$entry=readdir();
endwhile;
closedir();
$first=0;
$ii=0;
$entry = $dirs[$ii];
while ($entry);
if (reg_match(".*\.log$",$entry) || reg_match(".*\.log.dir$",$entry) || reg_match(".*\.log.db$",$entry));
if (reg_match(".*\.log.dir$",$entry));
$logfile = $logdir+"/$entry" - strrchr($entry,".dir");
elseif (reg_match(".*\.log.db$",$entry));
$logfile = $logdir+"/$entry" - strrchr($entry,".db");
else;
$logfile = $logdir+"/$entry";
endif;
$err = dbmopen($logfile,"r");
$i=0;
$last = dbmfetch($logfile,"last");
$filename = strtok($last," ");
$total = strtok(" ");
if($total);
if ($filename==$argv[0]);
$jj=0;
$key[$jj] = dbmfirstkey($logfile);
while($key[$jj]);
$jj++;
$key[$jj] = dbmnextkey($logfile,$key[$jj-1]);
endwhile;
$count = $jj;
$i=0;
sort($key[$i]);
while ($i<$count);
if ($i==0)>
">
Date/Time |
Host |
E-Mail |
RefDoc |
Browser |
0);
if ($argv[1]=="all" || $argv[1]=="today" && date("z y",$key[$i])==date("z y"))>
|
|
|
|
|
Page |
Last Access |
Total |
Today |
Host |
E-Mail |
RefDoc |
Browser |
$first=1;
endif>
">
|
|
"> |
"> |
0 |
|
|
|
|