wok-stable diff tazbb/stuff/web/log.php @ rev 3512

Add Tazbb (SliTaz Build Bot)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 20 04:41:53 2009 +0200 (2009-06-20)
parents
children 03ced413517c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tazbb/stuff/web/log.php	Sat Jun 20 04:41:53 2009 +0200
     1.3 @@ -0,0 +1,101 @@
     1.4 +<?php
     1.5 +include("conf.php");
     1.6 +?>
     1.7 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     1.8 +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.9 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    1.10 +<head>
    1.11 +    <title>Tazbb cooklog <?php echo $_GET['package']; ?></title>
    1.12 +    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    1.13 +    <meta name="description" content="Tazbb web interface cooklog" />
    1.14 +    <meta name="robots" content="index nofollow" />
    1.15 +    <link rel="shortcut icon" href="favicon.ico" />
    1.16 +    <link rel="stylesheet" type="text/css" href="slitaz.css" />
    1.17 +</head>
    1.18 +
    1.19 +<body bgcolor="#ffffff">
    1.20 +<!-- Header -->
    1.21 +<div id="header">
    1.22 +    <a name="top"></a>
    1.23 +<!-- Access -->
    1.24 +<div id="access">
    1.25 +	<a href="http://forum.slitaz.org/">Forum</a>
    1.26 +	<a href="http://wiki.slitaz.org/">Wiki</a>
    1.27 +	<a href="http://art.slitaz.org/">Art</a>
    1.28 +	<a href="http://labs.slitaz.org/">Labs</a>
    1.29 +	<a href="http://pkgs.slitaz.org/">Packages</a>
    1.30 +	<a href="http://hg.slitaz.org/">Hg</a>
    1.31 +</div>
    1.32 +    <a href="http://bb.slitaz.org/"><img id="logo"
    1.33 +    src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
    1.34 +    style="border: 0px solid ; width: 200px; height: 74px;" /></a>
    1.35 +    <p id="titre">#!/bb/packages</p>
    1.36 +</div>
    1.37 +
    1.38 +<!-- Content top. -->
    1.39 +<div id="content_top">
    1.40 +<div class="top_left"></div>
    1.41 +<div class="top_right"></div>
    1.42 +</div>
    1.43 +
    1.44 +<!-- Content -->
    1.45 +<div id="content">
    1.46 +
    1.47 +<h1><font color="#3E1220">Build Bot</font></h1>
    1.48 +<h2><font color="#DF8F06">Cooklog</font></h2>
    1.49 +
    1.50 +<p>
    1.51 +<form action="log.php" method="get">
    1.52 +	Show cooklog: <input type="text" name="package" />
    1.53 +	<!-- <input type="submit" value="Show" /> -->
    1.54 +<?php
    1.55 +
    1.56 +if ($_GET['package']) {
    1.57 +	$pkg = $_GET["package"];
    1.58 +	if (file_exists("$log_dir/$pkg.log")) {
    1.59 +		echo " Package $pkg: ";
    1.60 +		echo '<a href="' . "log/$pkg.log" . '">Raw log</a> ' . "\n";
    1.61 +		echo '</form></p>';
    1.62 +		echo '<pre class="log">' . "\n";
    1.63 +		include("$log_dir/$pkg.log");
    1.64 +		echo '</pre>';
    1.65 +	}
    1.66 +	else {
    1.67 +		echo " No log file found for: $pkg";
    1.68 +		echo '</form></p>';
    1.69 +	}
    1.70 +}
    1.71 +else {
    1.72 +	echo '</form></p>';
    1.73 +}
    1.74 +
    1.75 +?>
    1.76 +
    1.77 +<!-- End of content with round corner -->
    1.78 +</div>
    1.79 +<div id="content_bottom">
    1.80 +<div class="bottom_left"></div>
    1.81 +<div class="bottom_right"></div>
    1.82 +</div>
    1.83 +
    1.84 +<!-- Start of footer and copy notice -->
    1.85 +<div id="copy">
    1.86 +<p>
    1.87 +Copyright &copy; 2009 <a href="http://www.slitaz.org/">SliTaz</a> -
    1.88 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
    1.89 +</p>
    1.90 +<!-- End of copy -->
    1.91 +</div>
    1.92 +
    1.93 +<!-- Bottom and logo's -->
    1.94 +<div id="bottom">
    1.95 +<p>
    1.96 +<a href="http://validator.w3.org/check?uri=referer"><img
    1.97 +   src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
    1.98 +   title="Code validé XHTML 1.0"
    1.99 +   style="width: 80px; height: 15px;" /></a>
   1.100 +</p>
   1.101 +</div>
   1.102 +
   1.103 +</body>
   1.104 +</html>