Subversion Repositories wimsdev

Rev

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