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