wok-next view tazbb/stuff/web/log.php @ rev 5823
tazbb: add stable support for log.php
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 15 17:53:08 2010 +0200 (2010-07-15) |
parents | c96e79a1ca3e |
children | 9140fe580c2b |
line source
1 <?php
2 $version='cooking';
3 $wok='wok';
4 if (isset($_GET['stable'])) {
5 $version='stable';
6 $wok='wok-stable';
7 }
8 include("conf.php");
9 ?>
10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
11 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13 <head>
14 <title>Tazbb cooklog <?php echo $_GET['package']; ?></title>
15 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
16 <meta name="description" content="Tazbb web interface cooklog" />
17 <meta name="robots" content="index nofollow" />
18 <link rel="shortcut icon" href="favicon.ico" />
19 <link rel="stylesheet" type="text/css" href="slitaz.css" />
20 </head>
22 <body bgcolor="#ffffff">
23 <!-- Header -->
24 <div id="header">
25 <a name="top"></a>
26 <a href="http://bb.slitaz.org/"><img id="logo"
27 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
28 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
29 <p id="titre">#!/bb/packages<?php if ($version == 'stable') echo '/stable'; ?></p>
30 </div>
32 <!-- Navigation menu -->
33 <div id="nav">
35 <div class="nav_box">
36 <h4>SliTaz Network</h4>
37 <ul>
38 <li><a href="http://www.slitaz.org/">Main Website</a></li>
39 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
40 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
41 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
42 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
43 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
44 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
45 </ul>
46 </div>
48 <div class="nav_box">
49 <h4>SliTaz Developers</h4>
50 <ul>
51 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
52 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
53 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
54 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
55 </ul>
56 </div>
58 <!-- End navigation menu -->
59 </div>
61 <!-- Content -->
62 <div id="content">
64 <h1><font color="#3E1220">Build Bot</font></h1>
65 <h2><font color="#DF8F06">Cooklog</font></h2>
67 <p>
68 <form action="log.php" method="get">
69 Show cooklog: <input type="text" name="package" />
70 <!-- <input type="submit" value="Show" /> -->
71 <?php
73 if ($_GET['package']) {
74 $pkg = $_GET["package"];
75 if (file_exists("$log_dir/$pkg.log")) {
76 echo " Package $pkg: ";
77 echo '<a href="' . "log/$pkg.log" . '">Raw log</a> ' . "\n";
78 echo '</form></p>';
79 echo '<pre class="log">' . "\n";
80 echo date ("F d Y H:i:s", filemtime("log/$pkg.log"))."\n";
81 include("$log_dir/$pkg.log");
82 echo '</pre>';
83 }
84 else {
85 echo " No log file found for: $pkg";
86 echo '</form></p>';
87 }
88 }
89 else {
90 echo '</form></p>';
91 }
93 ?>
95 <!-- End of content with round corner -->
96 </div>
98 <!-- Start of footer and copy notice -->
99 <div id="copy">
100 <p>
101 Copyright © 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
102 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
103 </p>
104 <!-- End of copy -->
105 </div>
107 <!-- Bottom and logo's -->
108 <div id="bottom">
109 <p>
110 <a href="http://validator.w3.org/check?uri=referer"><img
111 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
112 title="Code validé XHTML 1.0"
113 style="width: 80px; height: 15px;" /></a>
114 </p>
115 </div>
117 </body>
118 </html>