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