Subversion Repositories wimsdev

Rev

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