Subversion Repositories wimsdev

Rev

Rev 19 | Rev 4747 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 3570
Line 2... Line 2...
2
Server: WIMS $wims_version (WWW Interactive Multipurpose Server)
2
Server: WIMS $wims_version (WWW Interactive Multipurpose Server)
3
Content-type: text/html; charset=iso-8859-1
3
Content-type: text/html; charset=iso-8859-1
4
Cache-Control: no-cache
4
Cache-Control: no-cache
5
Pragma: no-cache
5
Pragma: no-cache
6
 
6
 
7
<HTML><HEAD>
7
<html><head>
8
<meta http-equiv=expires content="1 Jan 1990">
8
<meta http-equiv=expires content="1 Jan 1990">
9
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
9
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
10
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
10
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
11
!if exam_ isin $wims_user_error
11
!if exam_ isin $wims_user_error
12
<STYLE TYPE="text/css"><!--
12
<style type="text/css"><!--
13
body {text-align: justify;
13
body {text-align: justify;
14
padding-left: 3%; padding-right: 3%;}
14
padding-left: 3%; padding-right: 3%;}
15
--></STYLE>
15
--></style>
16
</HEAD><BODY onload="window.resizeTo(500,200);window.moveTo(250,300);">
16
</head><body onload="window.resizeTo(500,200);window.moveTo(250,300);">
17
<H1 align=center>ERROR</H1>
17
<h1 align="center">ERROR</h1>
18
!goto examerr
18
!goto examerr
19
!endif
19
!endif
20
</HEAD><BODY>
20
</head><body>
21
 
-
 
22
!if threshold iswordof $wims_user_error
21
!if threshold iswordof $wims_user_error
23
 <hr width=1>
22
 <hr width="1">
24
 <H1 align=center>We are too busy</H1>
23
 <h1 align="center">We are too busy</h1>
25
 <hr width=50%><p>
24
 <hr width="50%"><p>
26
 This WIMS server <font color=blue>$httpd_HTTP_HOST</font> 
25
 This WIMS server <font color="blue">$httpd_HTTP_HOST</font> 
27
 is currently overloaded by a large number of requests, and
26
 is currently overloaded by a large number of requests, and
28
 can no longer satisfy further users. Please come back later, 
27
 can no longer satisfy further users. Please come back later, 
29
 or look for another wims mirror site.
28
 or look for another wims mirror site.
30
 <p>We are very sorry for this inconvenience to you, and hope to be able
29
 <p>We are very sorry for this inconvenience to you, and hope to be able
31
 to serve you soon.
30
 to serve you soon.
32
 !read mirror.phtml.en
31
 !read mirror.phtml.en
33
 </body></html>
32
 </body></html>
34
 !exit
33
 !exit
35
!endif
34
!endif
36
 
35
 
37
!if overload iswordof $wims_user_error
36
!if overload iswordof $wims_user_error
38
 <hr width=1>
37
 <hr width="1">
39
 <H1 align=center>SORRY</H1>
38
 <h1 align="center">SORRY</h1>
40
 Your request is blocked by this WIMS server: connection quota exceeded.
39
 Your request is blocked by this WIMS server: connection quota exceeded.
41
 </body></html>
40
 </body></html>
42
 !exit
41
 !exit
43
!endif
42
!endif
44
 
43
 
45
!if ++++missing_ isin ++++$wims_user_error
44
!if ++++missing_ isin ++++$wims_user_error
46
 <hr width=1>
45
 <hr width="1">
47
 <H1 align=center>Sorry</H1>
46
 <h1 align="center">Sorry</h1>
48
 <hr width=50%><p>
47
 <hr width="50%"><p>
49
 WIMS needs a software
48
 WIMS needs a software
50
 !set miss=!upper $missing_software
49
 !set miss=!upper $missing_software
51
 <b><font color=red>$miss</font></b>
50
 <b><font color="red">$miss</font></b>
52
 to process your request, but that software is not available (or not visible
51
 to process your request, but that software is not available (or not visible
53
 to WIMS) on this server.
52
 to WIMS) on this server.
54
 <p>
53
 <p>
55
 You can either
54
 You can either
56
 <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write 
55
 <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write 
57
 to the site manager</a> to inform him/her of the problem, or choose a
56
 to the site manager</a> to inform him/her of the problem, or choose a
58
 mirror site from the table below.
57
 mirror site from the table below.
59
 <a href=wims.cgi>WIMS homepage</a>.
58
 <a href="wims.cgi">WIMS homepage</a>.
60
 !read mirror.phtml.en
59
 !read mirror.phtml.en
61
 </body></html>
60
 </body></html>
62
 !exit
61
 !exit
63
!endif
62
!endif
64
 
63
 
65
!if trapped iswordof $wims_user_error
64
!if trapped iswordof $wims_user_error
66
 <H1 align=center>Stop!</H1><hr>
65
 <h1 align="center">Stop!</h1><hr>
67
 The content of 
-
 
68
 <A HREF=http://$httpd_HTTP_HOST>$httpd_HTTP_HOST</a> is not compatible
-
 
69
 with automatic page gathering programs and `web accelerators'.
-
 
70
 <p>
-
 
71
 To access WIMS activities on this site, please use an ordinary web
-
 
72
 browser with no access acceleration programs installed behind.
-
 
73
 <p>
-
 
74
 Please remember that WIMS pages are dynamically generated. They cannot
-
 
75
 be used off line anyway.
-
 
76
 </body></html>
-
 
77
 !exit
-
 
78
!endif
66
!endif
79
 
67
 
80
<H1 align=center>WIMS error</H1><hr>
68
<h1 align="center">WIMS error</h1><hr><p>
81
 
69
 
82
There is an error in your request to this WIMS site.<p>
70
There is an error in your request to this WIMS site.<p>
83
 
71
 
84
!if module_change iswordof $wims_user_error
72
!if module_change iswordof $wims_user_error
85
 !if $wims_human_access=yes
73
 !if $wims_human_access=yes
Line 102... Line 90...
102
 !endif
90
 !endif
103
 You have asked an illegal module change.
91
 You have asked an illegal module change.
104
 Are you using an automatic program to access this site?
92
 Are you using an automatic program to access this site?
105
 :unblock
93
 :unblock
106
 !form new
94
 !form new
107
 <input type=hidden name=module value="home">
95
 <input type="hidden" name="module" value="home">
108
 <input type=hidden name=deblockparm value="$[randint(10000000)+1000000]">
96
 <input type="hidden" name="deblockparm" value="$[randint(10000000)+1000000]">
109
 If you have simply clicked on the `back' button of your browser,
97
 If you have simply clicked on the `back' button of your browser,
110
 please type the word `wims' here:
98
 please type the word `wims' here:
111
 <input size=8 name=special_parm> then
99
 <input size="8" name="special_parm"> then
112
 <input type=submit value="send to the server">.</form>
100
 <input type="submit" value="send to the server">.</form>
113
 <p>
101
 <p>
114
 Please bear in mind that pages on this site are dynamically generated.
102
 Please bear in mind that pages on this site are dynamically generated.
115
 They can therefore only be used online, 
103
 They can therefore only be used online, 
116
 via a normal browser. It is useless for you to gather these pages
104
 via a normal browser. It is useless for you to gather these pages
117
 using a robot program.
105
 using a robot program.
Line 169... Line 157...
169
 
157
 
170
!if cmd_output_too_long iswordof $wims_user_error
158
!if cmd_output_too_long iswordof $wims_user_error
171
  The intermediate result of the computation has exceeded the length limit.
159
  The intermediate result of the computation has exceeded the length limit.
172
  You have probably submitted a request which is unrealistically complicated.
160
  You have probably submitted a request which is unrealistically complicated.
173
  Simplify your request, please.
161
  Simplify your request, please.
174
  !goto end
162
  !goto end
175
!endif
163
!endif
176
 
164
 
177
!if double_click iswordof $wims_user_error
165
!if double_click iswordof $wims_user_error
178
 This request arrived while the process of another request from you is 
166
 This request arrived while the process of another request from you is 
179
 still under way.<p>
167
 still under way.<p>
180
 If you have been double clicking, now please wait 
168
 If you have been double clicking, now please wait 
181
 <font color=red><b>$wims_cpu_limit seconds</b></font>
169
 <font color="red"><b>$wims_cpu_limit seconds</b></font>
182
 for the process of your old request to terminate, then
170
 for the process of your old request to terminate, then
183
 !href cmd=resume click here
171
 !href cmd=resume click here
184
 to get back to your work. (And please be more patient the next time
172
 to get back to your work. (And please be more patient the next time
185
 you ask wims to do lengthy computations.)
173
 you ask wims to do lengthy computations.)
186
 <p>
174
 <p>
Line 252... Line 240...
252
   !endif
240
   !endif
253
  !next i
241
  !next i
254
  !for i=0 to $user_var_no-1
242
  !for i=0 to $user_var_no-1
255
   !if $i!=$bad_parentheses
243
   !if $i!=$bad_parentheses
256
    !set value=!translate " to $ $ in $(value$i)
244
    !set value=!translate " to $ $ in $(value$i)
257
    <input type=hidden name=$(name$i) value="$value">
245
    <input type="hidden" name="$(name$i)" value="$value">
258
   !endif
246
   !endif
259
  !next i
247
  !next i
260
  !set value=!translate " to $ $ in $(value$bad_parentheses)
248
  !set value=!translate " to $ $ in $(value$bad_parentheses)
261
  !set len=!charcnt $value
249
  !set len=!charcnt $value
262
  !set n=!linecnt $value
250
  !set n=!linecnt $value
Line 264... Line 252...
264
   !if $len<55
252
   !if $len<55
265
    !set len=$[$len+3]
253
    !set len=$[$len+3]
266
   !else
254
   !else
267
    !set len=59
255
    !set len=59
268
   !endif
256
   !endif
269
   <input size=$len name=$(name$bad_parentheses) value="$value"><p>
257
   <input size="$len" name="$(name$bad_parentheses)" value="$value"><p>
270
  !else
258
  !else
271
   !if $n>10
259
   !if $n>10
272
    !set n=10
260
    !set n=10
273
   !endif
261
   !endif
274
   <textarea rows=$n cols=50 name=$(name$bad_parentheses)>$value</textarea>
262
   <textarea rows="$n" cols="50" name="$(name$bad_parentheses)">$value</textarea>
275
   <p>
263
   <p>
276
  !endif
264
  !endif
277
  Then
265
  Then
278
  <input type=submit value="send the corrected request.">
266
  <input type="submit" value="send the corrected request.">
279
  </form><p><hr><p><center>
267
  </form><p><hr><p><center>
280
  !href cmd=resume Cancel the last request
268
  !href cmd=resume Cancel the last request
281
, or
269
, or
282
  !href $ wims home
270
  !href $ wims home
283
.</center>
271
.</center>
Line 300... Line 288...
300
 <p>
288
 <p>
301
 You should take time to think carefully and try to solve the exercises
289
 You should take time to think carefully and try to solve the exercises
302
 correctly, instead of ask new ones over and over again.
290
 correctly, instead of ask new ones over and over again.
303
 !href cmd=resume Cancel the last request
291
 !href cmd=resume Cancel the last request
304
.
292
.
-
 
293
 !if $wims_user!=$empty and $wims_user!=supervisor
-
 
294
  <p><b><font color="red">ATTENTION</font></b>! Don't repeat this error!
-
 
295
  Irregular activities may give you bad scores even when score registration is
-
 
296
  closed.
-
 
297
 !endif
305
 !goto end2
298
 !goto end2
306
!endif
299
!endif
307
 
300
 
308
:examerr
301
:examerr
309
 
302
 
Line 351... Line 344...
351
!if bad_ident iswordof $wims_user_error
344
!if bad_ident iswordof $wims_user_error
352
 Your request contains a user identification error. Are you trying to connect
345
 Your request contains a user identification error. Are you trying to connect
353
 to somebody else's session?
346
 to somebody else's session?
354
 <p>
347
 <p>
355
 Please
348
 Please
356
 <a href=wims.cgi?special_parm=ignorecookie&special_parm2=$[randint(10^8)]>make a new connection</a>.
349
 <a href="wims.cgi?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>.
357
 </body></html>
350
 </body></html>
358
 !exit
351
 !exit
359
!endif
352
!endif
360
 
353
 
361
!if no_access iswordof $wims_user_error
354
!if no_access iswordof $wims_user_error
Line 385... Line 378...
385
under which the error has occurred.
378
under which the error has occurred.
386
 
379
 
387
:end2
380
:end2
388
<hr><p>
381
<hr><p>
389
<center>
382
<center>
390
!href module=home&cmd=new WIMS homepage
383
!href module=home&cmd=new Home page
391
</center>
384
</center>
392
 
385
 
393
</body></html>
386
</body></html>
394
 
387