tazwok rev 342
web/index.php: small improvment
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 22 16:01:59 2011 +0100 (2011-02-22) |
parents | e61948e8d2a3 |
children | 6845a689d4fe |
files | web/index.php |
line diff
1.1 --- a/web/index.php Tue Feb 22 14:06:26 2011 +0100 1.2 +++ b/web/index.php Tue Feb 22 16:01:59 2011 +0100 1.3 @@ -1,5 +1,3 @@ 1.4 - 1.5 - 1.6 <?php 1.7 $version=$_GET["version"]; 1.8 if (file_exists("conf-$version.php")) { 1.9 @@ -126,33 +124,31 @@ 1.10 </p> 1.11 1.12 <h2>Summary</h2> 1.13 -<pre class="package"> 1.14 +<ul> 1.15 <?php 1.16 -// Check curent status (update in real time) and display summary. 1.17 -if (file_exists($lockfile)) { 1.18 - echo "Status : Chroot is mounted\n"; 1.19 -} 1.20 -else { 1.21 - echo "Status : Chroot is not mounted\n"; 1.22 -} 1.23 -include("$db_dir/summary"); 1.24 + // Check curent status (update in real time) and display summary. 1.25 + if (file_exists($lockfile)) { 1.26 + echo "<li>Status: Chroot is mounted</li>\n"; 1.27 + } 1.28 + else { 1.29 + echo "<li>Status: Chroot is not mounted</li>\n"; 1.30 + } 1.31 + include("$db_dir/summary"); 1.32 ?> 1.33 -</pre> 1.34 -<ul> 1.35 -<li>Packages in the wok: <?php 1.36 -system("cd $wok && ls -1 | wc -l"); ?></li> 1.37 -<li>Packages in the main repository: <?php 1.38 -system("cd $packages && ls -1t *.tazpkg | wc -l"); ?></li> 1.39 -<li>Packages in the incoming repository: <?php 1.40 -system("cd $incoming && ls -1t *.tazpkg | wc -l"); ?></li> 1.41 -<li>Commited packages: <?php 1.42 -system("wc -l $packages/commit | cut -f 1 -d ' '"); ?></li> 1.43 -<li>Packages to cook: <?php 1.44 -system("wc -l $packages/cooklist | cut -f 1 -d ' '"); ?></li> 1.45 -<li>Broken packages: <?php 1.46 -system("wc -l $packages/broken | cut -f 1 -d ' '"); ?></li> 1.47 -<li>Blocked packages: <?php 1.48 -system("wc -l $packages/blocked | cut -f 1 -d ' '"); ?></li> 1.49 + <li>Packages in the wok: <?php 1.50 + system("cd $wok && ls -1 | wc -l"); ?></li> 1.51 + <li>Packages in the main repository: <?php 1.52 + system("cd $packages && ls -1t *.tazpkg | wc -l"); ?></li> 1.53 + <li>Packages in the incoming repository: <?php 1.54 + system("cd $incoming && ls -1t *.tazpkg | wc -l"); ?></li> 1.55 + <li>Commited packages: <?php 1.56 + system("wc -l $packages/commit | cut -f 1 -d ' '"); ?></li> 1.57 + <li>Packages to cook: <?php 1.58 + system("wc -l $packages/cooklist | cut -f 1 -d ' '"); ?></li> 1.59 + <li>Broken packages: <?php 1.60 + system("wc -l $packages/broken | cut -f 1 -d ' '"); ?></li> 1.61 + <li>Blocked packages: <?php 1.62 + system("wc -l $packages/blocked | cut -f 1 -d ' '"); ?></li> 1.63 </ul> 1.64 1.65 <h3>Commit</h3>