Subversion Repositories wimsdev

Rev

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