slitaz-forge diff mirror/root/dir-generator.php @ rev 591
mirror/root/dir-generator.php: ISO-8859-1 -> UTF-8; white here already implemented link to the WebArchive (remove line breaks); remove unwanted letters from regexp. mirror/root/static/slitaz.css: white links on light-grey background -> brown links; searchbox with type="search" (it adds "clean" button on the right side when typing).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 17 15:20:34 2015 +0200 (2015-01-17) |
parents | 61320a31bd38 |
children | d3a31a897d56 |
line diff
1.1 --- a/mirror/root/dir-generator.php Sat Dec 13 18:50:05 2014 +0100 1.2 +++ b/mirror/root/dir-generator.php Sat Jan 17 15:20:34 2015 +0200 1.3 @@ -7,7 +7,7 @@ 1.4 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 1.5 <head> 1.6 <title>SliTaz mirror redirection</title> 1.7 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.8 + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 1.9 <meta name="description" content="slitaz mirror redirection" /> 1.10 <meta name="robots" content="index, nofollow" /> 1.11 <meta name="author" content="SliTaz Contributors" /> 1.12 @@ -163,8 +163,8 @@ 1.13 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 1.14 <head> 1.15 <title>Index of /$vpath</title> 1.16 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.17 - <meta name="description" content=">Index of /$vpath" /> 1.18 + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 1.19 + <meta name="description" content="Index of /$vpath" /> 1.20 <meta name="robots" content="index, nofollow" /> 1.21 <meta name="author" content="SliTaz Contributors" /> 1.22 <link rel="shortcut icon" href="/static/favicon.ico" /> 1.23 @@ -254,7 +254,8 @@ 1.24 <div id="content"> 1.25 1.26 <div id="mirrors"> 1.27 -<img src="/static/network.png" alt="[ Mirrors ]" style="margin-right: 5px;" /> 1.28 +<a href="http://web.archive.org/web/*/http://mirror.slitaz.org"><img 1.29 + src="/static/network.png" alt="[ Mirrors ]" style="margin-right: 5px;" /></a> 1.30 EOT; 1.31 1.32 // Mirror list 1.33 @@ -485,7 +486,7 @@ 1.34 ".count($folderlist)." folders and ".count($filelist)." files.</div>"; 1.35 if (filesize($path."/README")) { 1.36 echo "<pre>\n"; 1.37 - echo preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Zа-яА-Я()0-9@:%_+.~#?&;//=]+)!i', 1.38 + echo preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Z()0-9@:%_+.~#?&;//=]+)!i', 1.39 '<a href="$1">$1</a>', file_get_contents($path."/README")); 1.40 echo "</pre>\n"; 1.41 } 1.42 @@ -518,7 +519,7 @@ 1.43 <p> 1.44 <a href="http://validator.w3.org/check?uri=referer"> 1.45 <img src="/static/xhtml10.png" 1.46 - alt="Valid XHTML 1.0" title="Code valid XHTML 1.0" 1.47 + alt="Valid XHTML 1.0" title="Valid XHTML 1.0 Transitional" 1.48 style="width: 80px; height: 15px;" /></a> 1.49 </p> 1.50 </div>