website view lib/archives.php @ rev 1344

Resize balinor logo to 120px
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 22 23:02:15 2021 +0100 (17 months ago)
parents 9ed0bfb74392
children
line source
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8"/>
5 <title>lists.tuxfamily.org/slitaz mailing list</title>
6 <!-- link rel="stylesheet" type="text/css" href="/slitaz.css" / -->
7 <style type="text/css">
8 body {
9 background: #ffffff;
10 color: black;
11 font: 13px sans-serif, vernada, arial;
12 margin: 0;
13 #border-top: 34px solid #f1f1f1;
14 }
15 table {
16 border: 1px solid #000000;
17 width: variable;
18 border-collapse: collapse;
19 margin: 2px 2px;
20 }
21 td {
22 border: 1px dotted #6495ed;
23 width: variable;
24 padding: 2px;
25 }
26 .rowodd {
27 background-color: #ffffff;
28 }
29 .roweven {
30 background-color: #e1ffe1; /* the tower */
31 }
32 .odd {
33 background-color: #ffffff;
34 }
35 .even {
36 background-color: #e1ffe1; /* the tower */
37 }
38 th {
39 border: 1px solid #000000;
40 width: variable;
41 padding: 4px;
42 }
43 .alignright {
44 text-align: right;
45 }
46 </style>
47 </head>
48 <body>
49 <?php
51 function translate($word)
52 {
53 if (isset($_GET['lang'])) switch ($_GET['lang']) {
54 case "de" :
55 switch ($word) {
56 case "Archives" : return "Archiv";
57 case "Archive" : return "Archiv";
58 case "View by" : return "Ansicht von";
59 case "Messages count":
60 case "Number" : return "Zahl";
61 case "Total size": return "Gesamtgr\&ouml;\&szlig;e";
62 case " or " : return " oder ";
63 case "Month/Year":
64 case "Date" : return "datum";
65 }
66 break;
67 case "es" :
68 switch ($word) {
69 case "Archives" : return "Archivos";
70 case "Archive" : return "Archivo";
71 case "View by" : return "Vista";
72 case "Messages count":
73 case "Number" : return "n\&uacute;mero";
74 case "Total size": return "Tama\&ntilde;o total";
75 case "Thread" : return "hilo";
76 case " or " : return " o ";
77 case "Month/Year":
78 case "Date" : return "Fecha";
79 }
80 break;
81 case "fr" :
82 switch ($word) {
83 case "View by" : return "Tri\&eacute; par";
84 case "Messages count":
85 case "Number" : return "Nombre";
86 case "Total size": return "Volume";
87 case "Thread" : return "Sujet";
88 case " or " : return " ou ";
89 case "Month/Year": return "Date";
90 }
91 break;
92 case "pt" :
93 switch ($word) {
94 case "Archives" : return "Arquivos";
95 case "Archive" : return "Arquivo";
96 case "View by" : return "Exibir por";
97 case "Messages count":
98 case "Number" : return "n\&uacute;mero";
99 case "Total size": return "O tamanho total";
100 case "Thread" : return "T\&oacute;pico";
101 case " or " : return " ou ";
102 case "Month/Year":
103 case "Date" : return "Data";
104 }
105 break;
106 case "ru" :
107 switch ($word) {
108 case "Archives" : return "Архивы";
109 case "Archive" : return "Архив";
110 case "Month/Year" : return "Год-месяц";
111 case "View by" : return "Смотреть по";
112 case "Thread" : return "теме";
113 case " or " : return " или ";
114 case "Date" : return "дате";
115 case "Messages count": return "Сообщений";
116 case "Total size" : return "Размер";
117 case "Number" : return "номер";
118 }
119 break;
120 default:
121 switch ($word) {
122 case "Messages count": return "Number";
123 case "Month/Year": return "Date";
124 }
125 break;
126 }
127 return $word;
128 }
130 echo '<h4>'.translate("Archives").' 2007-'.date('Y')."</h4>\n";
132 $url = "://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/";
134 $script = "-e '/<table/,/<\/table>/!d' ";
135 $script .= "-e 's|html\"|html\" target=\"_blank\"|g' ";
136 $script .= "-e 's|https*$url||g' -e 's|href=\"|href=\"https$url|g' ";
137 foreach (array("Archive","View by","Number","Total size",
138 "Messages count", "Month/Year",
139 "Thread"," or ","Date") as $word) {
140 $script .= "-e 's|".$word."|".translate($word)."|' ";
141 }
142 system("wget -q --no-check-certificate -O - https$url | sed $script");
143 ?>
144 </body>
145 </html>