Subversion Repositories wimsdev

Rev

Rev 17286 | Rev 18277 | 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">
15416 bpr 14
  <style>
11949 obado 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
15416 bpr 20
    <style><!--
11949 obado 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">
15416 bpr 26
      <h1 class="wimscenter">ERROR</h1>
11949 obado 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
15416 bpr 33
  <h1>We are too busy</h1>
17237 bpr 34
  <hr style="width:50%">
15416 bpr 35
  <p>
36
    This WIMS server <span style="color:blue">$httpd_HTTP_HOST</span>
11949 obado 37
    is currently overloaded by a large number of requests, and
38
    can no longer satisfy further users. Please come back later,
15416 bpr 39
    or look for another wims mirror site.
40
  </p><p>
41
    We are very sorry for this inconvenience to you, and hope to be able
42
    to serve you soon.
43
  </p>
11949 obado 44
  !read mirror.phtml.en
45
  !goto end_html
19 reyssat 46
!endif
47
 
48
!if overload iswordof $wims_user_error
17237 bpr 49
  <hr style="width:1px">
15416 bpr 50
  <h1>SORRY</h1>
51
  <p>
11949 obado 52
  Your request is blocked by this WIMS server: connection quota exceeded.
15416 bpr 53
  </p>
11949 obado 54
  !goto end_html
19 reyssat 55
!endif
56
 
57
!if ++++missing_ isin ++++$wims_user_error
17237 bpr 58
  <hr width="1">
15416 bpr 59
  <h1>Sorry</h1>
17237 bpr 60
  <hr style="width:50%">
15416 bpr 61
  <p>
62
    WIMS needs a software
63
    !set miss=!upper $missing_software
64
    <span class="wims_warning">$miss</span>
65
    to process your request, but that software is not available (or not visible
66
    to WIMS) on this server.
67
  </p><p>
68
    You can either
69
    <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write
70
    to the site manager</a> to inform him/her of the problem, or choose a
71
    mirror site from the table below.
72
  </p><p><a href="$refname">WIMS homepage</a>.</p>
11949 obado 73
  !read mirror.phtml.en
74
  !goto end_html
19 reyssat 75
!endif
76
 
77
!if trapped iswordof $wims_user_error
15416 bpr 78
  <h1>Stop!</h1>
17237 bpr 79
  <hr>
11949 obado 80
  The content of
15416 bpr 81
  <a href="http://$httpd_HTTP_HOST">$httpd_HTTP_HOST</a> can't be accessed with a
11949 obado 82
  an offline website copier.
15416 bpr 83
  <p>
84
    Please use a regular web browser.
85
  </p><p>
86
    WIMS pages are dynamically generated. It can only be used online.
87
  </p>
11949 obado 88
  !goto end_html
19 reyssat 89
!endif
90
 
15416 bpr 91
!if no_access notwordof $wims_user_error and no_access_class notwordof $wims_user_error
92
  <h1>WIMS error</h1>
93
  <p>
94
    There is an error in your request to this WIMS site.
95
  </p>
11943 bpr 96
!endif
19 reyssat 97
!if module_change iswordof $wims_user_error
11949 obado 98
  !if $wims_human_access=yes
15416 bpr 99
    <p>
100
      Please avoid using the `Back' button of your browser,
101
      because you are on an interactive server.
17286 bpr 102
      !if $wims_user!=$empty
103
        Veuillez éviter de travailler dans la classe dans plusieurs onglets
104
        de votre navigateur à la fois.
105
      !endif
15416 bpr 106
    </p>
11949 obado 107
    <div class="wimscenter">
15416 bpr 108
    !set tit=!module title $module
109
    !default tit=$module
110
    !href module=$module $tit
111
    &nbsp;
112
    !set wims_ref_class=wims_button
113
    !href $ WIMS home
114
    !if $httpd_HTTP_REFERER!=$empty
115
      &nbsp;<a href="$httpd_HTTP_REFERER">Exit WIMS</a>
116
    !else
117
      <p class="small">
118
        If you want to get out of the site, ignore this message and continue
119
        to click on `Back'.
120
      </p>
121
    !endif
11949 obado 122
    </div>
123
    !goto end_html
19 reyssat 124
  !endif
15416 bpr 125
  <p>
126
    You have asked an illegal module change.
127
    Are you using an automatic program to access this site?
128
  </p>
11949 obado 129
  :unblock
130
  !form new
17237 bpr 131
    <input type="hidden" name="module" value="home">
132
    <input type="hidden" name="deblockparm" value="$[randint(10000000)+1000000]">
11949 obado 133
    If you have simply clicked on the `back' button of your browser,
134
    please type the word `wims' here:
17237 bpr 135
    <input size="8" name="special_parm"> then
136
    <input type="submit" value="send to the server">.
11949 obado 137
  !formend
15416 bpr 138
  <p>
139
    Please bear in mind that pages on this site are dynamically generated.
11949 obado 140
    They can therefore only be used online,
141
    via a normal browser. It is useless for you to gather these pages
15416 bpr 142
    using a robot program.
143
  </p>
11949 obado 144
  !if robot_doubt iswordof $wims_user_error
15416 bpr 145
    <p class="small">
146
      And beware that people trying to hacker on
147
      this site will see their accesses definitely denied.
148
    </p>
11949 obado 149
  !endif
150
  !goto end_html
19 reyssat 151
!endif
152
 
153
!if robot_doubt iswordof $wims_user_error
15416 bpr 154
  <p>
155
    We block further access to this site for you, because you are suspected
156
    of using an automatic program to gather pages.
157
  </p>
11949 obado 158
  !goto unblock
19 reyssat 159
!endif
160
 
161
!if allow_violation iswordof $wims_user_error
15416 bpr 162
  <p>
163
    You don't have the right to define the variable ``$wims_error_data''
164
    with the command ``$cmd''.
165
  </p>
19 reyssat 166
!endif
167
 
168
!if bad_command iswordof $wims_user_error
15416 bpr 169
  <p>
170
    The command ``$cmd'' is not valid.
171
  </p><p>
172
    Valid commands are:
173
  </p>
174
  <pre>new, renew, reply, help, hint, config</pre>
19 reyssat 175
!endif
176
 
177
!if bad_host iswordof $wims_user_error
15416 bpr 178
  <p>
179
    You have tried to access a session from another post. This is not allowed
180
    for your virtual class.
181
  </p><p>
182
    Unfortunately, some internet providers give you dynamic host addresses
11949 obado 183
    which MAY change within one connection. If this is the case, please write
184
    to the supervisor of your class asking him/her to change the access lock
15416 bpr 185
    policy.
186
  </p>
19 reyssat 187
!endif
188
 
189
!if need_https iswordof $wims_user_error
11949 obado 190
  You should connect to your class via a https request.
191
  !set refname=!replace http:// by https:// in $wims_ref_name
192
  <a href="$refname?session=$wims_session&module=home&cmd=new">Try it</a>.
193
  !goto end_html
19 reyssat 194
!endif
195
 
196
!if bad_insnum iswordof $wims_user_error
15416 bpr 197
  <p>
198
  !if $cmd=getfile
199
    The file you asked for does not exist.
200
  !else
201
    The file name for dynamic insertion is not valid.
202
  !endif
203
  </p>
19 reyssat 204
!endif
205
 
206
!if cmd_output_too_long iswordof $wims_user_error
15416 bpr 207
  <p>
208
    The intermediate result of the computation has exceeded the length limit.
209
    You have probably submitted a request which is unrealistically complicated.
210
    Simplify your request, please.
211
  </p>
19 reyssat 212
!endif
213
 
214
!if double_click iswordof $wims_user_error
11949 obado 215
  <p>
15416 bpr 216
    This request arrived while the process of another request from you is
217
    still under way.
218
  </p><p>
219
    If you have been double clicking, now please wait
220
    <span class="wims_warning">$wims_cpu_limit seconds</span>
221
    for the process of your old request to terminate, then
222
    !href cmd=resume click here
223
    to get back to your work. (And please be more patient the next time
224
    you ask wims to do lengthy computations.)
225
  </p><p>
226
    If you are using ``back'' button of your browser to get out of wims, you
227
    may ignore this message and go ahead.
228
  </p>
11949 obado 229
  !goto end_html
19 reyssat 230
!endif
231
 
232
!if invalid_char_in_query_string iswordof $wims_user_error
15416 bpr 233
  <p>
234
    The substitution ``$wims_error_data'' in the parameter string is illegal.
235
  </p>
19 reyssat 236
!endif
237
 
238
!if name_conflict iswordof $wims_user_error
15416 bpr 239
  <p>
19 reyssat 240
  ``$wims_error_data'' is a reserved name for wims.
15416 bpr 241
  </p>
19 reyssat 242
!endif
243
 
244
!if no_command iswordof $wims_user_error
15416 bpr 245
  <p>
246
    There is no command.
247
  </p>
19 reyssat 248
!endif
249
 
250
!if no_insnum iswordof $wims_user_error
15416 bpr 251
  <p>
252
  !if $cmd=getfile
253
    You have asked for a file without giving its name.
254
  !else
255
    You have asked for a dynamic insertion without giving its number.
256
  !endif
257
  </p>
19 reyssat 258
!endif
259
 
260
!if no_module_name iswordof $wims_user_error
15416 bpr 261
  <p>
262
    You have asked a new session without module name.
263
  </p>
19 reyssat 264
!endif
265
 
266
!if no_session iswordof $wims_user_error
15416 bpr 267
  <p>
268
    The session number is missing.
269
  </p>
19 reyssat 270
!endif
271
 
272
!if parm_too_long iswordof $wims_user_error
15416 bpr 273
  <p>
274
    Your parameter string has exceeded length limit. This is not allowed by
275
    security reasons. Sorry.
276
  </p>
19 reyssat 277
!endif
278
 
279
!if string_too_long iswordof $wims_user_error
15416 bpr 280
  <p>
281
    The definition of variable has a length which exceeds the limit.
282
  </p>
19 reyssat 283
!endif
284
 
285
!if too_many_variables iswordof $wims_user_error
15416 bpr 286
  <p>
287
    The number of parameters which you transmitted has exceeded the limit
288
    authorized in this wims site.
289
  </p>
19 reyssat 290
!endif
291
 
292
!if unmatched_parentheses iswordof $wims_user_error
15416 bpr 293
  <p>
294
    We have detected unmatched parentheses in your request.
295
    You may correct the error here:
296
  </p>
19 reyssat 297
  !form $cmd
15416 bpr 298
  !for i in module,special_parm,worksheet
299
    !if $($i)!=$empty
300
      !set value=!translate " to $ $ in $($i)
17237 bpr 301
      <input type="hidden" name="$i" value="$value">
15416 bpr 302
    !endif
303
  !next i
304
  !for i=0 to $user_var_no-1
305
    !if $i!=$bad_parentheses
306
      !set value=!translate " to $ $ in $(value$i)
17237 bpr 307
      <input type="hidden" name="$(name$i)" value="$value">
15416 bpr 308
    !endif
309
  !next i
310
  !set value=!translate " to $ $ in $(value$bad_parentheses)
311
  !set len=!charcnt $value
312
  !if $len<55
313
    !set len=$[$len+3]
314
  !else
315
    !set len=59
316
  !endif
317
  !set input_id=$(name$bad_parentheses)
318
  <div class="field box">
319
    <label for="$input_id">$input_id =</label>
11990 obado 320
    !set n=!linecnt $value
15416 bpr 321
    !if $n<=1
17237 bpr 322
      <input size="$len" name="$input_id" id="$input_id" value="$value">
15416 bpr 323
    !else
324
      <textarea rows="$n" name="$input_id" id="$input_id">$(value$bad_parentheses)</textarea>
325
    !endif
326
  </div>
327
  <p class="actions">
328
    Puis
17237 bpr 329
    <input type="submit" value="envoyer la requête corrigée.">
15416 bpr 330
  </p>
331
  !formend
17237 bpr 332
  <hr>
15416 bpr 333
  <p class="wimscenter">
11990 obado 334
    !href cmd=resume Cancel the last request
335
    |
336
    !href $ wims home
15416 bpr 337
  </p>
11949 obado 338
  !goto end_html
19 reyssat 339
!endif
11943 bpr 340
 
19 reyssat 341
!if wrong_module iswordof $wims_user_error
7428 obado 342
  !set tmp=!translate "!/<>;': to $         $ in $module
15416 bpr 343
  <p>
344
    The module <code>$tmp</code> which you asked for does not exist in this site.
345
  </p>
19 reyssat 346
!endif
347
 
348
!if wrong_session iswordof $wims_user_error
15416 bpr 349
  <p>
350
    The session number ``$session'' is not (or no longer) valid.
351
    <a href="$refname">Create a new session</a>.
352
  </p>
11943 bpr 353
!endif
19 reyssat 354
 
355
!if rafale iswordof $wims_user_error
15416 bpr 356
  <p>
357
    Please don't play with the exercises!
358
  </p><p>
359
    You should take time to think carefully and try to solve the exercises
360
    correctly, instead of ask new ones over and over again.
361
  </p>
362
  !set wims_ref_class=wims_button
363
  !href cmd=resume Cancel last request
364
  .
365
  !if $wims_user!=$empty and $wims_user!=supervisor
366
    <p>
367
      <span class="wims_warning">$wims_name_warning.</span>! Don't repeat this error!
368
      Irregular activities may give you bad scores even when score registration is
369
      closed.
370
    </p>
371
  !endif
372
  !goto end2
19 reyssat 373
!endif
374
 
375
:examerr
376
 
377
!if exam_dep iswordof $wims_user_error
15416 bpr 378
  <p>
379
    This exercise is available only when you have successfully made
19 reyssat 380
  !if , isin $dep_list
15416 bpr 381
    exercises $dep_list.
19 reyssat 382
  !else
15416 bpr 383
    exercise $dep_list.
19 reyssat 384
  !endif
15416 bpr 385
  </p><p>
386
    Please first try to do the latter.
387
  </p>
19 reyssat 388
  !goto examend
389
!endif
390
 
391
!if bad_exam iswordof $wims_user_error
15416 bpr 392
  <p>
393
    You have issued an illegal request within an examination session.
394
  </p>
19 reyssat 395
  !goto examend
396
!endif
397
 
398
!if exam_exo_finished iswordof $wims_user_error
15416 bpr 399
  <p>
400
    You have already done this exercise with a score of $wims_exo_lastscore.
401
  </p><p>
402
    You cannot do it again because this is an examination.
403
  </p>
19 reyssat 404
  !goto examend
405
!endif
406
 
407
!if expired_exam iswordof $wims_user_error
15416 bpr 408
  <p>
409
    You have no more time left to work on this exam.
410
  </p>
19 reyssat 411
  :examend
412
  !set pses=!translate _ to , in $wims_session
413
  !set pses=!item 1 of $pses
414
  !set pser=!randint 1,999
415
  !set wims_opener=window.opener.location='$wims_ref_name?session=$pses.$pser&cmd=reply&job=student';
5900 bpr 416
  <p class="wimscenter">
15416 bpr 417
    <a href="#" onclick="window.close();$wims_opener">Close this window</a>.
5900 bpr 418
  </p>
11949 obado 419
  !goto end_html
19 reyssat 420
!endif
421
 
422
!if exam_closed iswordof $wims_user_error
15416 bpr 423
  <p>
424
    This exam is not accessible for your connection at the time being.
425
  </p><p>
426
    Please verify with the supervisor of your class.
427
  </p>
11949 obado 428
  !goto examend
19 reyssat 429
!endif
430
 
431
!if bad_ident iswordof $wims_user_error
11949 obado 432
  <p>
15416 bpr 433
    Your request contains a user identification error.
434
  </p><p>
435
    Are you trying to connect to somebody else's session?
436
  </p><p>
11949 obado 437
    Please
438
    <a href="$refname?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>.
439
  </p>
440
  !goto end_html
19 reyssat 441
!endif
442
 
443
!if no_access iswordof $wims_user_error
15416 bpr 444
  <div class="wims_msg warning">
445
    Your request is refused by the access policy of this site. Sorry.
446
  </div>
11943 bpr 447
  !goto end2
448
!endif
19 reyssat 449
 
15416 bpr 450
!if no_access_class iswordof $wims_user_error
17878 czzmrn 451
  !distribute items (exercises), (tools), (documents), (freeworks) into name_exo,name_tool,name_doc,name_freework
15874 bpr 452
  !set tt=!word 2 of $wims_user_error
15416 bpr 453
  <h2>Closure of class activities</h2>
454
  <div class="wims_msg warning">
15874 bpr 455
    Access to some activities of this virtual class $(name_$tt) is temporarily closed by the teacher.
15416 bpr 456
    Come back later.
457
  </div>
458
  !goto end2
459
!endif
460
 
19 reyssat 461
!if class_closed iswordof $wims_user_error
15416 bpr 462
  <h2>Sorry.</h2>
463
  <p>
464
    Access to this virtual class is temporarily closed by its supervisor.
465
    Come back later!
466
  </p><p class="wimscenter">
467
    !href cmd=close&module=home WIMS
468
  </p>
11949 obado 469
  !goto end_html
11943 bpr 470
!endif
19 reyssat 471
 
17255 guerimand 472
!if other_exam_session iswordof $wims_user_error
473
  <p>Vous avez déjà commencé une session d'examen. Vous ne pouvez pas en commencer une autre.</p>
474
  <p>Si vous avez fermé le navigateur par erreur pendant votre session d'examen revenez à la page d'accueil de la classe et vous pourrez récupérer votre session.</p>
475
  <p class="wimscenter">
476
    <a href="#" onclick="window.close();$wims_opener">Fermer cette fenêtre</a>.
477
  </p>
478
  !goto end_html
479
!endif
480
 
19 reyssat 481
:end
15416 bpr 482
<p>
483
  If you see this message after following a link given by another page, it
11949 obado 484
  probably is because the link is not well-prepared. In this case, please
15416 bpr 485
  contact the author of that page, to inform him of the error.
486
</p><p>
487
  You may also
11949 obado 488
  write to the
489
  <a href="mailto:$wims_site_manager?subject=wims.cgi">manager of this
490
  site</a>, with as many details as possible about the circomstances
491
  under which the error has occurred.
492
</p>
19 reyssat 493
 
494
:end2
15416 bpr 495
 
496
<div class="wimscenter">
11949 obado 497
  !set wims_ref_class=wims_button home
498
  !href module=home&cmd=new WIMS Home Page
5755 bpr 499
</div>
19 reyssat 500
 
11949 obado 501
:end_html
19 reyssat 502
</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.
'; rev[15416] = '
2020-10-03 10:45:18
[help] try to harmonize the language add message for no_access_class change the help for accessconf
'; rev[15874] = '
2021-06-12 09:47:35
[user_error] personalize the message when some activities in the class are closed by the teacher.
'; rev[17237] = '
2022-10-31 11:49:03
xhtml -> html5
'; rev[17255] = '
2022-11-04 14:59:04
[major,adm/class/exam] forbidden open two session exam manage by kernel c
'; rev[17286] = '
2022-11-10 11:54:43
[language] check
'; rev[17878] = '
2023-12-09 08:54:35
[accessconf] add possibility to set accessconf for freeworks
'; /* ]]> */