wok-6.x annotate tazbb/stuff/web/index.php @ rev 7934

Up: tazbb (2.0) with new CSS and layout
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jan 11 15:42:58 2011 +0100 (2011-01-11)
parents e123f30cb507
children c3d23bc104d3
rev   line source
pankso@3512 1 <?php
pascal@5818 2 $version='cooking';
pascal@5819 3 $notversion='stable';
pascal@5818 4 $wok='wok';
pascal@5818 5 if (isset($_GET['stable'])) {
pascal@5818 6 $version='stable';
pascal@5819 7 $notversion='cooking';
pascal@5818 8 $wok='wok-stable';
pascal@5818 9 }
pankso@3512 10 include("conf.php");
pankso@3512 11 ?>
pankso@3512 12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
pankso@3512 13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
pankso@3512 14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
pankso@3512 15 <head>
pankso@3512 16 <title>SliTaz Build Bot</title>
pankso@3512 17 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
pankso@3512 18 <meta name="description" content="Tazbb web interface" />
pankso@3512 19 <meta name="robots" content="index nofollow" />
pankso@3512 20 <link rel="shortcut icon" href="favicon.ico" />
pankso@3512 21 <link rel="stylesheet" type="text/css" href="slitaz.css" />
pankso@3512 22 </head>
pankso@7934 23 <body>
pankso@3512 24
pankso@3512 25 <!-- Header -->
pankso@3512 26 <div id="header">
pankso@7934 27 <!-- Access -->
pankso@7934 28 <div id="access">
pankso@7934 29 <a href="/<?php if ($version != 'stable')
pankso@7934 30 echo "?stable"; ?>" title="Slitaz <?php
pankso@7934 31 echo $notversion ?> packages"><?php echo $notversion ?></a>
pankso@7934 32 </div>
pankso@3512 33 <a href="http://bb.slitaz.org/"><img id="logo"
pankso@7934 34 src="pics/website/logo.png"
pankso@7934 35 title="bb.slitaz.org" alt="bb.slitaz.org" /></a>
pankso@7934 36 <p id="titre">#!/Build/Bot/<?php echo $version; ?></p>
pankso@3512 37 </div>
pankso@3512 38
pankso@3512 39 <!-- Content -->
pankso@7934 40 <div id="content-full">
pankso@3512 41
pankso@7934 42 <!-- Block begin -->
pankso@7934 43 <div class="block">
pankso@7934 44 <!-- Nav block begin -->
pankso@7934 45 <div id="block_nav">
pankso@7934 46 <h3><img src="pics/website/development.png" alt="devel.png" />Developers</h3>
pankso@7934 47 <ul>
pankso@7934 48 <li><a href="http://www.slitaz.org/en/devel/">Website/devel</a></li>
pankso@7934 49 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
pankso@7934 50 <li><a href="http://hg.slitaz.org/">Mercurial Repos</a></li>
pankso@7934 51 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
pankso@7934 52 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
pankso@7934 53 </ul>
pankso@7934 54 <!-- Nav block end -->
pankso@7934 55 </div>
pankso@7934 56 <!-- Top block begin -->
pankso@7934 57 <div id="block_top">
pankso@7934 58 <h1>Build Bot</h1>
pankso@7934 59 <p>
pankso@7934 60 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
pankso@7934 61 Build Bot, it automatically cooks and tests packages commited in
pankso@7934 62 the wok. SliTaz <a href="http://pkgs.slitaz.org/">packages</a> are
pankso@7934 63 cooked on the project main server: code name
pankso@7934 64 <a href="http://tank.slitaz.org">Tank</a>. This web interface gives
pankso@7934 65 the current status of the build bot and the last report
pankso@7934 66 about any packages modified by the SliTaz contributors in
pankso@7934 67 the Mercurial repositories, aka
pankso@7934 68 <a href="http://hg.slitaz.org/">Hg repos</a>.
pankso@7934 69 </p>
pankso@7934 70 <!-- Top block end -->
pankso@7934 71 </div>
pankso@7934 72 <!-- Block end -->
pankso@7934 73 </div>
pankso@7934 74
pankso@7934 75 <h2>Cooklog</h2>
pankso@3512 76
pankso@3512 77 <p>
pankso@7934 78 <form action="log.php" method="get">
pankso@7934 79 <?php
pankso@7934 80 if ($version == 'stable')
pankso@7934 81 echo '<input type="hidden" name="stable" value="1" />';
pankso@7934 82 ?> Show pkg log: <input type="text" name="package" />
pankso@7934 83 <!-- <input type="submit" value="Show" /> -->
pankso@7934 84 </form>
pankso@3512 85 </p>
pankso@3512 86
pankso@3512 87 <h3>Summary</h3>
pankso@3512 88 <pre class="package">
pankso@3512 89 <?php
pankso@3512 90
pankso@3512 91 // Check curent status (update in real time) and display summary.
pankso@3512 92
pankso@3512 93 if (file_exists($lockfile)) {
pankso@3512 94 echo "Status : Running ";
pankso@3512 95 include("$db_dir/running");
pankso@3512 96 }
pankso@3512 97 else {
pankso@3512 98 echo "Status : Not currently running\n";
pankso@3512 99 }
pankso@3512 100 include("$db_dir/summary");
pankso@3512 101
pankso@3512 102 ?>
pankso@3512 103 </pre>
pankso@3512 104
pankso@3512 105 <h3>Report</h3>
pankso@3512 106 <pre class="package">
pankso@3512 107 <?php
pankso@3512 108 include("$db_dir/report");
pankso@3512 109 ?>
pankso@3512 110 </pre>
pankso@3512 111
gokhlayeh@6540 112 <h3>Genpkglist</h3>
gokhlayeh@6540 113 <pre class="package">
gokhlayeh@6540 114 <?php
gokhlayeh@6540 115 include("$db_dir/genpkglist");
gokhlayeh@6540 116 ?>
gokhlayeh@6540 117 </pre>
gokhlayeh@6540 118
pankso@3512 119 <h3>Cooklist</h3>
pankso@3512 120 <pre class="package">
pankso@3512 121 <?php
pankso@3512 122 include("$db_dir/cooklist");
pankso@3512 123 ?>
pankso@3512 124 </pre>
pankso@3512 125
pankso@3512 126 <h3>Unbuilt</h3>
pankso@3512 127 <pre class="package">
pankso@3512 128 <?php
pankso@3524 129 include("$db_dir/unbuilt");
pankso@3512 130 ?>
pankso@3512 131 </pre>
pankso@3512 132
pankso@3512 133 <h3>Blocked</h3>
pankso@3512 134 <pre class="package">
pankso@3512 135 <?php
pankso@3512 136 include("$db_dir/blocked.urls");
pankso@3512 137 ?>
pankso@3512 138 </pre>
pankso@3512 139
pankso@3512 140 <h3>Corrupted</h3>
pankso@3512 141 <pre class="package">
pankso@3512 142 <?php
pankso@3512 143 include("$db_dir/corrupted");
pankso@3512 144 ?>
pankso@3512 145 </pre>
pankso@3512 146
pankso@3512 147 <h3>Last cooked packages</h3>
pankso@3512 148 <pre class="package">
pankso@3512 149 <?php
pankso@3512 150 system("cd $packages && ls -1t *.tazpkg | head -20 | \
pankso@3512 151 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
pankso@3512 152 cut -d. -f1); echo ' '\$file; done"); ?>
pankso@3512 153 </pre>
pankso@3512 154
pankso@3512 155 <h3>Last removed packages</h3>
pankso@3512 156 <pre class="package">
pankso@3512 157 <?php
pankso@3512 158 include("$db_dir/removed");
pankso@3512 159 ?>
pankso@3512 160 </pre>
pankso@3512 161
pascal@4447 162 <h3>Last cooked flavors</h3>
pascal@4447 163 <pre class="package">
pascal@4447 164 <?php
pascal@4447 165 system("cd $packages && ls -1t *.flavor | head -20 | \
pascal@4447 166 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
pascal@4447 167 cut -d. -f1); echo ' '\$file; done"); ?>
pascal@4447 168 </pre>
pascal@4447 169
pankso@7934 170 <!-- End of content -->
pankso@3512 171 </div>
pankso@3512 172
pankso@7934 173 <!-- Footer -->
pankso@7934 174 <div id="footer">
pankso@7934 175 <div class="right_box">
pankso@7934 176 <h4>SliTaz Network</h4>
pankso@7934 177 <ul>
pankso@7934 178 <li><a href="http://www.slitaz.org/">Main Website</a></li>
pankso@7934 179 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
pankso@7934 180 <li><a href="http://forum.slitaz.org/">Support Forum</a></li>
pankso@7934 181 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
pankso@7934 182 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
pankso@7934 183 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
pankso@7934 184 </ul>
pankso@7934 185 </div>
pankso@7934 186 <h4>SliTaz Website</h4>
pankso@7934 187 <ul>
pankso@7934 188 <li><a href="#header">Top of the page</a></li>
pankso@7934 189 <li>Copyright &copy; <span class="year"></span>
pankso@7934 190 <a href="http://www.slitaz.org/">SliTaz</a></li>
pankso@7934 191 <li><a href="http://www.slitaz.org/en/about/">About the project</a></li>
pankso@7934 192 <li><a href="http://www.slitaz.org/netmap.php">Network Map</a></li>
pankso@7934 193 <li>Page modified the <?php echo (date( "d M Y", getlastmod())); ?></li>
pankso@7934 194 <li><a href="http://validator.w3.org/check?uri=referer"><img
pankso@7934 195 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
pankso@7934 196 title="Code validé XHTML 1.0"
pankso@7934 197 style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
pankso@7934 198 </ul>
pankso@3512 199 </div>
pankso@3512 200
pankso@3512 201 </body>
pankso@3512 202 </html>