Revision 125, 368 bytes
(checked in by andreu, 12 years ago)
|
syslog output parameters modification - new web page for monitoring site (log, introduction)
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $res = `tail -50 /var/log/renetcol.log > /tmp/renetcol_log.txt`; |
---|
4 | |
---|
5 | $finputlog = fopen("/tmp/renetcol_log.txt",'r'); |
---|
6 | |
---|
7 | print "<div id=\"contenu\">\n"; |
---|
8 | |
---|
9 | print "<p>"; |
---|
10 | print "<ul>"; |
---|
11 | while (!feof ($finputlog)) { |
---|
12 | $line = fgets($finputlog, 512); |
---|
13 | $line = trim($line); |
---|
14 | print "<li>$line</li>"; |
---|
15 | } |
---|
16 | print "</ul>"; |
---|
17 | print "</p>"; |
---|
18 | print "</div>\n"; |
---|
19 | fclose($finputlog); |
---|
20 | |
---|
21 | ?> |
---|