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

Virtual machines have moved
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 01 10:43:39 2021 +0000 (2021-02-01)
parents b48416ef76bb
children cfad9fa3f53c
line diff
     1.1 --- a/mirror/root/dir-generator.php	Thu Aug 20 08:44:15 2020 +0000
     1.2 +++ b/mirror/root/dir-generator.php	Mon Feb 01 10:43:39 2021 +0000
     1.3 @@ -165,6 +165,7 @@
     1.4  //$slitaz_style = (dirname($_SERVER["PHP_SELF"]) == '/');
     1.5  //$slitaz_style = ($_SERVER["SERVER_NAME"] == "mirror1.slitaz.org");
     1.6  $slitaz_style = preg_match("/mirror1\.slitaz\./", $_SERVER["SERVER_NAME"]);
     1.7 +if (!$slitaz_style) $slitaz_style = preg_match("/mirror\.slitaz\./", $_SERVER["SERVER_NAME"]);
     1.8  
     1.9  if ($slitaz_style) {
    1.10  	// SliTaz Style
    1.11 @@ -208,8 +209,6 @@
    1.12  		<a href="http://scn.slitaz.org/">Community</a>
    1.13  		<a href="http://doc.slitaz.org/">Doc</a>
    1.14  		<a href="http://forum.slitaz.org/">Forum</a>
    1.15 -		<a href="http://pro.slitaz.org/">Pro</a>
    1.16 -		<a href="https://slitaz.spreadshirt.net/">Shop</a>
    1.17  		<a href="http://bugs.slitaz.org">Bugs</a>
    1.18  		<a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
    1.19  		<a href="http://cook.slitaz.org/">Cook</a>
    1.20 @@ -225,10 +224,15 @@
    1.21  	if (preg_match("/mirror1\.slitaz\./", $_SERVER["SERVER_NAME"]))
    1.22  		{ ?>
    1.23  		<p>This is the SliTaz GNU/Linux main mirror. The server runs naturally 
    1.24 -		SliTaz (stable) in an uml virtual machine provided by 
    1.25 -		<a href="http://www.ads-lu.com/">ADS</a> and is located in France.</p>
    1.26 +		SliTaz (stable) in a virtual machine provided by 
    1.27 +		<a href="https://www.linkedin.com/company/balinor-technologies/">balinor-technologies</a>
    1.28 +		and is located in France.</p>
    1.29  		<p><a href="/info/">Mirror info...</a></p>
    1.30  <?php
    1.31 +	} else { ?>
    1.32 +		<p>This is a SliTaz GNU/Linux mirror. The server is synchronized regularly
    1.33 +		with the <a href="https://mirror1.slitaz.org/">Slitaz main mirror</a>
    1.34 +<?php
    1.35  	}
    1.36  
    1.37  	?>
    1.38 @@ -498,7 +502,7 @@
    1.39  
    1.40  // Print folder information
    1.41  foreach($folderlist as $folder)
    1.42 -	print "<tr><td class='dir'><a href='" . addslashes($folder['name']). "'>" .
    1.43 +	print "<tr><td class='dir'><a href='" . addslashes($folder['name']). "/'>" .
    1.44  		htmlentities($folder['name']) . "</a>/</td>" .
    1.45  		"<td>" . $folder['modtimeasc'] . "</td>" .
    1.46  		"<td>- &nbsp;</td></tr>\n";
    1.47 @@ -584,7 +588,7 @@
    1.48  		<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a> ยท
    1.49  		<a href="http://flattr.com/profile/slitaz">Flattr</a>
    1.50  	</div>
    1.51 -	<img src="static/qr.png" alt="#" onmouseover="this.title = location.href"
    1.52 +	<img src="/static/qr.png" alt="#" onmouseover="this.title = location.href"
    1.53  	onclick="this.src = QRCodePNG(location.href, this)"/>
    1.54  </footer>
    1.55