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

New style on mirror1
mirror1.slitaz.org/ : mirror1.slitaz.org/info/ : mirror1.slitaz.org/webboot/ : dvd.slitaz.org
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 16 02:08:09 2015 +0300 (2015-10-16)
parents dd8c986dfebf
children 17ab49508a9f
line diff
     1.1 --- a/mirror/root/dir-generator.php	Sat Oct 10 14:22:49 2015 +0300
     1.2 +++ b/mirror/root/dir-generator.php	Fri Oct 16 02:08:09 2015 +0300
     1.3 @@ -126,7 +126,6 @@
     1.4  $show_hidden_files = false;
     1.5  if (get_conf('dir-listing.hide-dotfile', '"', '"', 'disable') == "disable")
     1.6  	$show_hidden_files = true;
     1.7 -
     1.8  // get_conf('dir-listing.exclude','\(','\)');
     1.9  // get_conf('dir-listing.set-footer','"','"');
    1.10  
    1.11 @@ -186,7 +185,8 @@
    1.12  <head>
    1.13  	<title>Index of /$vpath</title>
    1.14  	<meta charset=\"UTF-8\">
    1.15 -	<meta name=\"description\" content=\"Index of /$vpath\">"
    1.16 +	<meta name=\"description\" content=\"Index of /$vpath\">
    1.17 +";
    1.18  ?>
    1.19  	<meta name="robots" content="index, nofollow">
    1.20  	<meta name="author" content="SliTaz Contributors">
    1.21 @@ -196,9 +196,11 @@
    1.22  </head>
    1.23  <body>
    1.24  
    1.25 +<script>de=document.documentElement;de.className+=(("ontouchstart" in de)?' touch':' no-touch');</script>
    1.26 +
    1.27  <header>
    1.28  	<h1><a href="http://mirror1.slitaz.org/">SliTaz Mirror</a></h1>
    1.29 -	<div id="network">
    1.30 +	<div class="network">
    1.31  		<a class="home" href="http://www.slitaz.org/"></a>
    1.32  		<a href="http://scn.slitaz.org/">Community</a>
    1.33  		<a href="http://doc.slitaz.org/">Doc</a>
    1.34 @@ -211,9 +213,9 @@
    1.35  	</div>
    1.36  </header>
    1.37  
    1.38 -<div id="block"><div>
    1.39 +<div class="block"><div>
    1.40  	<!-- Information/image -->
    1.41 -	<div id="block_info">
    1.42 +	<div class="block_info">
    1.43  		<header>Welcome to Open Source!</header>
    1.44  <?php
    1.45  
    1.46 @@ -260,13 +262,9 @@
    1.47  			document.body.appendChild(element);
    1.48  		}
    1.49  	}
    1.50 -
    1.51 -	document.documentElement.className += (("ontouchstart" in document.documentElement) ? ' touch' : ' no-touch');
    1.52  </script>
    1.53  
    1.54 -<!-- Content -->
    1.55 -<div id="content">
    1.56 -	<div id="mirrors">
    1.57 +<div class="mirrors">
    1.58  <?php
    1.59  
    1.60  	// Mirror list
    1.61 @@ -341,8 +339,10 @@
    1.62  
    1.63  
    1.64  
    1.65 -print "	<div class='list'>
    1.66 -		<div id='lang'>Path: /$vpath</div>
    1.67 +print "<!-- Content -->
    1.68 +<main>
    1.69 +	<div class='list'>
    1.70 +		<div class='lang'>Path: /$vpath</div>
    1.71  		<table>";
    1.72  
    1.73  
    1.74 @@ -505,9 +505,9 @@
    1.75  // Print file information
    1.76  foreach($filelist as $file) {
    1.77  	$filename = $file['name'];
    1.78 -	$url = addslashes($file['name']);
    1.79 +	$url = addslashes($filename);
    1.80  
    1.81 -	if (preg_match('/\.tazpkg$/', $filename))
    1.82 +	if (preg_match('/\.(tazpkg|deb)$/', $filename))
    1.83  		$class = "pkg";
    1.84  	elseif (preg_match('/\.iso$/', $filename))
    1.85  		$class = "iso";
    1.86 @@ -557,27 +557,32 @@
    1.87  ?>
    1.88  
    1.89  <!-- End of content -->
    1.90 -</div>
    1.91 +</main>
    1.92  
    1.93  <footer>
    1.94 -	<p>Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a></p>
    1.95 -	<p>Network:
    1.96 -		<a href="http://scn.slitaz.org/">Community</a>
    1.97 -		<a href="http://doc.slitaz.org/">Doc</a>
    1.98 -		<a href="http://forum.slitaz.org/">Forum</a>
    1.99 -		<a href="http://pkgs.slitaz.org/">Packages</a>
   1.100 -		<a href="http://bugs.slitaz.org">Bugs</a>
   1.101 +	<div>
   1.102 +		Copyright &copy; <span class="year"></span>
   1.103 +		<a href="http://www.slitaz.org/">SliTaz</a>
   1.104 +	</div>
   1.105 +	<div>
   1.106 +		Network:
   1.107 +		<a href="http://scn.slitaz.org/">Community</a> ·
   1.108 +		<a href="http://doc.slitaz.org/">Doc</a> ·
   1.109 +		<a href="http://forum.slitaz.org/">Forum</a> ·
   1.110 +		<a href="http://pkgs.slitaz.org/">Packages</a> ·
   1.111 +		<a href="http://bugs.slitaz.org">Bugs</a> ·
   1.112  		<a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
   1.113 -	</p>
   1.114 -	<p>SliTaz @
   1.115 -		<a href="http://twitter.com/slitaz">Twitter</a>
   1.116 -		<a href="http://www.facebook.com/slitaz">Facebook</a>
   1.117 -		<a href="http://distrowatch.com/slitaz">Distrowatch</a>
   1.118 -		<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
   1.119 +	</div>
   1.120 +	<div>
   1.121 +		SliTaz @
   1.122 +		<a href="http://twitter.com/slitaz">Twitter</a> ·
   1.123 +		<a href="http://www.facebook.com/slitaz">Facebook</a> ·
   1.124 +		<a href="http://distrowatch.com/slitaz">Distrowatch</a> ·
   1.125 +		<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a> ·
   1.126  		<a href="http://flattr.com/profile/slitaz">Flattr</a>
   1.127 -	</p>
   1.128 +	</div>
   1.129  	<img src="static/qr.png" alt="#" onmouseover="this.title = location.href"
   1.130 -			onclick="this.src = QRCodePNG(location.href, this)" />
   1.131 +	onclick="this.src = QRCodePNG(location.href, this)"/>
   1.132  </footer>
   1.133  
   1.134  <?php