source: subversion/applications/utils/wiki-extensions/error.html @ 11838

Last change on this file since 11838 was 11838, checked in by gslater, 11 years ago

Squid error fix link

File size: 12.7 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
2
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5  <title>OpenStreetMap Wiki Error</title>
6  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
7  <meta name="author" content="Based on Wikimedia error messages by Mark Ryan, with translation by many people"/>
8  <meta name="copyright" content="(c) 2005-2007 Mark Ryan and others. Text licensed under the GNU Free Documentation License. http://www.gnu.org/licenses/fdl.txt"/>
9
10  <style type="text/css"><!--
11   body {
12     background-color: #dbe5df;
13     font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Helvetica, sans-serif;
14     margin-left: 0px;
15     margin-right: 0px;
16    }
17   .TechnicalStuff {
18     font-style: italic;
19     text-align: center;
20     font-size: 0.8em;
21     padding-bottom: 0.8em;
22    }
23   .BottomStrip {
24     background: #9fbfd8;
25     text-align: center;
26     font-size: 0.85em;
27    }
28   .RightToLeft {
29     direction: rtl;
30    }
31   .Lines {
32     width: 100%;
33     height: 1px;
34     overflow: hidden;
35     font-size: 0.5px;
36    }
37   .ContentArea {
38     background-color: white;
39     padding-left: 10%;
40     padding-right: 10%;
41     padding-top: 0.8em;
42     font-size: 1.0em;
43    }
44   a:hover {
45     color: red;
46    }
47   a.BottomLinks {
48     color: #000000;
49     text-decoration: none;
50    }
51   a.BottomLinks:hover {
52     color: red;
53     text-decoration: none;
54    }
55   h1, h2 {
56     margin: 0px;
57     font-size: 1.0em;
58    }
59   h3.LanguageHeading {
60     font-weight: bold
61    }
62   #ErrorTitleDiv {
63     background: #9fbfd8;
64     font-size: 1.2em;
65     font-weight: bold;
66     text-align: center;
67    }
68   #FoundationNameDiv {
69     background: #dbe5df;
70     font-size: 1.5em;
71     font-family: "Gill Sans MT", "Gill Sans", Helvetica, Humanist, sans-serif;
72     font-weight: bold;
73     text-transform: uppercase;
74     text-align: center;
75     width: 100%;
76     padding-top:0.8em;
77    }
78   #TopLinks {
79     text-align: center;
80     font-size: 0.8em
81    }
82   -->
83  </style>
84
85  <script type="text/javascript"><!-- Begin
86
87   // The first column of this array is for the local language name of the OpenStreetMap Wiki
88   // ('OpenStreetMap Wiki' should be used for all Latin-based languages)
89   // The second column of the array is the localised language word for 'Error'.
90   var LanguageDetails = new Array();
91   LanguageDetails['de'] = new Array( "OpenStreetMap Wiki", "Fehler" );
92   LanguageDetails['en'] = new Array( "OpenStreetMap Wiki", "Error" );
93
94   function ShowLanguage(WhichLanguage){
95
96     // Set the localised language version of the OpenStreetMap Wiki heading and page title
97     document.getElementById('FoundationName').innerHTML = LanguageDetails[WhichLanguage][0]
98     document.title = LanguageDetails[WhichLanguage][1] + ' - ' + LanguageDetails[WhichLanguage][0]
99
100     // Set the localised language version of the heading word for 'error'
101     document.getElementById('ErrorName').innerHTML = LanguageDetails[WhichLanguage][1]
102
103     for (var LanguageAbbr in LanguageDetails) {
104
105      // The following arrangement attempts to minimise the number of document modifications made when switching languages
106
107      if (LanguageAbbr != WhichLanguage && document.getElementById(LanguageAbbr).style.display == '') {
108        // This bit kicks in for each inactive language during the initial page collapse, and on a language when switching away from that language
109        document.getElementById(LanguageAbbr).style.display = 'none' // hide the inactive language section
110        document.getElementById(LanguageAbbr + '_link').style.fontWeight = '' //unbolden its language link
111        document.getElementById(LanguageAbbr + '_head').style.display = 'none' // hide its language heading
112       }
113      else if (LanguageAbbr == WhichLanguage && document.getElementById(LanguageAbbr).style.display == 'none') {
114        // This bit kicks in for the new active language only when switching to it from a different language (i.e. not during initial page collapse)
115        document.getElementById(WhichLanguage).style.display = '' // show the active language section
116        document.getElementById(WhichLanguage + '_link').style.fontWeight = 'bold' // bolden the active language link
117       }
118      else if (LanguageAbbr == WhichLanguage && document.getElementById(LanguageAbbr).style.display == '') {
119        // This bit kicks in during initial page collapse with the active language, and when you attempt to switch to the currently-visible language
120        document.getElementById(WhichLanguage + '_link').style.fontWeight = 'bold' // bolden the active language link
121        document.getElementById(LanguageAbbr + '_head').style.display = 'none' // hide its language heading
122       }
123
124     }
125
126
127    }
128
129   function Startup(){
130
131     // Hide the top links bar, which is only there for navigation when there's no javascript
132     document.getElementById('TopLinks').style.display = 'none'
133
134     // Look at the current URL, and if it matches an available language, show that. E.g. fr.wiktionary.org -> show 'fr'
135     var CurrentLocation = new String(window.location.href) 
136     var CurrentSubdomain = CurrentLocation.slice(CurrentLocation.lastIndexOf('//') + 2, CurrentLocation.indexOf('.'))
137     for (var LanguageAbbr in LanguageDetails) {
138       if (LanguageAbbr == CurrentSubdomain) {
139         ShowLanguage(LanguageAbbr);
140         return;
141        }
142      }
143
144     // If it is a hyphenated language code in the URL, try to go to its root language
145     if (CurrentSubdomain.indexOf('-') != -1) {
146       var RootLanguage = CurrentSubdomain.slice(0, CurrentSubdomain.indexOf('-'))
147       for (var LanguageAbbr in LanguageDetails) {
148         if (LanguageAbbr == RootLanguage) {
149           ShowLanguage(LanguageAbbr);
150           return;
151          }
152        }
153      }
154
155     // If it's secure.wikimedia.org, look later in the URL for the language code
156     if (CurrentSubdomain == 'secure') {
157       var SecureSubdomain = CurrentLocation.split('/')
158       for (var LanguageAbbr in LanguageDetails) {
159         if (LanguageAbbr == SecureSubdomain[4]) {
160           ShowLanguage(LanguageAbbr);
161           return;
162          }
163        }
164      }
165
166     // Attempt to detect the user's browser or system language using browser-specific methods, and use that if it matches an available language
167     if (navigator.userLanguage) var language = navigator.userLanguage // use the user's preferred language (non-Gecko)
168     else if (navigator.appName == 'Netscape') var language = navigator.language // use the only language information available to Gecko
169     else var language = navigator.browserLanguage // get the browser language information in non-Gecko browsers (IE, Opera, Konqueror)
170     // Compare the returned language against the list of languages on the error page
171     for (var LanguageAbbr in LanguageDetails) {
172       if (language.indexOf(LanguageAbbr) != -1) {
173         ShowLanguage(LanguageAbbr);
174         return;
175        }
176      }
177
178     // Show English as a fail-all
179     ShowLanguage('en');
180
181    }
182
183   function RefreshPage(){
184
185     // Refresh the page, preferably from cache, upon someone clicking 'try again'
186     window.location.reload(false)
187
188    }
189
190   // End -->
191  </script>
192
193 </head>
194
195 <body link="#24442E" text="#000000" vlink="#24442E" alink="#FF0000" onload="Startup();">
196
197  <!-- OpenStreetMap Wiki title -->
198  <div id="FoundationNameDiv">
199   <h1 id="FoundationName">OpenStreetMap Wiki</h1>
200  </div>
201
202  <!-- Shadow-style gradient -->
203  <div class="Lines" style="background-color:#ccd4cf;"></div>
204  <div class="Lines" style="background-color:#bdc3bf;"></div>
205  <div class="Lines" style="background-color:#adb1af;"></div>
206  <div class="Lines" style="background-color:#9ea09f;"></div>
207  <div class="Lines" style="background-color:#dbe5df;"></div>
208
209  <!-- 'Error' title -->
210  <div id="ErrorTitleDiv">
211   <h2 id="ErrorName">Error</h2>
212  </div>
213
214  <!-- This section of language links shows at the top of the page for navigation only when javascript is not available. -->
215  <div id="TopLinks">
216
217   <!-- Shadow-style gradient -->
218   <div class="Lines" style="background-color:#9d9fa1;"></div>
219   <div class="Lines" style="background-color:#a8aeb4;"></div>
220   <div class="Lines" style="background-color:#b4bec6;"></div>
221   <div class="Lines" style="background-color:#c0ced8;"></div>
222
223   <a href="#German" class="BottomLinks" onclick="ShowLanguage('de')">Deutsch</a>
224   <a href="#English" class="BottomLinks" onclick="ShowLanguage('en')">English</a>
225  </div>
226
227  <!-- Shadow-style gradient -->
228  <div class="Lines" style="background-color:#8f8f8f"></div>
229  <div class="Lines" style="background-color:#acacac"></div>
230  <div class="Lines" style="background-color:#c6c6c6"></div>
231  <div class="Lines" style="background-color:#dbdbdb"></div>
232  <div class="Lines" style="background-color:#eaeaea"></div>
233  <div class="Lines" style="background-color:#f4f4f4"></div>
234
235
236  <!-- BEGIN CONTENT AREA -->
237  <div class="ContentArea">
238
239   <div id="en" lang="en">
240    <h3 id="en_head" class="LanguageHeading">
241     <a name="English">English</a>
242    </h3>
243    <p>Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon. Please <a href="%U" onclick="RefreshPage(); return false">try again</a> in a few minutes.</p>
244    <p>You may be able to get further information in the <a href="irc://irc.oftc.net/osm">#osm</a> channel on the <a href="http://www.oftc.net/oftc/">Open and Free Technology Community IRC network</a>.</p>
245    <p>The OpenStreetMap Wiki is supported by the OpenStreetMap Foundation which is a non-profit organisation which hosts some of the OpenStreetMap projects. It has a constant need to purchase new hardware. If you would like to help, please <a href="http://wiki.openstreetmap.org/index.php/Donations">donate</a>.</p>
246    <hr noshade="noshade" size="1px" width="80%" />
247    <div class="TechnicalStuff">
248     If you report this error to the OpenStreetMap System Administrators, please include the details below.<br/>
249    </div>
250    <div class="TechnicalStuff">
251     <bdo dir="ltr">
252      Request: %M %U, from %i via %h (%s) to %H (%I)<br/>
253      Error: %c, errno %E at %T
254     </bdo>
255     <div id="AdditionalTechnicalStuff"></div>
256    </div>
257   </div>
258
259   <div id="de" lang="de">
260    <div id="de_head">
261     <hr noshade="noshade" size="1px" width="100%"/>
262     <h3 class="LanguageHeading">
263      <a name="German">
264       Deutsch
265      </a>
266     </h3>
267    </div>
268    <p>Bei den Servern der OpenStreetMap Foundation sind gerade technische Probleme aufgetreten. Bitte versuche es in ein paar Minuten <a href="%U" onclick="RefreshPage(); return false">noch einmal</a>.</p>
269    <p>Genauere Informationen gibt es im Channel <a href="irc://irc.oftc.net/osm-de">#osm-de</a> auf dem IRC-Netzwerk <a href="http://www.oftc.net/oftc/">OFTC</a>.</p>
270    <p>Wenn du OpenStreetMap Deutschland e.V. und der OpenStreetMap Foundation helfen möchtest, kannst du dies mit <a href="http://wiki.openstreetmap.org/index.php/Donations">einer Spende</a> tun.</p>
271    <hr noshade="noshade" size="1px" width="80%" />
272    <div class="TechnicalStuff">
273     Wenn du einem OpenStreetMap-Systemadministrator diesen Fehler meldest, gib bitte die folgenden Details an.<br/>
274    </div>
275    <div class="TechnicalStuff">
276     <bdo dir="ltr">
277      Request: %M %U, from %i via %h (%s) to %H (%I)<br/>
278      Error: %c, errno %E at %T
279     </bdo>
280     <div id="AdditionalTechnicalStuff"></div>
281    </div>
282   </div>
283
284  </div>
285
286  <!-- Shadow-style gradient -->
287  <div class="Lines" style="background-color:#f4f4f4;"></div>
288  <div class="Lines" style="background-color:#eaeaea;"></div>
289  <div class="Lines" style="background-color:#dbdbdb;"></div>
290  <div class="Lines" style="background-color:#c6c6c6;"></div>
291  <div class="Lines" style="background-color:#acacac;"></div>
292  <div class="Lines" style="background-color:#dbe5df;"></div>
293
294  <!-- The top row of the language links at the foot of the page -->
295  <div class="BottomStrip">
296   <a href="#German" class="BottomLinks" id="de_link" onclick="ShowLanguage('de')">Deutsch</a>
297   <a href="#English" class="BottomLinks" id="en_link" onclick="ShowLanguage('en')">English</a>
298  </div>
299
300  <!-- Shadow-style gradient -->
301  <div class="Lines" style="background-color:#9d9fa1;"></div>
302  <div class="Lines" style="background-color:#a8aeb4;"></div>
303  <div class="Lines" style="background-color:#b4bec6;"></div>
304  <div class="Lines" style="background-color:#c0ced8;"></div>
305
306  <!-- The bottom row of the language links at the foot of the page -->
307  <div style="text-align:center; font-size:0.85em;background:#cbddeb;">
308  </div>
309
310  <!-- Shadow-style gradient -->
311  <div class="Lines" style="background-color:#9ea09f;"></div>
312  <div class="Lines" style="background-color:#adb1af;"></div>
313  <div class="Lines" style="background-color:#bdc3bf;"></div>
314  <div class="Lines" style="background-color:#ccd4cf;"></div>
315
316 </body>
317</html>
318
Note: See TracBrowser for help on using the repository browser.