Rev 5900 | Rev 11943 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
19 | reyssat | 1 | Status: 450 WIMS User Error |
2 | Server: WIMS $wims_version (WWW Interactive Multipurpose Server) |
||
3 | Content-type: text/html; charset=iso-8859-1 |
||
4 | Cache-Control: no-cache |
||
5 | Pragma: no-cache |
||
6 | |||
3570 | bpr | 7 | <html><head> |
19 | reyssat | 8 | <meta http-equiv=expires content="1 Jan 1990"> |
3570 | bpr | 9 | <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
10 | <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> |
||
5394 | obado | 11 | <!-- Theme CSS style --> |
12 | <link rel="stylesheet" href="html/themes/$wims_theme/css.css" type="text/css"> |
||
13 | <style type="text/css"> |
||
14 | input[type="submit"],input[type="button"],.wims_button{ background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;} |
||
15 | .wims_button_help{ background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;} |
||
16 | </style> |
||
17 | |||
19 | reyssat | 18 | !if exam_ isin $wims_user_error |
3570 | bpr | 19 | <style type="text/css"><!-- |
19 | reyssat | 20 | body {text-align: justify; |
21 | padding-left: 3%; padding-right: 3%;} |
||
3570 | bpr | 22 | --></style> |
5395 | obado | 23 | </head><body onload="window.resizeTo(500,200);window.moveTo(250,300);" class="user_error"> |
5900 | bpr | 24 | <h1 class="wims_center">ERROR</h1> |
19 | reyssat | 25 | !goto examerr |
26 | !endif |
||
5395 | obado | 27 | |
28 | </head><body class="user_error"> |
||
19 | reyssat | 29 | !if threshold iswordof $wims_user_error |
5900 | bpr | 30 | |
31 | <h1 class="wims_center">We are too busy</h1> |
||
32 | <hr style="width:50%"/><p> |
||
3570 | bpr | 33 | This WIMS server <font color="blue">$httpd_HTTP_HOST</font> |
19 | reyssat | 34 | is currently overloaded by a large number of requests, and |
35 | can no longer satisfy further users. Please come back later, |
||
36 | or look for another wims mirror site. |
||
37 | <p>We are very sorry for this inconvenience to you, and hope to be able |
||
38 | to serve you soon. |
||
39 | !read mirror.phtml.en |
||
40 | </body></html> |
||
41 | !exit |
||
42 | !endif |
||
43 | |||
44 | !if overload iswordof $wims_user_error |
||
5900 | bpr | 45 | |
46 | <h1 class="wims_center">SORRY</h1> |
||
19 | reyssat | 47 | Your request is blocked by this WIMS server: connection quota exceeded. |
48 | </body></html> |
||
49 | !exit |
||
50 | !endif |
||
51 | |||
52 | !if ++++missing_ isin ++++$wims_user_error |
||
5900 | bpr | 53 | |
54 | <h1 class="wims_center">Sorry</h1> |
||
55 | <hr style="width:50%"/> |
||
19 | reyssat | 56 | WIMS needs a software |
57 | !set miss=!upper $missing_software |
||
4747 | bpr | 58 | <span class="wims_warning">$miss</span> |
19 | reyssat | 59 | to process your request, but that software is not available (or not visible |
60 | to WIMS) on this server. |
||
5900 | bpr | 61 | |
19 | reyssat | 62 | You can either |
63 | <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write |
||
64 | to the site manager</a> to inform him/her of the problem, or choose a |
||
65 | mirror site from the table below. |
||
3570 | bpr | 66 | <a href="wims.cgi">WIMS homepage</a>. |
19 | reyssat | 67 | !read mirror.phtml.en |
68 | </body></html> |
||
69 | !exit |
||
70 | !endif |
||
71 | |||
72 | !if trapped iswordof $wims_user_error |
||
5900 | bpr | 73 | <h1 class="wims_center">Stop!</h1><hr/> |
19 | reyssat | 74 | !endif |
75 | |||
5900 | bpr | 76 | <h1 class="wims_center">WIMS error</h1><hr/> |
19 | reyssat | 77 | |
5900 | bpr | 78 | There is an error in your request to this WIMS site. |
19 | reyssat | 79 | |
80 | !if module_change iswordof $wims_user_error |
||
81 | !if $wims_human_access=yes |
||
82 | Please avoid using the `Back' button of your browser, |
||
83 | because you are on an interactive server. |
||
5900 | bpr | 84 | <p class="wimscenter"> |
19 | reyssat | 85 | !set tit=!module title $module |
86 | !default tit=$module |
||
87 | !href module=$module $tit |
||
88 | |
||
89 | !href $ WIMS home |
||
90 | !if $httpd_HTTP_REFERER!=$empty |
||
91 | <a href="$httpd_HTTP_REFERER">Exit WIMS</a> |
||
92 | !else |
||
93 | </center><p> |
||
94 | <small>If you want to get out of the site, ignore this message and continue |
||
95 | to click on `Back'.</small> |
||
96 | !endif |
||
97 | !exit |
||
98 | !endif |
||
99 | You have asked an illegal module change. |
||
100 | Are you using an automatic program to access this site? |
||
101 | :unblock |
||
102 | !form new |
||
5755 | bpr | 103 | <input type="hidden" name="module" value="home"/> |
104 | <input type="hidden" name="deblockparm" value="$[randint(10000000)+1000000]"/> |
||
19 | reyssat | 105 | If you have simply clicked on the `back' button of your browser, |
106 | please type the word `wims' here: |
||
5755 | bpr | 107 | <input size="8" name="special_parm"/> then |
108 | <input type="submit" value="send to the server"/>.</form> |
||
19 | reyssat | 109 | <p> |
110 | Please bear in mind that pages on this site are dynamically generated. |
||
111 | They can therefore only be used online, |
||
112 | via a normal browser. It is useless for you to gather these pages |
||
113 | using a robot program. |
||
114 | !if robot_doubt iswordof $wims_user_error |
||
115 | <small>And beware that people trying to hacker on |
||
116 | this site will see their accesses definitely denied.</small> |
||
117 | !endif |
||
118 | !exit |
||
119 | !endif |
||
120 | |||
121 | !if robot_doubt iswordof $wims_user_error |
||
122 | We block further access to this site for you, because you are suspected |
||
123 | of using an automatic program to gather pages. |
||
124 | !goto unblock |
||
125 | !endif |
||
126 | |||
127 | !if allow_violation iswordof $wims_user_error |
||
128 | You don't have the right to define the variable ``$wims_error_data'' |
||
129 | with the command ``$cmd''. |
||
130 | !goto end |
||
131 | !endif |
||
132 | |||
133 | !if bad_command iswordof $wims_user_error |
||
134 | The command ``$cmd'' is not valid. |
||
135 | <p> Valid commands are: <pre> |
||
136 | new, renew, reply, hint, config </pre> |
||
137 | !endif |
||
138 | |||
139 | !if bad_host iswordof $wims_user_error |
||
140 | You have tried to access a session from another post. This is not allowed |
||
141 | for your virtual class. |
||
142 | <p> |
||
143 | Unfortunately, some internet providers give you dynamic host addresses |
||
144 | which MAY change within one connection. If this is the case, please write |
||
145 | to the supervisor of your class asking him/her to change the access lock |
||
146 | policy. |
||
147 | !goto end |
||
148 | !endif |
||
149 | |||
150 | !if need_https iswordof $wims_user_error |
||
151 | You should connect to your class via a https request. |
||
152 | !set refname=!replace http:// by https:// in $wims_ref_name |
||
153 | <a href="$refname?session=$wims_session&module=home&cmd=new">Try it</a>. |
||
154 | !exit |
||
155 | !endif |
||
156 | |||
157 | !if bad_insnum iswordof $wims_user_error |
||
158 | !if $cmd=getfile |
||
159 | The file you asked for does not exist. |
||
160 | !else |
||
161 | The file name for dynamic insertion is not valid. |
||
162 | !endif |
||
163 | !goto end |
||
164 | !endif |
||
165 | |||
166 | !if cmd_output_too_long iswordof $wims_user_error |
||
167 | The intermediate result of the computation has exceeded the length limit. |
||
168 | You have probably submitted a request which is unrealistically complicated. |
||
169 | Simplify your request, please. |
||
170 | !goto end |
||
171 | !endif |
||
172 | |||
173 | !if double_click iswordof $wims_user_error |
||
174 | This request arrived while the process of another request from you is |
||
175 | still under way.<p> |
||
176 | If you have been double clicking, now please wait |
||
4747 | bpr | 177 | <span class="wims_warning">$wims_cpu_limit seconds</span> |
19 | reyssat | 178 | for the process of your old request to terminate, then |
179 | !href cmd=resume click here |
||
180 | to get back to your work. (And please be more patient the next time |
||
181 | you ask wims to do lengthy computations.) |
||
182 | <p> |
||
183 | If you are using ``back'' button of your browser to get out of wims, you |
||
184 | may ignore this message and go ahead. |
||
185 | !exit |
||
186 | !endif |
||
187 | |||
188 | !if invalid_char_in_query_string iswordof $wims_user_error |
||
189 | The substitution ``$wims_error_data'' in the parameter string is illegal. |
||
190 | !goto end |
||
191 | !endif |
||
192 | |||
193 | !if name_conflict iswordof $wims_user_error |
||
194 | ``$wims_error_data'' is a reserved name for wims. |
||
195 | !goto end |
||
196 | !endif |
||
197 | |||
198 | !if no_command iswordof $wims_user_error |
||
199 | There is no command. |
||
200 | !goto end |
||
201 | !endif |
||
202 | |||
203 | !if no_insnum iswordof $wims_user_error |
||
204 | !if $cmd=getfile |
||
205 | You have asked for a file without giving its name. |
||
206 | !else |
||
207 | You have asked for a dynamic insertion without giving its number. |
||
208 | !endif |
||
209 | !goto end |
||
210 | !endif |
||
211 | |||
212 | !if no_module_name iswordof $wims_user_error |
||
213 | You have asked a new session without module name. |
||
214 | !goto end |
||
215 | !endif |
||
216 | |||
217 | !if no_session iswordof $wims_user_error |
||
218 | The session number is missing. |
||
219 | !goto end |
||
220 | !endif |
||
221 | |||
222 | !if parm_too_long iswordof $wims_user_error |
||
223 | Your parameter string has exceeded length limit. This is not allowed by |
||
224 | security reasons, sorry. |
||
225 | !goto end |
||
226 | !endif |
||
227 | |||
228 | !if string_too_long iswordof $wims_user_error |
||
229 | The definition of variable has a length which exceeds the limit. |
||
230 | !goto end |
||
231 | !endif |
||
232 | |||
233 | !if too_many_variables iswordof $wims_user_error |
||
234 | The number of parameters which you transmitted has exceeded the limit |
||
235 | authorized in this wims site. |
||
236 | !goto end |
||
237 | !endif |
||
238 | |||
239 | !if unmatched_parentheses iswordof $wims_user_error |
||
240 | We have detected unmatched parentheses in your request. You may correct the |
||
241 | error here: |
||
242 | !form $cmd |
||
243 | $(name$bad_parentheses) = |
||
244 | !for i in module,special_parm,worksheet |
||
245 | !if $($i)!=$empty |
||
246 | !set value=!translate " to $ $ in $($i) |
||
5755 | bpr | 247 | <input type=hidden name=$i value="$value"/> |
19 | reyssat | 248 | !endif |
249 | !next i |
||
250 | !for i=0 to $user_var_no-1 |
||
251 | !if $i!=$bad_parentheses |
||
252 | !set value=!translate " to $ $ in $(value$i) |
||
5755 | bpr | 253 | <input type="hidden" name="$(name$i)" value="$value"/> |
19 | reyssat | 254 | !endif |
255 | !next i |
||
256 | !set value=!translate " to $ $ in $(value$bad_parentheses) |
||
257 | !set len=!charcnt $value |
||
258 | !set n=!linecnt $value |
||
259 | !if $n<=1 |
||
260 | !if $len<55 |
||
261 | !set len=$[$len+3] |
||
262 | !else |
||
263 | !set len=59 |
||
264 | !endif |
||
5755 | bpr | 265 | <input size="$len" name="$(name$bad_parentheses)" value="$value"/><p> |
19 | reyssat | 266 | !else |
267 | !if $n>10 |
||
268 | !set n=10 |
||
269 | !endif |
||
3570 | bpr | 270 | <textarea rows="$n" cols="50" name="$(name$bad_parentheses)">$value</textarea> |
19 | reyssat | 271 | <p> |
272 | !endif |
||
273 | Then |
||
5755 | bpr | 274 | <input type="submit" value="send the corrected request."/> |
275 | </form><p><hr/><div class="wimscenter"> |
||
19 | reyssat | 276 | !href cmd=resume Cancel the last request |
277 | , or |
||
278 | !href $ wims home |
||
5755 | bpr | 279 | .</div> |
19 | reyssat | 280 | !exit |
281 | !endif |
||
282 | |||
283 | !if wrong_module iswordof $wims_user_error |
||
7428 | obado | 284 | !set tmp=!translate "!/<>;': to $ $ in $module |
285 | The module <code>$tmp</code> which you asked for does not exist in this site. |
||
19 | reyssat | 286 | !goto end |
287 | !endif |
||
288 | |||
289 | !if wrong_session iswordof $wims_user_error |
||
290 | The session number ``$session'' is not (or no longer) valid. |
||
291 | <a href="wims.cgi">Create a new session</a>. |
||
292 | !goto end |
||
293 | !endif |
||
294 | |||
295 | !if rafale iswordof $wims_user_error |
||
296 | Please don't play with the exercises! |
||
297 | <p> |
||
298 | You should take time to think carefully and try to solve the exercises |
||
299 | correctly, instead of ask new ones over and over again. |
||
5394 | obado | 300 | !set wims_ref_class=wims_button |
301 | !href cmd=resume Cancel last request |
||
302 | !reset wims_ref_class |
||
19 | reyssat | 303 | . |
304 | !if $wims_user!=$empty and $wims_user!=supervisor |
||
4747 | bpr | 305 | <p><span class="wims_warning">$wims_name_warning.</span>! Don't repeat this error! |
19 | reyssat | 306 | Irregular activities may give you bad scores even when score registration is |
307 | closed. |
||
308 | !endif |
||
309 | !goto end2 |
||
310 | !endif |
||
311 | |||
312 | :examerr |
||
313 | |||
314 | !if exam_dep iswordof $wims_user_error |
||
315 | This exercise is available only when you have successfully made |
||
316 | !if , isin $dep_list |
||
317 | exercises $dep_list. |
||
318 | !else |
||
319 | exercise $dep_list. |
||
320 | !endif |
||
321 | Please first try to do the latter. |
||
322 | !goto examend |
||
323 | !endif |
||
324 | |||
325 | !if bad_exam iswordof $wims_user_error |
||
326 | You have issued an illegal request within an examination session. |
||
327 | !goto examend |
||
328 | !endif |
||
329 | |||
330 | !if exam_exo_finished iswordof $wims_user_error |
||
331 | You have already done this exercise with a score of $wims_exo_lastscore. |
||
332 | You cannot do it again because this is an examination. |
||
333 | !goto examend |
||
334 | !endif |
||
335 | |||
336 | !if expired_exam iswordof $wims_user_error |
||
337 | You have no more time left to work on this exam. |
||
338 | :examend |
||
339 | !set pses=!translate _ to , in $wims_session |
||
340 | !set pses=!item 1 of $pses |
||
341 | !set pser=!randint 1,999 |
||
342 | !set wims_opener=window.opener.location='$wims_ref_name?session=$pses.$pser&cmd=reply&job=student'; |
||
5900 | bpr | 343 | <p class="wimscenter"> |
19 | reyssat | 344 | <a href=# onclick="window.close();$wims_opener">Close this window</a>. |
5900 | bpr | 345 | </p> |
19 | reyssat | 346 | !exit |
347 | !endif |
||
348 | |||
349 | !if exam_closed iswordof $wims_user_error |
||
350 | This exam is not accessible for your connection at the time being. Please verify |
||
351 | with the supervisor of your class. |
||
352 | !goto examend |
||
353 | !endif |
||
354 | |||
355 | !if bad_ident iswordof $wims_user_error |
||
356 | Your request contains a user identification error. Are you trying to connect |
||
357 | to somebody else's session? |
||
358 | <p> |
||
359 | Please |
||
3570 | bpr | 360 | <a href="wims.cgi?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>. |
5900 | bpr | 361 | </p></body></html> |
19 | reyssat | 362 | !exit |
363 | !endif |
||
364 | |||
365 | !if no_access iswordof $wims_user_error |
||
366 | Your request is refused by the access policy of this site. Sorry. |
||
367 | !goto end |
||
368 | !endif |
||
369 | |||
370 | !if class_closed iswordof $wims_user_error |
||
371 | Sorry. |
||
372 | <p> |
||
373 | Access to this virtual class is temporarily closed by its supervisor. |
||
374 | Come back later! |
||
5755 | bpr | 375 | <div class="wimscenter"> |
19 | reyssat | 376 | !href cmd=close&module=home WIMS |
5755 | bpr | 377 | </div> |
19 | reyssat | 378 | </body></html> |
379 | !exit |
||
380 | !endif |
||
381 | |||
382 | :end |
||
383 | <p>If you see this message after following a link given by another page, it |
||
384 | probably is because the link is not well-prepared. In this case, please |
||
385 | contact the author of that page, to inform him of the error. You may also |
||
386 | write to the |
||
387 | <a href="mailto:$wims_site_manager?subject=wims.cgi">manager of this |
||
388 | site</a>, with as many details as possible about the circomstances |
||
389 | under which the error has occurred. |
||
390 | |||
391 | :end2 |
||
5755 | bpr | 392 | <hr/><div class="wimscenter"> |
5394 | obado | 393 | !set wims_ref_class=wims_button home |
394 | !href module=home&cmd=new WIMS Home Page |
||
395 | !reset wims_ref_class |
||
5755 | bpr | 396 | </div> |
19 | reyssat | 397 | |
398 | </body></html> |
||
399 |