wok-current view tazbb/stuff/web/log.php @ rev 5094
tazbb: sync CSS and update page
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Mar 15 21:49:59 2010 +0100 (2010-03-15) |
parents | 03ced413517c |
children | 93b7952261f9 |
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 <a href="http://bb.slitaz.org/"><img id="logo"
21 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
22 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
23 <p id="titre">#!/bb/packages</p>
24 </div>
26 <!-- Navigation menu -->
27 <div id="nav">
29 <div class="nav_box">
30 <h4>SliTaz Network</h4>
31 <ul>
32 <li><a href="http://www.slitaz.org/">Main Website</a></li>
33 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
34 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
35 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
36 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
37 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
38 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
39 </ul>
40 </div>
42 <div class="nav_box">
43 <h4>SliTaz Developers</h4>
44 <ul>
45 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
46 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
47 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
48 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
49 </ul>
50 </div>
52 <!-- End navigation menu -->
53 </div>
55 <!-- Content -->
56 <div id="content">
58 <h1><font color="#3E1220">Build Bot</font></h1>
59 <h2><font color="#DF8F06">Cooklog</font></h2>
61 <p>
62 <form action="log.php" method="get">
63 Show cooklog: <input type="text" name="package" />
64 <!-- <input type="submit" value="Show" /> -->
65 <?php
67 if ($_GET['package']) {
68 $pkg = $_GET["package"];
69 if (file_exists("$log_dir/$pkg.log")) {
70 echo " Package $pkg: ";
71 echo '<a href="' . "log/$pkg.log" . '">Raw log</a> ' . "\n";
72 echo '</form></p>';
73 echo '<pre class="log">' . "\n";
74 echo date ("F d Y H:i:s", filemtime("log/$pkg.log"))."\n";
75 include("$log_dir/$pkg.log");
76 echo '</pre>';
77 }
78 else {
79 echo " No log file found for: $pkg";
80 echo '</form></p>';
81 }
82 }
83 else {
84 echo '</form></p>';
85 }
87 ?>
89 <!-- End of content with round corner -->
90 </div>
92 <!-- Start of footer and copy notice -->
93 <div id="copy">
94 <p>
95 Copyright © 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
96 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
97 </p>
98 <!-- End of copy -->
99 </div>
101 <!-- Bottom and logo's -->
102 <div id="bottom">
103 <p>
104 <a href="http://validator.w3.org/check?uri=referer"><img
105 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
106 title="Code validé XHTML 1.0"
107 style="width: 80px; height: 15px;" /></a>
108 </p>
109 </div>
111 </body>
112 </html>