Subversion Repositories wimsdev

Rev

Rev 11949 | Rev 15416 | 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
 
11990 obado 80
<h1>WIMS error</h1>
11943 bpr 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
11990 obado 98
        <p class="small">If you want to get out of the site, ignore this message and continue
99
          to click on `Back'.</p>
11949 obado 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
11990 obado 177
  <p>This request arrived while the process of another request from you is
178
  still under way.</p>
11949 obado 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
11990 obado 187
  may ignore this message and go ahead.</p>
11949 obado 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
11990 obado 243
  We have detected unmatched parentheses in your request.
244
  You may correct the error here:
19 reyssat 245
  !form $cmd
11990 obado 246
    !for i in module,special_parm,worksheet
247
      !if $($i)!=$empty
248
        !set value=!translate " to $ $ in $($i)
249
        <input type="hidden" name="$i" value="$value" />
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)
255
        <input type="hidden" name="$(name$i)" value="$value"/>
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
    !set input_id=$(name$bad_parentheses)
262
    <div class="field box">
263
      <label for="$input_id">$input_id =</label>
264
      !if $n<=1
265
        !if $len<55
266
          !set len=$[$len+3]
267
        !else
268
          !set len=59
269
        !endif
270
        <input size="$len" name="$input_id" id="$input_id" value="$value" />
271
      !else
272
        !if $n>10
273
          !set n=10
274
        !endif
275
        <textarea rows="$n" name="$input_id" id="$input_id">$(value$bad_parentheses)</textarea>
276
      !endif
277
    </div>
278
    <p class="actions">
279
      Then
280
      <input type="submit" value="send the corrected request."/>
281
    </p>
282
  </form>
283
  <hr/>
284
  <div class="wimscenter">
285
    !href cmd=resume Cancel the last request
286
    |
287
    !href $ wims home
288
  </div>
11949 obado 289
  !goto end_html
19 reyssat 290
!endif
11943 bpr 291
 
19 reyssat 292
!if wrong_module iswordof $wims_user_error
7428 obado 293
  !set tmp=!translate "!/<>;': to $         $ in $module
294
  The module <code>$tmp</code> which you asked for does not exist in this site.
19 reyssat 295
  !goto end
296
!endif
297
 
298
!if wrong_session iswordof $wims_user_error
299
  The session number ``$session'' is not (or no longer) valid.
11949 obado 300
  <a href="$refname">Create a new session</a>.
19 reyssat 301
  !goto end
11943 bpr 302
!endif
19 reyssat 303
 
304
!if rafale iswordof $wims_user_error
305
 Please don't play with the exercises!
306
 <p>
307
 You should take time to think carefully and try to solve the exercises
308
 correctly, instead of ask new ones over and over again.
5394 obado 309
 !set wims_ref_class=wims_button
310
 !href cmd=resume Cancel last request
311
 !reset wims_ref_class
19 reyssat 312
.
313
 !if $wims_user!=$empty and $wims_user!=supervisor
4747 bpr 314
  <p><span class="wims_warning">$wims_name_warning.</span>! Don't repeat this error!
19 reyssat 315
  Irregular activities may give you bad scores even when score registration is
316
  closed.
317
 !endif
318
 !goto end2
319
!endif
320
 
321
:examerr
322
 
323
!if exam_dep iswordof $wims_user_error
324
  This exercise is available only when you have successfully made
325
  !if , isin $dep_list
326
   exercises $dep_list.
327
  !else
328
   exercise $dep_list.
329
  !endif
330
  Please first try to do the latter.
331
  !goto examend
332
!endif
333
 
334
!if bad_exam iswordof $wims_user_error
335
  You have issued an illegal request within an examination session.
336
  !goto examend
337
!endif
338
 
339
!if exam_exo_finished iswordof $wims_user_error
340
  You have already done this exercise with a score of $wims_exo_lastscore.
341
  You cannot do it again because this is an examination.
342
  !goto examend
343
!endif
344
 
345
!if expired_exam iswordof $wims_user_error
346
  You have no more time left to work on this exam.
347
  :examend
348
  !set pses=!translate _ to , in $wims_session
349
  !set pses=!item 1 of $pses
350
  !set pser=!randint 1,999
351
  !set wims_opener=window.opener.location='$wims_ref_name?session=$pses.$pser&cmd=reply&job=student';
5900 bpr 352
  <p class="wimscenter">
11949 obado 353
    <a href=# onclick="window.close();$wims_opener">Close this window</a>.
5900 bpr 354
  </p>
11949 obado 355
  !goto end_html
19 reyssat 356
!endif
357
 
358
!if exam_closed iswordof $wims_user_error
11949 obado 359
  This exam is not accessible for your connection at the time being. Please verify
360
  with the supervisor of your class.
361
  !goto examend
19 reyssat 362
!endif
363
 
364
!if bad_ident iswordof $wims_user_error
11949 obado 365
  Your request contains a user identification error. Are you trying to connect
366
  to somebody else's session?
367
  <p>
368
    Please
369
    <a href="$refname?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>.
370
  </p>
371
  !goto end_html
19 reyssat 372
!endif
373
 
374
!if no_access iswordof $wims_user_error
375
  Your request is refused by the access policy of this site. Sorry.
11943 bpr 376
  !goto end2
377
!endif
19 reyssat 378
 
379
!if class_closed iswordof $wims_user_error
380
  Sorry.
11949 obado 381
  <p>Access to this virtual class is temporarily closed by its supervisor.
382
  Come back later!</p>
5755 bpr 383
  <div class="wimscenter">
19 reyssat 384
  !href cmd=close&module=home WIMS
5755 bpr 385
  </div>
11949 obado 386
  !goto end_html
11943 bpr 387
!endif
19 reyssat 388
 
389
:end
11943 bpr 390
<p>If you see this message after following a link given by another page, it
11949 obado 391
  probably is because the link is not well-prepared. In this case, please
392
  contact the author of that page, to inform him of the error. You may also
393
  write to the
394
  <a href="mailto:$wims_site_manager?subject=wims.cgi">manager of this
395
  site</a>, with as many details as possible about the circomstances
396
  under which the error has occurred.
397
</p>
19 reyssat 398
 
399
:end2
5755 bpr 400
<hr/><div class="wimscenter">
11949 obado 401
  !set wims_ref_class=wims_button home
402
  !href module=home&cmd=new WIMS Home Page
403
  !reset wims_ref_class
5755 bpr 404
</div>
19 reyssat 405
 
11949 obado 406
:end_html
19 reyssat 407
</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...
'; rev[11990] = '
2017-10-02 13:09:54
[minor/ergo] in user_error, when unmatched parentheses are detected, the form has more accessibility (labels) + fr and it languages now display a textarea instead of an input for multilines inputs; like others.
'; /* ]]> */