|
PCCS MySQLDatabase Admin Tool version 1.3.4
|
/ -> mysqldb_viewlogs.php
1 <?php
2 // updated 10-23-2000 3 // -- moving to a single file for global include files 4
5 require('mysqldb_app_includes.php');
6
7 pageTop("PCCS MySQLAdmin Tool: SYSTEM LOG","600");
8
9 print "
10 <H3> MySQLDatabase Admin Tool SYSLOG file</H3>
11 <HR NOSHADE>
12 <P>
13 Below are the actions that have been taken since you installed MySQLDatabase Admin Tool
14 <P>
15 ";
16
17 $logfile = "logs/dblog.txt";
18 if(file_exists("$logfile"));
19 $read_logfile = file($logfile);
20 $num_of_files = count($read_logfile);
21 for($i = 0; $i < count($read_logfile); $i++) {
22
23 $log_entries = explode(",",$read_logfile[$i]);
24 for($ii = 0; $ii < count($log_entries); $ii++)
25 {
26 print ("$log_entries[$ii] ");
27 }
28 print "<br>";
29 }
30 print "<P>";
31 print "There are " . $num_of_files . " items logged";
32 print "<P><A HREF=./>Main Menu</A>";
33
34 pageBottom();
35
36 ?>
| |