Subversion Repositories wimsdev

Rev

Rev 5900 | Rev 11943 | 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);">
5900 bpr 17
<h1 class="wims_center">ERROR</h1>
19 reyssat 18
!goto examerr
19
!endif
3570 bpr 20
</head><body>
19 reyssat 21
!if threshold iswordof $wims_user_error
5900 bpr 22
 
23
 <h1 class="wims_center">We are too busy</h1>
24
 <hr style="width:50%"/><p>
3570 bpr 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
5900 bpr 37
 
38
 <h1 class="wims_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
5900 bpr 45
 
46
 <h1 class="wims_center">Sorry</h1>
47
 <hr style="width:50%"/>
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
5900 bpr 65
 <h1 class="wims_center">Stop!</h1><hr/>
19 reyssat 66
!endif
67
 
5900 bpr 68
<h1 class="wims_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.
5900 bpr 76
  <p class="wimscenter">
19 reyssat 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
5900 bpr 85
   </p><p>
19 reyssat 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
5755 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:
5755 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)
5755 bpr 239
    <input type=hidden name=$i value="$value"/>
19 reyssat 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)
5755 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
5755 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
5755 bpr 266
  <input type="submit" value="send the corrected request."/>
267
  </form><p><hr/><div class="wimscenter">
19 reyssat 268
  !href cmd=resume Cancel the last request
269
, or
270
  !href $ wims home
5755 bpr 271
.</div>
19 reyssat 272
  !exit
273
!endif
274
 
275
!if wrong_module iswordof $wims_user_error
7428 obado 276
  !set tmp=!translate "!/<>;': to $         $ in $module
277
  <p>The module <code>$tmp</code> which you asked for does not exist in this site.</p>
19 reyssat 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
.
3570 bpr 294
 !if $wims_user!=$empty and $wims_user!=supervisor
4747 bpr 295
  <p><span class="wims_warning">$wims_name_warning.</span>! Don't repeat this error!
3570 bpr 296
  Irregular activities may give you bad scores even when score registration is
297
  closed.
298
 !endif
19 reyssat 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';
5900 bpr 333
  <p class="wimscenter">
19 reyssat 334
  <a href=# onclick="window.close();$wims_opener">Close this window</a>.
5900 bpr 335
  </p>
19 reyssat 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
3570 bpr 350
 <a href="wims.cgi?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>.
19 reyssat 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!
5755 bpr 365
  <div class="wimscenter">
19 reyssat 366
  !href cmd=close&module=home WIMS
5755 bpr 367
  </div>
19 reyssat 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
5755 bpr 382
<hr/><div class="wimscenter">
3570 bpr 383
!href module=home&cmd=new Home page
5755 bpr 384
</div>
19 reyssat 385
 
386
</body></html>
387
 
)
'; /* ]]> */