website diff it/doc/index.php @ rev 1094

Edit on index.php 10-12-12 1:57:42
author Adnan Sinanovic <sinanovicha@gmail.com>
date Fri Oct 12 13:58:07 2012 +0000 (2012-10-12)
parents 2624878c24e8
children 9ed0bfb74392
line diff
     1.1 --- a/it/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     1.2 +++ b/it/doc/index.php	Fri Oct 12 13:58:07 2012 +0000
     1.3 @@ -98,14 +98,22 @@
     1.4  </p>
     1.5  
     1.6  <ul>
     1.7 -	<li><a href="/en/doc/releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 - 
     1.8 -	Note di Rilascio</a></li>
     1.9 -	<li><a href="/en/doc/releases/3.0/relnotes.en.html">SliTaz GNU/Linux 3.0 - 
    1.10 -	Note di Rilascio</a></li>
    1.11 -	<li><a href="/en/doc/releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 - 
    1.12 -	Note di Rilascio</a></li>
    1.13 -	<li><a href="/en/doc/releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 - 
    1.14 -	Note di Rilascio</a></li>
    1.15 +<?php
    1.16 +	$relnotes = array();
    1.17 +	for ($release = 1;; $release++) {
    1.18 +		$file = "releases/".$release.".0/relnotes.it.html";
    1.19 +		if (!file_exists($file)) {
    1.20 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    1.21 +			if (!file_exists($file))
    1.22 +				break;
    1.23 +		}
    1.24 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    1.25 +	}
    1.26 +	foreach ($relnotes as $release) {
    1.27 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    1.28 +		print "		Note di Rilascio</a></li>\n";
    1.29 +	}
    1.30 +?>
    1.31  </ul>
    1.32  
    1.33  <!-- End of content -->