source: subversion/sites/other/tilesAtHome/Log/index.php @ 3117

Last change on this file since 3117 was 2272, checked in by ojw, 13 years ago

tiles at home website

File size: 633 bytes
Line 
1<html>
2<head>
3<title>OpenStreetMap tiles@home</title>
4<link rel="stylesheet" href="../styles.css">
5</head>
6<body>
7<div class="all">
8<h1 class="title"><a href="../"><img src="../Gfx/tah.png" alt="tiles@home" width="600" height="109"></a></h1>
9<p class="title">Logfiles</p>
10<hr>
11
12<?php
13printf("<p>Current time is <b>%s</b></p>\n", date("Y-m-d H:i:s"));
14
15for($i = 1; $i <= 5; $i++){
16  showLogfile("Priority $i", "messages_p$i.txt");
17}
18
19function showLogfile($Title, $Filename){
20  print "<h2>$Title</h2>\n";
21 
22  print "<pre class=\"code\">";
23  print system("tail -n 30 Data/".$Filename);
24  print "</pre>\n";
25}
26?>
27
28</div>
29</body>
30</html>
Note: See TracBrowser for help on using the repository browser.