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