tazwok annotate web/log.php @ rev 186

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