wok-current view tazbb/stuff/web/log.php @ rev 3541

tazbb: show logfile date
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 22 19:05:35 2009 +0200 (2009-06-22)
parents 60003751479d
children c96e79a1ca3e
line source
1 <?php
2 include("conf.php");
3 ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8 <title>Tazbb cooklog <?php echo $_GET['package']; ?></title>
9 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
10 <meta name="description" content="Tazbb web interface cooklog" />
11 <meta name="robots" content="index nofollow" />
12 <link rel="shortcut icon" href="favicon.ico" />
13 <link rel="stylesheet" type="text/css" href="slitaz.css" />
14 </head>
16 <body bgcolor="#ffffff">
17 <!-- Header -->
18 <div id="header">
19 <a name="top"></a>
20 <!-- Access -->
21 <div id="access">
22 <a href="http://forum.slitaz.org/">Forum</a>
23 <a href="http://wiki.slitaz.org/">Wiki</a>
24 <a href="http://art.slitaz.org/">Art</a>
25 <a href="http://labs.slitaz.org/">Labs</a>
26 <a href="http://pkgs.slitaz.org/">Packages</a>
27 <a href="http://hg.slitaz.org/">Hg</a>
28 </div>
29 <a href="http://bb.slitaz.org/"><img id="logo"
30 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
31 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
32 <p id="titre">#!/bb/packages</p>
33 </div>
35 <!-- Content top. -->
36 <div id="content_top">
37 <div class="top_left"></div>
38 <div class="top_right"></div>
39 </div>
41 <!-- Content -->
42 <div id="content">
44 <h1><font color="#3E1220">Build Bot</font></h1>
45 <h2><font color="#DF8F06">Cooklog</font></h2>
47 <p>
48 <form action="log.php" method="get">
49 Show cooklog: <input type="text" name="package" />
50 <!-- <input type="submit" value="Show" /> -->
51 <?php
53 if ($_GET['package']) {
54 $pkg = $_GET["package"];
55 if (file_exists("$log_dir/$pkg.log")) {
56 echo " Package $pkg: ";
57 echo '<a href="' . "log/$pkg.log" . '">Raw log</a> ' . "\n";
58 echo '</form></p>';
59 echo '<pre class="log">' . "\n";
60 echo date ("F d Y H:i:s", filemtime("log/$pkg.log"))."\n";
61 include("$log_dir/$pkg.log");
62 echo '</pre>';
63 }
64 else {
65 echo " No log file found for: $pkg";
66 echo '</form></p>';
67 }
68 }
69 else {
70 echo '</form></p>';
71 }
73 ?>
75 <!-- End of content with round corner -->
76 </div>
77 <div id="content_bottom">
78 <div class="bottom_left"></div>
79 <div class="bottom_right"></div>
80 </div>
82 <!-- Start of footer and copy notice -->
83 <div id="copy">
84 <p>
85 Copyright &copy; 2009 <a href="http://www.slitaz.org/">SliTaz</a> -
86 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
87 </p>
88 <!-- End of copy -->
89 </div>
91 <!-- Bottom and logo's -->
92 <div id="bottom">
93 <p>
94 <a href="http://validator.w3.org/check?uri=referer"><img
95 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
96 title="Code validé XHTML 1.0"
97 style="width: 80px; height: 15px;" /></a>
98 </p>
99 </div>
101 </body>
102 </html>