website rev 751
Move archives.php to libs/
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 24 00:02:41 2011 +0100 (2011-01-24) |
parents | db9fd517250f |
children | f2b3255e4478 |
files | de/mailing-list.html en/mailing-list.html es/mailing-list.html fr/mailing-list.html index.php libs/archives.php pt/mailing-list.html scripts/archives.php |
line diff
1.1 --- a/de/mailing-list.html Sun Jan 23 23:28:13 2011 +0100 1.2 +++ b/de/mailing-list.html Mon Jan 24 00:02:41 2011 +0100 1.3 @@ -179,7 +179,7 @@ 1.4 </p> 1.5 1.6 <div> 1.7 -<object type="text/html" width="100%" height="345" data="../scripts/archives.php?lang=de"> 1.8 +<object type="text/html" width="100%" height="345" data="../libs/archives.php?lang=de"> 1.9 </object> 1.10 </div> 1.11
2.1 --- a/en/mailing-list.html Sun Jan 23 23:28:13 2011 +0100 2.2 +++ b/en/mailing-list.html Mon Jan 24 00:02:41 2011 +0100 2.3 @@ -187,7 +187,7 @@ 2.4 </p> 2.5 2.6 <div> 2.7 -<object type="text/html" width="100%" height="345" data="../scripts/archives.php"> 2.8 +<object type="text/html" width="100%" height="345" data="../libs/archives.php"> 2.9 </object> 2.10 </div> 2.11
3.1 --- a/es/mailing-list.html Sun Jan 23 23:28:13 2011 +0100 3.2 +++ b/es/mailing-list.html Mon Jan 24 00:02:41 2011 +0100 3.3 @@ -180,7 +180,7 @@ 3.4 </p> 3.5 3.6 <div> 3.7 -<object type="text/html" width="100%" height="345" data="../scripts/archives.php?lang=es"> 3.8 +<object type="text/html" width="100%" height="345" data="../libs/archives.php?lang=es"> 3.9 </object> 3.10 </div> 3.11
4.1 --- a/fr/mailing-list.html Sun Jan 23 23:28:13 2011 +0100 4.2 +++ b/fr/mailing-list.html Mon Jan 24 00:02:41 2011 +0100 4.3 @@ -198,7 +198,7 @@ 4.4 </p> 4.5 4.6 <div> 4.7 -<object type="text/html" width="100%" height="345" data="../scripts/archives.php?lang=fr"> 4.8 +<object type="text/html" width="100%" height="345" data="../libs/archives.php?lang=fr"> 4.9 </object> 4.10 </div> 4.11
5.1 --- a/index.php Sun Jan 23 23:28:13 2011 +0100 5.2 +++ b/index.php Mon Jan 24 00:02:41 2011 +0100 5.3 @@ -203,11 +203,13 @@ 5.4 "Like" the official SliTaz Facebook page and get involved! 5.5 </p> 5.6 5.7 +<!-- Twitter Button --> 5.8 <div style="margin-bottom: 10px;"> 5.9 - <!-- Twitter Button --> 5.10 <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> 5.11 <a href="http://twitter.com/share" class="twitter-share-button" 5.12 - data-text="SliTaz GNU/Linux" data-count="horizontal" data-via="slitaz">Tweet</a> 5.13 + data-text="SliTaz GNU/Linux" 5.14 + data-count="horizontal" 5.15 + data-via="slitaz">Tweet</a> 5.16 </div> 5.17 5.18 <!-- Like Button -->
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/libs/archives.php Mon Jan 24 00:02:41 2011 +0100 6.3 @@ -0,0 +1,110 @@ 6.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 6.5 +<html xmlns="http://www.w3.org/1999/xhtml"> 6.6 +<head> 6.7 + <title>lists.tuxfamily.org/slitaz mailing list</title> 6.8 + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 6.9 + <!-- link rel="stylesheet" type="text/css" href="/slitaz.css" / --> 6.10 + <style type="text/css"> 6.11 +body { 6.12 + background: #ffffff; 6.13 + color: black; 6.14 + font: 13px sans-serif, vernada, arial; 6.15 + margin: 0; 6.16 + #border-top: 34px solid #f1f1f1; 6.17 +} 6.18 + table { 6.19 + border: 1px solid #000000; 6.20 + width: variable; 6.21 + border-collapse: collapse; 6.22 + margin: 2px 2px; 6.23 + } 6.24 + td { 6.25 + border: 1px dotted #6495ed; 6.26 + width: variable; 6.27 + padding: 2px; 6.28 + } 6.29 + .rowodd { 6.30 + background-color: #ffffff; 6.31 + } 6.32 + .roweven { 6.33 + background-color: #e1ffe1; /* the tower */ 6.34 + } 6.35 + th { 6.36 + border: 1px solid #000000; 6.37 + width: variable; 6.38 + padding: 4px; 6.39 + } 6.40 + .alignright { 6.41 + text-align: right; 6.42 + } 6.43 + </style> 6.44 +</head> 6.45 +<body> 6.46 +<?php 6.47 + 6.48 +function translate($word) 6.49 +{ 6.50 + if (isset($_GET['lang'])) switch ($_GET['lang']) { 6.51 + case "de" : 6.52 + switch ($word) { 6.53 + case "Archives" : return "Archiv"; 6.54 + case "Archive" : return "Archiv"; 6.55 + case "View by" : return "Ansicht von"; 6.56 + case "Number" : return "Zahl"; 6.57 + case "Total size": return "Gesamtgr\ö\ße"; 6.58 + case " or " : return " oder "; 6.59 + case "Date" : return "datum"; 6.60 + } 6.61 + break; 6.62 + case "es" : 6.63 + switch ($word) { 6.64 + case "Archives" : return "Archivos"; 6.65 + case "Archive" : return "Archivo"; 6.66 + case "View by" : return "Vista"; 6.67 + case "Number" : return "n\úmero"; 6.68 + case "Total size": return "Tama\ño total"; 6.69 + case "Thread" : return "hilo"; 6.70 + case " or " : return " o "; 6.71 + case "Date" : return "Fecha"; 6.72 + } 6.73 + break; 6.74 + case "fr" : 6.75 + switch ($word) { 6.76 + case "View by" : return "Tri\é par"; 6.77 + case "Number" : return "Nombre"; 6.78 + case "Total size": return "Volume"; 6.79 + case "Thread" : return "Sujet"; 6.80 + case " or " : return " ou "; 6.81 + } 6.82 + break; 6.83 + case "pt" : 6.84 + switch ($word) { 6.85 + case "Archives" : return "Arquivos"; 6.86 + case "Archive" : return "Arquivo"; 6.87 + case "View by" : return "Exibir por"; 6.88 + case "Number" : return "n\úmero"; 6.89 + case "Total size": return "O tamanho total"; 6.90 + case "Thread" : return "T\ópico"; 6.91 + case " or " : return " ou "; 6.92 + case "Date" : return "Data"; 6.93 + } 6.94 + break; 6.95 + } 6.96 + return $word; 6.97 +} 6.98 + 6.99 +echo '<h4>'.translate("Archives").' 2007-'.date('Y')."</h4>\n"; 6.100 + 6.101 +$url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/"; 6.102 + 6.103 +$script = "-e '/<table>/,/<\/table>/!d' "; 6.104 +$script .= "-e 's|html\"|html\" target=\"_blank\"|g' "; 6.105 +$script .= "-e 's|href=\"|href=\"$url|g' "; 6.106 +foreach (array("Archive","View by","Number","Total size", 6.107 + "Thread"," or ","Date") as $word) { 6.108 + $script .= "-e 's|".$word."|".translate($word)."|' "; 6.109 +} 6.110 +system("wget -q -O - $url | sed $script"); 6.111 +?> 6.112 +</body> 6.113 +</html>
7.1 --- a/pt/mailing-list.html Sun Jan 23 23:28:13 2011 +0100 7.2 +++ b/pt/mailing-list.html Mon Jan 24 00:02:41 2011 +0100 7.3 @@ -192,7 +192,7 @@ 7.4 </p> 7.5 7.6 <div> 7.7 -<object type="text/html" width="100%" height="345" data="../scripts/archives.php?lang=pt"> 7.8 +<object type="text/html" width="100%" height="345" data="../libs/archives.php?lang=pt"> 7.9 </object> 7.10 </div> 7.11
8.1 --- a/scripts/archives.php Sun Jan 23 23:28:13 2011 +0100 8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 8.3 @@ -1,110 +0,0 @@ 8.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 8.5 -<html xmlns="http://www.w3.org/1999/xhtml"> 8.6 -<head> 8.7 - <title>lists.tuxfamily.org/slitaz mailing list</title> 8.8 - <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 8.9 - <!-- link rel="stylesheet" type="text/css" href="/slitaz.css" / --> 8.10 - <style type="text/css"> 8.11 -body { 8.12 - background: #ffffff; 8.13 - color: black; 8.14 - font: 13px sans-serif, vernada, arial; 8.15 - margin: 0; 8.16 - #border-top: 34px solid #f1f1f1; 8.17 -} 8.18 - table { 8.19 - border: 1px solid #000000; 8.20 - width: variable; 8.21 - border-collapse: collapse; 8.22 - margin: 2px 2px; 8.23 - } 8.24 - td { 8.25 - border: 1px dotted #6495ed; 8.26 - width: variable; 8.27 - padding: 2px; 8.28 - } 8.29 - .rowodd { 8.30 - background-color: #ffffff; 8.31 - } 8.32 - .roweven { 8.33 - background-color: #e1ffe1; /* the tower */ 8.34 - } 8.35 - th { 8.36 - border: 1px solid #000000; 8.37 - width: variable; 8.38 - padding: 4px; 8.39 - } 8.40 - .alignright { 8.41 - text-align: right; 8.42 - } 8.43 - </style> 8.44 -</head> 8.45 -<body> 8.46 -<?php 8.47 - 8.48 -function translate($word) 8.49 -{ 8.50 - if (isset($_GET['lang'])) switch ($_GET['lang']) { 8.51 - case "de" : 8.52 - switch ($word) { 8.53 - case "Archives" : return "Archiv"; 8.54 - case "Archive" : return "Archiv"; 8.55 - case "View by" : return "Ansicht von"; 8.56 - case "Number" : return "Zahl"; 8.57 - case "Total size": return "Gesamtgr\ö\ße"; 8.58 - case " or " : return " oder "; 8.59 - case "Date" : return "datum"; 8.60 - } 8.61 - break; 8.62 - case "es" : 8.63 - switch ($word) { 8.64 - case "Archives" : return "Archivos"; 8.65 - case "Archive" : return "Archivo"; 8.66 - case "View by" : return "Vista"; 8.67 - case "Number" : return "n\úmero"; 8.68 - case "Total size": return "Tama\ño total"; 8.69 - case "Thread" : return "hilo"; 8.70 - case " or " : return " o "; 8.71 - case "Date" : return "Fecha"; 8.72 - } 8.73 - break; 8.74 - case "fr" : 8.75 - switch ($word) { 8.76 - case "View by" : return "Tri\é par"; 8.77 - case "Number" : return "Nombre"; 8.78 - case "Total size": return "Volume"; 8.79 - case "Thread" : return "Sujet"; 8.80 - case " or " : return " ou "; 8.81 - } 8.82 - break; 8.83 - case "pt" : 8.84 - switch ($word) { 8.85 - case "Archives" : return "Arquivos"; 8.86 - case "Archive" : return "Arquivo"; 8.87 - case "View by" : return "Exibir por"; 8.88 - case "Number" : return "n\úmero"; 8.89 - case "Total size": return "O tamanho total"; 8.90 - case "Thread" : return "T\ópico"; 8.91 - case " or " : return " ou "; 8.92 - case "Date" : return "Data"; 8.93 - } 8.94 - break; 8.95 - } 8.96 - return $word; 8.97 -} 8.98 - 8.99 -echo '<h4>'.translate("Archives").' 2007-'.date('Y')."</h4>\n"; 8.100 - 8.101 -$url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/"; 8.102 - 8.103 -$script = "-e '/<table>/,/<\/table>/!d' "; 8.104 -$script .= "-e 's|html\"|html\" target=\"_blank\"|g' "; 8.105 -$script .= "-e 's|href=\"|href=\"$url|g' "; 8.106 -foreach (array("Archive","View by","Number","Total size", 8.107 - "Thread"," or ","Date") as $word) { 8.108 - $script .= "-e 's|".$word."|".translate($word)."|' "; 8.109 -} 8.110 -system("wget -q -O - $url | sed $script"); 8.111 -?> 8.112 -</body> 8.113 -</html>