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