Subversion Repositories wimsdev

Rev

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