Subversion Repositories wimsdev

Rev

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