tazwok rev 372

web/index.php: display tank rrd on tank only
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 21:12:33 2011 +0100 (2011-02-26)
parents 6d135ff6b035
children e42e9b83b14e
files web/index.php
line diff
     1.1 --- a/web/index.php	Sat Feb 26 18:47:34 2011 +0100
     1.2 +++ b/web/index.php	Sat Feb 26 21:12:33 2011 +0100
     1.3 @@ -131,7 +131,9 @@
     1.4  
     1.5  <a name="Summary"></a>
     1.6  <h2>Summary</h2>
     1.7 -<img src="http://tank.slitaz.org/pics/rrd/cpu-day.png" title="cpu daily" alt="cpu daily" />
     1.8 +<?php if (strpos($_SERVER["SERVER_NAME"],"slitaz.org") !== FALSE) { ?>
     1.9 +<img src="http://tank.slitaz.org/pics/rrd/cpu-day.png" title="cpu dailey" alt="cpu daily" />
    1.10 +<?php } ?>
    1.11  <ul>
    1.12  <?php
    1.13  	// Check curent status (update in real time) and display summary.
    1.14 @@ -161,6 +163,8 @@
    1.15  	if ("$version_in_url") {
    1.16  		$version_in_url="?version=$version_in_url";
    1.17  	}
    1.18 +	else if (strpos($_SERVER["REQUEST_URI"],"?") !== FALSE)
    1.19 +		$version_in_url="?";
    1.20  ?>
    1.21  	<li><a href="http://hg.slitaz.org/wok<?php
    1.22  	if ($version != "cooking") echo "-$version";