tazwok view web/index.php @ rev 238

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