website rev 913

main index use config.php to set downlad link and slitaz version
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 08 13:33:43 2012 +0100 (2012-03-08)
parents e21211db5687
children d25a10601731
files config.php index.php
line diff
     1.1 --- a/config.php	Thu Mar 08 13:10:47 2012 +0100
     1.2 +++ b/config.php	Thu Mar 08 13:33:43 2012 +0100
     1.3 @@ -1,3 +1,5 @@
     1.4  <?php
     1.5 -
     1.6 +$mirror  = "http://mirror.slitaz.org/iso";
     1.7 +$stable  = "3.0";
     1.8 +$cooking = "4.0-RC2";
     1.9  ?>
     2.1 --- a/index.php	Thu Mar 08 13:10:47 2012 +0100
     2.2 +++ b/index.php	Thu Mar 08 13:33:43 2012 +0100
     2.3 @@ -18,7 +18,10 @@
     2.4  </head>
     2.5  <body>
     2.6  
     2.7 -<?php include("lib/html/header.html"); ?>
     2.8 +<?php
     2.9 +include("config.php");
    2.10 +include("lib/html/header.html");
    2.11 +?>
    2.12  
    2.13  <!-- Block -->
    2.14  <div id="block">
    2.15 @@ -31,15 +34,15 @@
    2.16  		<h4>About SliTaz</h4>
    2.17  		<p>
    2.18  			SliTaz is an open source and free operating system providing
    2.19 -			a fully featured desktop or server in less than 30 MB. SliTaz
    2.20 +			a fully featured desktop or server in less than 35 MB. SliTaz
    2.21  			is simple to use, fast and stable. We have an active community
    2.22  			and contributors from all over the world making SliTaz finer
    2.23  			every day. 
    2.24  		</p>
    2.25  		<div class="button" style="text-align: left;">
    2.26  			Download:
    2.27 -			<a href="http://mirror.slitaz.org/iso/3.0/slitaz-3.0.iso">SliTaz 3.0</a>
    2.28 -			<a href="http://mirror.slitaz.org/iso/cooking/slitaz-4.0-RC2.iso">SliTaz 4.0-RC2</a>
    2.29 +			<?php echo "<a href='$mirror/$stable/slitaz-$stable.iso'>SliTaz $stable</a>
    2.30 +				<a href='$mirror/cooking/slitaz-$cooking.iso'>SliTaz $cooking</a>"; ?>
    2.31  		</div>
    2.32  	</div>
    2.33  </div>