Subversion Repositories wimsdev

Rev

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