Subversion Repositories wimsdev

Rev

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