slitaz-forge diff mirror/root/dir-generator.php @ rev 577

Main mirror is mirror1.slitaz.org
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 26 17:18:34 2014 +0200 (2014-09-26)
parents ba908ef4f9ff
children acc6a00e40ab
line diff
     1.1 --- a/mirror/root/dir-generator.php	Thu Jun 26 09:27:30 2014 +0200
     1.2 +++ b/mirror/root/dir-generator.php	Fri Sep 26 17:18:34 2014 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  	<meta name="description" content="slitaz mirror redirection" />
     1.5  	<meta name="robots" content="index, nofollow" />
     1.6  	<meta name="author" content="SliTaz Contributors" />
     1.7 -	<meta http-equiv="Refresh" content="0;url=http://mirror.slitaz.org/">
     1.8 +	<meta http-equiv="Refresh" content="0;url=http://mirror1.slitaz.org/">
     1.9  </head>
    1.10  <?php
    1.11  }
    1.12 @@ -143,8 +143,8 @@
    1.13  }
    1.14  
    1.15  //$slitaz_style = (dirname($_SERVER["PHP_SELF"]) == '/');
    1.16 -//$slitaz_style = ($_SERVER["SERVER_NAME"] == "mirror.slitaz.org");
    1.17 -$slitaz_style = preg_match("/mirror\.slitaz\./",$_SERVER["SERVER_NAME"]);
    1.18 +//$slitaz_style = ($_SERVER["SERVER_NAME"] == "mirror1.slitaz.org");
    1.19 +$slitaz_style = preg_match("/mirror1\.slitaz\./",$_SERVER["SERVER_NAME"]);
    1.20  if ($slitaz_style) {
    1.21  	$modified = gmdate("D, d M Y H:i:s e", strtotime("-1 hour"));
    1.22  	$expires = gmdate("D, d M Y H:i:s e", strtotime("+1 hour"));
    1.23 @@ -195,7 +195,7 @@
    1.24  		<a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
    1.25  		<a href="http://cook.slitaz.org/">Cook</a>
    1.26  	</div>
    1.27 -	<h1><a href="http://mirror.slitaz.org/">SliTaz Mirror</a></h1>
    1.28 +	<h1><a href="http://mirror1.slitaz.org/">SliTaz Mirror</a></h1>
    1.29  </div>
    1.30  
    1.31  <!-- Block -->
    1.32 @@ -214,9 +214,9 @@
    1.33  	<div id="block_info">
    1.34  		<h4>Welcome to Open Source!</h4>
    1.35  EOT;
    1.36 -	if (preg_match("/mirror\.slitaz\./",$_SERVER["SERVER_NAME"])) print <<<EOT
    1.37 +	if (preg_match("/mirror1\.slitaz\./",$_SERVER["SERVER_NAME"])) print <<<EOT
    1.38  		<p>This is the SliTaz GNU/Linux main mirror. The server runs naturally 
    1.39 -		SliTaz (stable) in an lguest virtual machine provided by 
    1.40 +		SliTaz (stable) in an uml virtual machine provided by 
    1.41  		<a href="http://www.ads-lu.com/">ADS</a> and is located in France.
    1.42  		<a href="/info/">Mirror info...</a></p>
    1.43  EOT;