wok-current rev 6076

mirror-tools: add mirror-info web page
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 28 18:05:48 2010 +0200 (2010-08-28)
parents 1400c81c35e4
children e3491e83e805
files mirror-tools/stuff/var/www/mirror-info/favicon.ico mirror-tools/stuff/var/www/mirror-info/graphs.php mirror-tools/stuff/var/www/mirror-info/index.php mirror-tools/stuff/var/www/mirror-info/pics/desktop.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-day.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-month.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-week.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-year.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-day.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-month.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-week.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-year.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-day.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-month.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-week.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-year.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-day.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-month.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-week.png mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-year.png mirror-tools/stuff/var/www/mirror-info/pics/slitaz-awstats.png mirror-tools/stuff/var/www/mirror-info/pics/slitaz.png mirror-tools/stuff/var/www/mirror-info/pics/website/br.png mirror-tools/stuff/var/www/mirror-info/pics/website/ch.png mirror-tools/stuff/var/www/mirror-info/pics/website/cn.png mirror-tools/stuff/var/www/mirror-info/pics/website/fr.png mirror-tools/stuff/var/www/mirror-info/pics/website/header.png mirror-tools/stuff/var/www/mirror-info/pics/website/it.png mirror-tools/stuff/var/www/mirror-info/pics/website/logo.png mirror-tools/stuff/var/www/mirror-info/pics/website/logo.xcf mirror-tools/stuff/var/www/mirror-info/pics/website/monitor.png mirror-tools/stuff/var/www/mirror-info/pics/website/nl.png mirror-tools/stuff/var/www/mirror-info/pics/website/si.png mirror-tools/stuff/var/www/mirror-info/pics/website/us.png mirror-tools/stuff/var/www/mirror-info/pics/website/vhosts.png mirror-tools/stuff/var/www/mirror-info/pics/website/xhtml10.png mirror-tools/stuff/var/www/mirror-info/slitaz.css
line diff
     1.1 Binary file mirror-tools/stuff/var/www/mirror-info/favicon.ico has changed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mirror-tools/stuff/var/www/mirror-info/graphs.php	Sat Aug 28 18:05:48 2010 +0200
     2.3 @@ -0,0 +1,132 @@
     2.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2.5 +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     2.7 +<head>
     2.8 +	<title>Mirror RRD stats</title>
     2.9 +	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    2.10 +	<meta name="description" content="slitaz mirror rrdtool graphs" />
    2.11 +	<meta name="robots" content="noindex" />
    2.12 +	<meta name="author" content="SliTaz Contributors" />
    2.13 +	<link rel="shortcut icon" href="favicon.ico" />
    2.14 +	<link rel="stylesheet" type="text/css" href="slitaz.css" />
    2.15 +</head>
    2.16 +
    2.17 +<body bgcolor="#ffffff">
    2.18 +<!-- Header -->
    2.19 +<div id="header">
    2.20 +    <a name="top"></a>
    2.21 +	<a href="http://mirror.slitaz.org/"><img id="logo"
    2.22 +	src="pics/website/logo.png" title="mirror.slitaz.org" alt="mirror.slitaz.org"
    2.23 +	style="border: 0px solid ; width: 200px; height: 74px;" /></a>
    2.24 +	<p id="titre">#!/project/mirror</p>
    2.25 +</div>
    2.26 +<!-- Navigation menu -->
    2.27 +<div id="nav">
    2.28 +
    2.29 +<div class="nav_box">
    2.30 +<h4>About Mirror</h4>
    2.31 +<p>
    2.32 +This is the SliTaz GNU/Linux main mirror. The server runs naturally SliTaz 
    2.33 +(stable) in an lguest virtual machine provided by 
    2.34 +<a href="http://www.ads-lu.com/">ADS</a>.
    2.35 +</p>
    2.36 +
    2.37 +</div>
    2.38 +
    2.39 +<div class="nav_box">
    2.40 +<h4>SliTaz Network</h4>
    2.41 +<ul>
    2.42 +	<li><a href="http://www.slitaz.org/">Main Website</a></li>
    2.43 +	<li><a href="http://forum.slitaz.org/">Community Forum</a></li>
    2.44 +	<li><a href="http://community.slitaz.org/">Community Platform</a></li>
    2.45 +	<li><a href="http://labs.slitaz.org/">SliTaz Laboratories</a></li>
    2.46 +	<li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
    2.47 +	<li><a href="http://boot.slitaz.org/">SliTaz Web Boot</a></li>
    2.48 +	<li><a href="http://tank.slitaz.org/">SliTaz main server</a></li>
    2.49 +	<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
    2.50 +	<li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
    2.51 +</ul>
    2.52 +</div>
    2.53 +
    2.54 +<!-- End navigation menu -->
    2.55 +</div>
    2.56 +
    2.57 +<!-- Content top. -->
    2.58 +<div id="content_top">
    2.59 +<div class="top_left"></div>
    2.60 +<div class="top_right"></div>
    2.61 +</div>
    2.62 +
    2.63 +<!-- Content -->
    2.64 +<div id="content">
    2.65 +
    2.66 +<h1><font color="#3E1220">Mirror RRD stats</font></h1>
    2.67 +<h2><font color="#DF8F06">/usr/bin/rrdtool</font></h2>
    2.68 +
    2.69 +<?php
    2.70 +
    2.71 +$myurl="http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
    2.72 +
    2.73 +function one_graphic($img,$name)
    2.74 +{
    2.75 +	echo '<img src="pics/rrd/'.$img.'" title="'.
    2.76 +		$name.'" alt="'.$name.'" />'."\n";
    2.77 +}
    2.78 +
    2.79 +function graphic($res, $img='')
    2.80 +{
    2.81 +	global $myurl;
    2.82 +	if (!$img) $img=$res;
    2.83 +	echo "<a name=\"".$res."\"></a>";
    2.84 +	echo "<a href=\"".$myurl."?stats=".$res."#".$res."\">\n";
    2.85 +	one_graphic($img."-day.png",$res." daily");
    2.86 +	echo "</a>";
    2.87 +	if (isset($_GET['stats']) && $_GET['stats'] == $res) {
    2.88 +		one_graphic($img."-week.png",$res." weekly");
    2.89 +		one_graphic($img."-month.png",$res." monthly");
    2.90 +		one_graphic($img."-year.png",$res." yearly");
    2.91 +	}
    2.92 +}
    2.93 +
    2.94 +echo "<h3>CPU</h3>\n";
    2.95 +graphic("cpu");
    2.96 +echo "<h3>Memory</h3>\n";
    2.97 +graphic("memory");
    2.98 +echo "<h3>Disk</h3>\n";
    2.99 +graphic("disk");
   2.100 +echo "<h3>Network</h3>\n";
   2.101 +graphic("net","eth0");
   2.102 +
   2.103 +?>
   2.104 +
   2.105 +<!-- End of content with round corner -->
   2.106 +</div>
   2.107 +<div id="content_bottom">
   2.108 +<div class="bottom_left"></div>
   2.109 +<div class="bottom_right"></div>
   2.110 +</div>
   2.111 +
   2.112 +<!-- Start of footer and copy notice -->
   2.113 +<div id="copy">
   2.114 +<p>                                                                          
   2.115 +Last update : <?php echo date('r'); ?>
   2.116 +</p> 
   2.117 +<p>
   2.118 +Copyright &copy; <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
   2.119 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
   2.120 +</p>
   2.121 +<!-- End of copy -->
   2.122 +</div>
   2.123 +
   2.124 +<!-- Bottom and logo's -->
   2.125 +<div id="bottom">
   2.126 +<p>
   2.127 +<a href="http://validator.w3.org/check?uri=referer"><img
   2.128 +   src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
   2.129 +   title="Code validé XHTML 1.0"
   2.130 +   style="width: 80px; height: 15px;" /></a>
   2.131 +</p>
   2.132 +</div>
   2.133 +
   2.134 +</body>
   2.135 +</html>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mirror-tools/stuff/var/www/mirror-info/index.php	Sat Aug 28 18:05:48 2010 +0200
     3.3 @@ -0,0 +1,261 @@
     3.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     3.5 +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     3.7 +<head>
     3.8 +	<title>SliTaz Mirror</title>
     3.9 +	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    3.10 +	<meta name="description" content="slitaz mirror server" />
    3.11 +	<meta name="robots" content="index, nofollow" />
    3.12 +	<meta name="author" content="SliTaz Contributors" />
    3.13 +	<link rel="shortcut icon" href="favicon.ico" />
    3.14 +	<link rel="stylesheet" type="text/css" href="slitaz.css" />
    3.15 +</head>
    3.16 +
    3.17 +<body bgcolor="#ffffff">
    3.18 +<!-- Header -->
    3.19 +<div id="header">
    3.20 +    <a name="top"></a>
    3.21 +	<a href="http://mirror-info.slitaz.org/"><img id="logo"
    3.22 +	src="pics/website/logo.png" title="mirror-info.slitaz.org" alt="mirror-info.slitaz.org"
    3.23 +	style="border: 0px solid ; width: 200px; height: 74px;" /></a>
    3.24 +	<p id="titre">#!/project/mirror</p>
    3.25 +</div>
    3.26 +
    3.27 +<!-- Navigation menu -->
    3.28 +<div id="nav">
    3.29 +
    3.30 +<div class="nav_box">
    3.31 +<h4>About Mirror</h4>
    3.32 +<p>
    3.33 +This is the SliTaz GNU/Linux main mirror. The server runs naturally SliTaz 
    3.34 +(stable) in an lguest virtual machine provided by 
    3.35 +<a href="http://www.ads-lu.com/">Allied Data Sys. (ADS)</a>.
    3.36 +</p>
    3.37 +
    3.38 +</div>
    3.39 +
    3.40 +<div class="nav_box">
    3.41 +<h4>SliTaz Network</h4>
    3.42 +<ul>
    3.43 +	<li><a href="http://www.slitaz.org/">Main Website</a></li>
    3.44 +	<li><a href="http://forum.slitaz.org/">Community Forum</a></li>
    3.45 +	<li><a href="http://community.slitaz.org/">Community Platform</a></li>
    3.46 +	<li><a href="http://labs.slitaz.org/">SliTaz Laboratories</a></li>
    3.47 +	<li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
    3.48 +	<li><a href="http://boot.slitaz.org/">SliTaz Web Boot</a></li>
    3.49 +	<li><a href="http://tank.slitaz.org/">SliTaz main server</a></li>
    3.50 +	<li><a href="http://bb.slitaz.org/">SliTaz Build Bot</a></li>
    3.51 +	<li><a href="http://hg.slitaz.org/">SliTaz Repositories</a></li>
    3.52 +	<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
    3.53 +	<li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
    3.54 +</ul>
    3.55 +</div>
    3.56 +
    3.57 +<!-- End navigation menu -->
    3.58 +</div>
    3.59 +
    3.60 +<!-- Content top. -->
    3.61 +<div id="content_top">
    3.62 +<div class="top_left"></div>
    3.63 +<div class="top_right"></div>
    3.64 +</div>
    3.65 +
    3.66 +<!-- Content -->
    3.67 +<div id="content">
    3.68 +
    3.69 +<h1><font color="#3E1220">Server</font></h1>
    3.70 +<h2><font color="#DF8F06">Codename: mirror</font></h2>
    3.71 +
    3.72 +<p>
    3.73 +Mirror CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .         
    3.74 +"s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
    3.75 +" awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
    3.76 +"if (n == 4) printf \"quad \"; print s }' ")?> -
    3.77 +<?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
    3.78 +"n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
    3.79 +"printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> -
    3.80 +Located in France next to Roubaix. This page has real time statistics 
    3.81 +provided by PHP <code>system()</code>. Mirror is also monitored by RRDtool 
    3.82 +which provides <a href="graphs.php">graphical stats</a>.
    3.83 +</p>
    3.84 +
    3.85 +<h3><a href="graphs.php">
    3.86 +	<img title="Mirror RRDtool graphs" src="pics/website/monitor.png" alt="graphs" />
    3.87 +    </a>System stats</h3>
    3.88 +
    3.89 +<h4>Uptime</h4>
    3.90 +
    3.91 +<pre class="package">
    3.92 +<?php
    3.93 +system("uptime | sed 's/^\s*//'");
    3.94 +?>
    3.95 +</pre>
    3.96 +
    3.97 +<h4>Disk usage</h4>
    3.98 +<pre class="package">
    3.99 +<?php
   3.100 +system("df -h | sed '/^rootfs/d' | grep  '\(^/dev\|Filesystem\)'");
   3.101 +?>
   3.102 +</pre>
   3.103 +
   3.104 +<h4>Network</h4>
   3.105 +<pre class="package">
   3.106 +<?php
   3.107 +system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
   3.108 +?>
   3.109 +</pre>
   3.110 +
   3.111 +<?php if (isset($_GET["all"])) { ?>
   3.112 +<h4>Logins</h4>
   3.113 +<pre class="package">
   3.114 +<?php
   3.115 +system("last");
   3.116 +?>
   3.117 +</pre>
   3.118 +
   3.119 +<h4>Processes</h4>
   3.120 +<pre class="package">
   3.121 +<?php
   3.122 +system("top -n1 -b");
   3.123 +?>
   3.124 +</pre>
   3.125 +<?php } ?>
   3.126 +
   3.127 +<a name="vhosts"></a>
   3.128 +<h3><a href="http://mirror.slitaz.org/awstats.pl?config=info.mirror.slitaz.org" target="_blank">
   3.129 +	<img title="Mirror Virtual hosts" alt="vhosts"
   3.130 +    src="pics/website/vhosts.png" /></a>Virtual hosts</h3>
   3.131 +
   3.132 +<ul>
   3.133 +	<li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz Mirror.
   3.134 +	(<a href="http://mirror.slitaz.org/stats" target="_blank">stats</a>)</li>
   3.135 +	<li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz Flavor builder.
   3.136 +	(<a href="http://mirror.slitaz.org/awstats.pl?config=pizza.mirror.slitaz.org" target="_blank">stats</a>)</li>
   3.137 +	<li><a href="https://ajaxterm.slitaz.org/">ajaxterm.slitaz.org</a> - Slitaz Web Console.
   3.138 +	(<a href="http://mirror.slitaz.org/awstats.pl?config=ajaxterm.slitaz.org" target="_blank">stats</a>)</li>
   3.139 +</ul>
   3.140 +
   3.141 +<a name="replicas"></a>
   3.142 +<h3><a href="http://mirror.slitaz.org/awstats.pl?config=replicas.mirror.slitaz.org" target="_blank">
   3.143 +         <img title="Tank replicas" alt="replicas"
   3.144 +    src="pics/website/vhosts.png" /></a>Tank replicas</h3>
   3.145 +
   3.146 +<ul>
   3.147 +	<li><a href="http://mirror.slitaz.org/www/">www.slitaz.org</a> - SliTaz Website.
   3.148 +	(<a href="http://www.slitaz.org/" target="_blank">main</a>)</li>
   3.149 +	<li><a href="http://mirror.slitaz.org/pkgs/">pkgs.slitaz.org</a> - Packages Web interface.
   3.150 +	(<a href="http://pkgs.slitaz.org/" target="_blank">main</a>)</li>
   3.151 +	<li><a href="http://mirror.slitaz.org/hg/">hg.slitaz.org</a> - Mercurial repositories (read only).
   3.152 +	(<a href="http://hg.slitaz.org/" target="_blank">main</a>
   3.153 +	<a href="http://hg.tuxfamily.org/mercurialroot/slitaz/" target="_blank">tuxfamily</a>)</li>
   3.154 +	<li><a href="http://mirror.slitaz.org/webboot/">boot.slitaz.org</a> - gPXE Web boot.
   3.155 +	(<a href="http://boot.slitaz.org/" target="_blank">main</a>)</li>
   3.156 +</ul>
   3.157 +
   3.158 +<a name="mirrors"></a>
   3.159 +<h3><a href="http://mirror.slitaz.org/awstats.pl?config=rsync" target="_blank">
   3.160 +	<img title="Secondary mirrors" src="pics/website/vhosts.png" 
   3.161 +	 alt="mirrors" /></a>Mirrors</h3>
   3.162 +	These mirrors are updated using the url: <b>rsync://mirror.slitaz.org/slitaz/</b>
   3.163 +	(<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
   3.164 +<ul>
   3.165 +    </a>
   3.166 +	<li><a href="http://en.utrace.de/?query=mirror.switch.ch">
   3.167 +		<img title="map" src="pics/website/ch.png" alt="map" />
   3.168 +		<a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
   3.169 +		http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
   3.170 +		<a href="ftp://mirror.switch.ch/mirror/slitaz/">
   3.171 +		ftp://mirror.switch.ch/mirror/slitaz/</a></li>
   3.172 +	<li><a href="http://en.utrace.de/?query=www.gtlib.gatech.edu">
   3.173 +		<img title="map" src="pics/website/us.png" alt="map" />
   3.174 +		<a href="http://www.gtlib.gatech.edu/pub/slitaz/">
   3.175 +		http://www.gtlib.gatech.edu/pub/slitaz/</a> or
   3.176 +		<a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">
   3.177 +		ftp://ftp.gtlib.gatech.edu/pub/slitaz/</a></li>
   3.178 +	<li><a href="http://en.utrace.de/?query=download.tuxfamily.org">
   3.179 +		<img title="map" src="pics/website/fr.png" alt="map" />
   3.180 +		<a href="http://download.tuxfamily.org/slitaz/">
   3.181 +		http://download.tuxfamily.org/slitaz/</a></li>
   3.182 +	<!-- li><a href="http://www.linuxembarque.com/slitaz/mirror/">
   3.183 +		http://www.linuxembarque.com/slitaz/mirror/</a></li -->
   3.184 +	<li><a href="http://en.utrace.de/?query=mirror.lupaworld.com">
   3.185 +		<img title="map" src="pics/website/cn.png" alt="map" />
   3.186 +		<a href="http://mirror.lupaworld.com/slitaz/">
   3.187 +		http://mirror.lupaworld.com/slitaz/</a></li>
   3.188 +	<li <a href="http://en.utrace.de/?query=slitaz.c3sl.ufpr.br">
   3.189 +		<img title="map" src="pics/website/br.png" alt="map" />
   3.190 +		<a href="http://slitaz.c3sl.ufpr.br/">
   3.191 +		http://slitaz.c3sl.ufpr.br/</a> or
   3.192 +		<a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">
   3.193 +		ftp://slitaz.c3sl.ufpr.br/slitaz/</a></li>
   3.194 +	<li><a href="http://en.utrace.de/?query=slitaz.mirror.garr.it">
   3.195 +		<img title="map" src="pics/website/it.png" alt="map" />
   3.196 +		<a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
   3.197 +		http://slitaz.mirror.garr.it/mirrors/slitaz/</a></li>
   3.198 +	<!-- li><a href="http://mirror.drustvo-dns.si/slitaz/">
   3.199 +		http://mirror.drustvo-dns.si/slitaz/</a></li -->
   3.200 +	<li><a href="http://en.utrace.de/?query=ftp.pina.si">
   3.201 +		<img title="map" src="pics/website/si.png" alt="map" />
   3.202 +		<a href="ftp://ftp.pina.si/slitaz/">
   3.203 +		ftp://ftp.pina.si/slitaz/</a></li>
   3.204 +	<li><a href="http://en.utrace.de/?query=distro.ibiblio.org˛">
   3.205 +		<img title="map" src="pics/website/us.png" alt="map" />
   3.206 +		<a href="http://distro.ibiblio.org/pub/linux/distributions/slitaz/">
   3.207 +		http://distro.ibiblio.org/pub/linux/distributions/slitaz/</a></li>
   3.208 +	<li><a href="http://en.utrace.de/?query=ftp.vim.org">
   3.209 +		<img title="map" src="pics/website/nl.png" alt="map" />
   3.210 +		<a href="http://ftp.vim.org/ftp/os/Linux/distr/slitaz/">
   3.211 +		http://ftp.vim.org/ftp/os/Linux/distr/slitaz/</a></li>
   3.212 +</ul>
   3.213 +
   3.214 +<a name="builds"></a>
   3.215 +<h3><img title="Daily builds" src="pics/website/monitor.png" alt="builds" />
   3.216 +    Daily builds</h3>
   3.217 +
   3.218 +<?php
   3.219 +function display_log($file,$anchor)
   3.220 +{
   3.221 +echo '<a name="'.$anchor.'"></a>';
   3.222 +system("stat -c '<h4>%y %n</h4>' ".$file." | sed -e 's/.000000000//' -e 's|/var/log/\(.*\).log|\\1.iso|'");
   3.223 +echo "<pre>";
   3.224 +system("cat ".$file." | sed -e 's/.\[[0-9][^mG]*.//g' | awk '".
   3.225 +'{ if (/\[/) { n=index($0,"["); printf("%s%s%s\n",substr($0,1,n-1),'.
   3.226 +'substr("\t\t\t\t\t\t\t",1,9-(n/8)),substr($0,n)); } else print }'."'");
   3.227 +echo "</pre>";
   3.228 +}
   3.229 +
   3.230 +display_log("/var/log/packages-stable.log", "buildstable" );
   3.231 +display_log("/var/log/packages-cooking.log","buildcooking");
   3.232 +display_log("/var/log/sources-cooking.log", "buildsources");
   3.233 +?>
   3.234 +<!-- End of content with round corner -->
   3.235 +</div>
   3.236 +<div id="content_bottom">
   3.237 +<div class="bottom_left"></div>
   3.238 +<div class="bottom_right"></div>
   3.239 +</div>
   3.240 +
   3.241 +<!-- Start of footer and copy notice -->
   3.242 +<div id="copy">
   3.243 +<p>                                                                          
   3.244 +Last update : <?php echo date('r'); ?>
   3.245 +</p> 
   3.246 +<p>
   3.247 +Copyright &copy; <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
   3.248 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
   3.249 +</p>
   3.250 +<!-- End of copy -->
   3.251 +</div>
   3.252 +
   3.253 +<!-- Bottom and logo's -->
   3.254 +<div id="bottom">
   3.255 +<p>
   3.256 +<a href="http://validator.w3.org/check?uri=referer"><img
   3.257 +   src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
   3.258 +   title="Code validé XHTML 1.0"
   3.259 +   style="width: 80px; height: 15px;" /></a>
   3.260 +</p>
   3.261 +</div>
   3.262 +
   3.263 +</body>
   3.264 +</html>
     4.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/desktop.png has changed
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-day.png	Sat Aug 28 18:05:48 2010 +0200
     5.3 @@ -0,0 +1,1 @@
     5.4 +/home/bellard/Public/pics/rrd/cpu-day.png
     5.5 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-month.png	Sat Aug 28 18:05:48 2010 +0200
     6.3 @@ -0,0 +1,1 @@
     6.4 +/home/bellard/Public/pics/rrd/cpu-month.png
     6.5 \ No newline at end of file
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-week.png	Sat Aug 28 18:05:48 2010 +0200
     7.3 @@ -0,0 +1,1 @@
     7.4 +/home/bellard/Public/pics/rrd/cpu-week.png
     7.5 \ No newline at end of file
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-year.png	Sat Aug 28 18:05:48 2010 +0200
     8.3 @@ -0,0 +1,1 @@
     8.4 +/home/bellard/Public/pics/rrd/cpu-year.png
     8.5 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-day.png	Sat Aug 28 18:05:48 2010 +0200
     9.3 @@ -0,0 +1,1 @@
     9.4 +/home/bellard/Public/pics/rrd/disk-day.png
     9.5 \ No newline at end of file
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-month.png	Sat Aug 28 18:05:48 2010 +0200
    10.3 @@ -0,0 +1,1 @@
    10.4 +/home/bellard/Public/pics/rrd/disk-month.png
    10.5 \ No newline at end of file
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-week.png	Sat Aug 28 18:05:48 2010 +0200
    11.3 @@ -0,0 +1,1 @@
    11.4 +/home/bellard/Public/pics/rrd/disk-week.png
    11.5 \ No newline at end of file
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-year.png	Sat Aug 28 18:05:48 2010 +0200
    12.3 @@ -0,0 +1,1 @@
    12.4 +/home/bellard/Public/pics/rrd/disk-year.png
    12.5 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-day.png	Sat Aug 28 18:05:48 2010 +0200
    13.3 @@ -0,0 +1,1 @@
    13.4 +/home/bellard/Public/pics/rrd/eth0-day.png
    13.5 \ No newline at end of file
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-month.png	Sat Aug 28 18:05:48 2010 +0200
    14.3 @@ -0,0 +1,1 @@
    14.4 +/home/bellard/Public/pics/rrd/eth0-month.png
    14.5 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-week.png	Sat Aug 28 18:05:48 2010 +0200
    15.3 @@ -0,0 +1,1 @@
    15.4 +/home/bellard/Public/pics/rrd/eth0-week.png
    15.5 \ No newline at end of file
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-year.png	Sat Aug 28 18:05:48 2010 +0200
    16.3 @@ -0,0 +1,1 @@
    16.4 +/home/bellard/Public/pics/rrd/eth0-year.png
    16.5 \ No newline at end of file
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-day.png	Sat Aug 28 18:05:48 2010 +0200
    17.3 @@ -0,0 +1,1 @@
    17.4 +/home/bellard/Public/pics/rrd/memory-day.png
    17.5 \ No newline at end of file
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-month.png	Sat Aug 28 18:05:48 2010 +0200
    18.3 @@ -0,0 +1,1 @@
    18.4 +/home/bellard/Public/pics/rrd/memory-month.png
    18.5 \ No newline at end of file
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-week.png	Sat Aug 28 18:05:48 2010 +0200
    19.3 @@ -0,0 +1,1 @@
    19.4 +/home/bellard/Public/pics/rrd/memory-week.png
    19.5 \ No newline at end of file
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-year.png	Sat Aug 28 18:05:48 2010 +0200
    20.3 @@ -0,0 +1,1 @@
    20.4 +/home/bellard/Public/pics/rrd/memory-year.png
    20.5 \ No newline at end of file
    21.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/slitaz-awstats.png has changed
    22.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/slitaz.png has changed
    23.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/br.png has changed
    24.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/ch.png has changed
    25.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/cn.png has changed
    26.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/fr.png has changed
    27.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/header.png has changed
    28.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/it.png has changed
    29.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/logo.png has changed
    30.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/logo.xcf has changed
    31.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/monitor.png has changed
    32.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/nl.png has changed
    33.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/si.png has changed
    34.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/us.png has changed
    35.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/vhosts.png has changed
    36.1 Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/xhtml10.png has changed
    37.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.2 +++ b/mirror-tools/stuff/var/www/mirror-info/slitaz.css	Sat Aug 28 18:05:48 2010 +0200
    37.3 @@ -0,0 +1,382 @@
    37.4 +/*
    37.5 +	CSS style for SliTaz GNU/Linux website
    37.6 +	www.slitaz.org - (c) 2007 Pankso
    37.7 +*/
    37.8 +
    37.9 +html {
   37.10 +	height:  102%;
   37.11 +}
   37.12 +
   37.13 +body {
   37.14 +	background: #ffffff;
   37.15 +	color: black;
   37.16 +	font: 13px sans-serif, vernada, arial;
   37.17 +	margin: 0;
   37.18 +}
   37.19 +
   37.20 +/* Accessibility */
   37.21 +
   37.22 +#access {
   37.23 +	position: absolute;
   37.24 +	top: 4px;
   37.25 +	right: 4px;
   37.26 +	text-align: right;
   37.27 +	width: 100%;
   37.28 +	margin: 0;
   37.29 +	font-size: 11px;
   37.30 +	font-weight: bold;
   37.31 +}
   37.32 +
   37.33 +#access a {
   37.34 +	background: inherit;
   37.35 +	color: white;
   37.36 +	text-decoration: none;
   37.37 +}
   37.38 +
   37.39 +#access a:hover {
   37.40 +	background: inherit;
   37.41 +	color: #222222;
   37.42 +}
   37.43 +
   37.44 +/* Header and title */
   37.45 +
   37.46 +#header{
   37.47 +	background: #f0ba08 url(pics/website/header.png) repeat-x top;
   37.48 +	color: black;
   37.49 +	width: 100%;
   37.50 +	height: 50px;
   37.51 +	border-top: 1px solid black;
   37.52 +	border-bottom: 1px solid black;
   37.53 +	margin-bottom: 30px;
   37.54 +}
   37.55 +
   37.56 +#titre {
   37.57 +	position: absolute;
   37.58 +	font-size: 16px;
   37.59 +	font-weight: bolder ;
   37.60 +	margin-left: 200px;
   37.61 +	margin-top: 28px;
   37.62 +}
   37.63 +
   37.64 +#logo {
   37.65 +	position: absolute;
   37.66 +	float: left;
   37.67 +	margin-left: 16px;
   37.68 +	margin-top: 0px;
   37.69 +}
   37.70 +
   37.71 +/* Navigation */
   37.72 +
   37.73 +#nav {
   37.74 +	position: absolute;
   37.75 +	top: 76px;
   37.76 +	right: 40px;
   37.77 +	color: #555555;
   37.78 +	float: right;
   37.79 +	width: 250px;
   37.80 +	line-height: 1.5em;
   37.81 +	text-align: left;
   37.82 +	font-size: 12px;
   37.83 +}
   37.84 +
   37.85 +#nav ul {
   37.86 +	-moz-border-radius: 8px;
   37.87 +	-webkit-border-radius: 8px;
   37.88 +	list-style-type: none;
   37.89 +	margin: 10px 0;
   37.90 +	padding: 10px 24px 10px 24px;
   37.91 +	background-color: #eaeaea;
   37.92 +}
   37.93 +
   37.94 +#nav .nav_box ul {
   37.95 +	list-style-type: none;
   37.96 +	margin: 0;
   37.97 +	padding: 10px 24px 10px 0px;
   37.98 +}
   37.99 +
  37.100 +#nav li {
  37.101 +	display: inline;
  37.102 +}
  37.103 +
  37.104 +#nav h4 {
  37.105 +	font-size: 110%;
  37.106 +	color: #666666;
  37.107 +	font-weight: bold;
  37.108 +	margin: 0;
  37.109 +	padding: 0 0 1px 0;
  37.110 +	border-bottom: 1px solid #cecece;
  37.111 +}
  37.112 +
  37.113 +#nav a {
  37.114 +	color: #0F314E;
  37.115 +	background: inherit;
  37.116 +	display: block;
  37.117 +	text-decoration: none;
  37.118 +	font-weight: bold;
  37.119 +}
  37.120 +
  37.121 +#nav a:hover {
  37.122 +	color: #DF8F06;
  37.123 +	text-decoration: none;
  37.124 +	display: block;
  37.125 +}
  37.126 +
  37.127 +#nav hr {
  37.128 +	margin: 2px 0px 1px 0px;
  37.129 +	border: 0px;
  37.130 +	border-top: 1px solid #BDBDBD;
  37.131 +
  37.132 +}
  37.133 +
  37.134 +.nav_box {
  37.135 +	-moz-border-radius: 8px;
  37.136 +	-webkit-border-radius: 8px;
  37.137 +	margin: 10px 0;
  37.138 +	padding: 10px 24px 10px 24px;
  37.139 +	background-color: #eaeaea;
  37.140 +	text-align: justify;
  37.141 +}
  37.142 +
  37.143 +#nav .nav_box p {
  37.144 +	line-height: 1.3em;
  37.145 +}
  37.146 +
  37.147 +#nav .nav_box p a {
  37.148 +	display: inline;
  37.149 +	font-weight: normal;
  37.150 +	text-decoration: none;
  37.151 +}
  37.152 +
  37.153 +#nav .nav_box p a:hover {
  37.154 +	text-decoration: none;
  37.155 +	color: #DF8F06;
  37.156 +	background: inherit;
  37.157 +}
  37.158 +
  37.159 +#nav hr {
  37.160 +	height: 0px;
  37.161 +	border: 0px solid #eaeaea;
  37.162 +}
  37.163 +
  37.164 +/* Page content */
  37.165 +
  37.166 +#content, #content_bottom, #content_top {
  37.167 +	background: white;
  37.168 +	color: black;
  37.169 +	text-align: justify;
  37.170 +}
  37.171 +
  37.172 +#content {
  37.173 +	height: auto;
  37.174 +	margin: 6px 280px 0px 0px;
  37.175 +	padding: 0px 40px 60px 40px;
  37.176 +}
  37.177 +
  37.178 +#content li {
  37.179 +	line-height: 1.5em;
  37.180 +	text-align: left;
  37.181 +}
  37.182 +
  37.183 +/* Legal informations */
  37.184 +
  37.185 +#copy {
  37.186 +	font-size: 11px ;
  37.187 +	text-align: center ;
  37.188 +	background: transparent;
  37.189 +	color: #a8a8a8;
  37.190 +	padding-top: 10px;
  37.191 +}
  37.192 +
  37.193 +#copy a {
  37.194 +	background: inherit;
  37.195 +	color: #a8a8a8;
  37.196 +}
  37.197 +
  37.198 +#copy a:hover {
  37.199 +	background: inherit;
  37.200 +	color: #666666;
  37.201 +}
  37.202 +
  37.203 +/* Footer */
  37.204 +
  37.205 +#bottom {
  37.206 +	float: none;
  37.207 +	background: inherit;
  37.208 +	color: black;
  37.209 +	width: auto;
  37.210 +	clear: both;
  37.211 +	padding: 0;
  37.212 +	margin: 0;
  37.213 +	text-align: center;
  37.214 +	vertical-align: middle;
  37.215 +}
  37.216 +
  37.217 +#news li {
  37.218 +	list-style-type: square;
  37.219 +	border-bottom: 1px dotted #BEBEBE;
  37.220 +	margin-left: -25px;
  37.221 +	padding: 4px 0px 4px 0px;
  37.222 +}
  37.223 +
  37.224 +#gallery {
  37.225 +	text-align: center;
  37.226 +}
  37.227 +
  37.228 +#gallery table {
  37.229 +	margin: 30px 0px 30px 0px;
  37.230 +}
  37.231 +
  37.232 +/* Clouds */
  37.233 +
  37.234 +#cloud {
  37.235 +	padding: 20px 0px 20px 0px;
  37.236 +	line-height: 3em;
  37.237 +	text-align: center;
  37.238 +}
  37.239 +#cloud a { padding: 4px; color: #956411; }
  37.240 +#cloud a.tag1 { font-size: 0.7em; font-weight: 100; }
  37.241 +#cloud a.tag2 { font-size: 0.8em; font-weight: 200; }
  37.242 +#cloud a.tag3 { font-size: 0.9em; font-weight: 300; }
  37.243 +#cloud a.tag4 { font-size: 1.0em; font-weight: 400; }
  37.244 +#cloud a.tag5 { font-size: 1.2em; font-weight: 500; }
  37.245 +#cloud a.tag6 { font-size: 1.4em; font-weight: 600; }
  37.246 +#cloud a.tag7 { font-size: 1.6em; font-weight: 700; }
  37.247 +#cloud a.tag8 { font-size: 1.8em; font-weight: 800; }
  37.248 +#cloud a.tag9 { font-size: 2.2em; font-weight: 900; }
  37.249 +#cloud a.tag10 { font-size: 2.5em; font-weight: 900; }
  37.250 +
  37.251 +/* CSS class. */
  37.252 +
  37.253 +.infobox {
  37.254 +	margin: 10px;
  37.255 +	padding: 12px;
  37.256 +	background: #f2f2f2;
  37.257 +	border: 1px solid #eaeaea;
  37.258 +	-moz-border-radius: 8px;
  37.259 +	-webkit-border-radius: 8px;
  37.260 +}
  37.261 +
  37.262 +/* HTML styles */
  37.263 +
  37.264 +h1 {
  37.265 +	color: blue;
  37.266 +	background: inherit;
  37.267 +	text-align: left;
  37.268 +	margin: 0px 0px 10px 0px;
  37.269 +	font-size: 140%;
  37.270 +	font-weight: bold;
  37.271 +}
  37.272 +
  37.273 +h2 {
  37.274 +	color: #DF8F06;
  37.275 +	/* border-top: 1px solid #f3f3f3; */
  37.276 +	border-left: 8px solid #f3f3f3;
  37.277 +	padding: 4px 0px 4px 4px;
  37.278 +	margin: 0;
  37.279 +	font-size: 140%;
  37.280 +	font-weight: bold;
  37.281 +}
  37.282 +
  37.283 +h3 {
  37.284 +	font-weight: bold;
  37.285 +	color: #6c0023;
  37.286 +	background: inherit;
  37.287 +}
  37.288 +
  37.289 +h3 img {
  37.290 +	vertical-align: middle;
  37.291 +	padding-right: 4px;
  37.292 +}
  37.293 +
  37.294 +a {
  37.295 +	text-decoration: underline;
  37.296 +	color: #0F314E;
  37.297 +	background: inherit;
  37.298 +}
  37.299 +
  37.300 +a:hover {
  37.301 +	text-decoration: none;
  37.302 +	color: blue;
  37.303 +	background: inherit;
  37.304 +}
  37.305 +
  37.306 +code {
  37.307 +	font-size: 12px;
  37.308 +	color: #669900;
  37.309 +	background: inherit;
  37.310 +}
  37.311 +
  37.312 +tt {
  37.313 +	color: #15EE15;
  37.314 +	background: inherit;
  37.315 +}
  37.316 +
  37.317 +img {
  37.318 +	border: 0pt none;
  37.319 +}
  37.320 +
  37.321 +fieldset {
  37.322 +	background: #E2ECf6;
  37.323 +	color: black;
  37.324 +	margin-top: 25px;
  37.325 +	border: 1px solid black;
  37.326 +}
  37.327 +
  37.328 +legend {
  37.329 +	border: 1px solid black;
  37.330 +	color: #6c0023;
  37.331 +	background: #eaeaea;
  37.332 +	font-weight: bold;
  37.333 +}
  37.334 +
  37.335 +pre {
  37.336 +	padding: 5px;
  37.337 +	color: black;
  37.338 +	background: #E1E0B0;
  37.339 +}
  37.340 +
  37.341 +pre.script {
  37.342 +	padding: 10px;
  37.343 +	color: black;
  37.344 +	background: #E8E8E8;
  37.345 +	border: 1px inset #606060;
  37.346 +}
  37.347 +
  37.348 +textarea {
  37.349 +	background: #E5E5E5;
  37.350 +	margin-top: 12px;
  37.351 +}
  37.352 +
  37.353 +input[type=submit] {
  37.354 +	background: #E5E5E5;
  37.355 +	color: black;
  37.356 +	border: 1px outset #111111;
  37.357 +	font-weight: bold;
  37.358 +}
  37.359 +
  37.360 +input[type=submit]:hover {
  37.361 +	background: #F3F3F3;
  37.362 +	color: black;
  37.363 +}
  37.364 +
  37.365 +/* Packages pages */
  37.366 +
  37.367 +.pkg_nav {
  37.368 +	border-top: 1px solid black;
  37.369 +	margin-top: 10px;
  37.370 +	padding-top: 10px;
  37.371 +}
  37.372 +
  37.373 +pre.package {
  37.374 +	padding: 0px;
  37.375 +	color: black;
  37.376 +	background: white;
  37.377 +}
  37.378 +
  37.379 +p.get {
  37.380 +	text-align: center;
  37.381 +	padding: 10px;
  37.382 +	color: black;
  37.383 +	background: #F3F3F3;
  37.384 +	border: 1px solid #DEDEDE;
  37.385 +}