Subversion Repositories wimsdev

Rev

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