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
 
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">错误</h1>
19 reyssat 18
!goto examerr
19
!endif
3570 bpr 20
</head><body>
19 reyssat 21
!if threshold iswordof $wims_user_error
5900 bpr 22
 <h1 class="wims_center">目前正忙</h1>
23
 <hr style="width:50%"/><p>
11943 bpr 24
 本 WIMS 服务器 <font color="blue">$httpd_HTTP_HOST</font>
25
 目前由于大量的请求而超载,
26
 不能再接受新的用户. 请稍后再来,
4756 zjchen 27
 或访问其他 WIMS 镜像站.
5900 bpr 28
 </p>我们对由此带来的不便表示歉意,
4756 zjchen 29
 希望很快就能继续为您服务.
30
 !read mirror.phtml.cn
19 reyssat 31
 </body></html>
32
 !exit
33
!endif
34
 
35
!if overload iswordof $wims_user_error
5755 bpr 36
 <hr width="1"/>
5900 bpr 37
 <h1 class="wims_center">抱歉</h1>
4756 zjchen 38
 你的请求因超过连接配额而被服务器阻止.
19 reyssat 39
 </body></html>
40
 !exit
41
!endif
42
 
43
!if ++++missing_ isin ++++$wims_user_error
5900 bpr 44
 
45
 <h1 class="wims_center">抱歉</h1>
46
 <hr style="width:50%"/>
4756 zjchen 47
 WIMS 需要软件
19 reyssat 48
 !set miss=!upper $missing_software
4747 bpr 49
 <span class="wims_warning">$miss</span>
4756 zjchen 50
 来处理你的请求, 可是在本服务器上此软件不可用
51
 (或 WIMS 看不到).
19 reyssat 52
 <p>
4756 zjchen 53
 你可以发电邮
11943 bpr 54
 <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write
4756 zjchen 55
 给网站管理员</a>报告此问题,
56
 或另选一个镜像站
57
 <a href="wims.cgi">WIMS 主页</a>.
58
 !read mirror.phtml.cn
19 reyssat 59
 </body></html>
60
 !exit
61
!endif
62
 
63
!if trapped iswordof $wims_user_error
5755 bpr 64
 <h1 align=center>停止!</h1><hr/>
4756 zjchen 65
 <a HREF="http://$httpd_HTTP_HOST">$httpd_HTTP_HOST</a>
66
 的内容与自动页面收集程序及
67
 `web 加速器' 不相容.
19 reyssat 68
 <p>
4756 zjchen 69
 为利用本站的 WIMS 服务,
70
 请使用不安装加速程序的常规浏览器.
19 reyssat 71
 <p>
4756 zjchen 72
 请记住, WIMS 页面是动态生成的.
73
 不能离线使用.
19 reyssat 74
 </body></html>
75
 !exit
76
!endif
77
 
11943 bpr 78
<h1 class="wims_center">WIMS 错误</h1><hr/>
79
!if no_access notwordof $wims_user_error
80
 <p>你对本 WIMS 服务器发出的请求里有错.</p>
81
!endif
19 reyssat 82
!if module_change iswordof $wims_user_error
83
 !if $wims_human_access=yes
4756 zjchen 84
  请避免使用浏览器的 `返回' 键,
85
  因为你面对的是互动的服务器.
5900 bpr 86
  <p class="wimscenter">
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
4756 zjchen 93
   &nbsp;&nbsp;&nbsp;<a href="$httpd_HTTP_REFERER">退出 WIMS</a>
19 reyssat 94
  !else
5900 bpr 95
   </p>
4756 zjchen 96
   <small>如果你想退出本站,
97
   请忽略此信息并继续按 `返回'.</small>
19 reyssat 98
  !endif
99
  !exit
100
 !endif
4756 zjchen 101
 你请求的是非法的模块改变.
102
 你是否在使用自动程序进入本站?
19 reyssat 103
 :unblock
104
 !form new
5755 bpr 105
 <input type="hidden" name="module" value="home"/>
106
 <input type="hidden" name="deblockparm" value="$[randint(10000000)+1000000]"/>
4756 zjchen 107
 如果你只是点击了浏览器的 `返回' 键,
108
 请在这里输入 `wims':
5755 bpr 109
 <input size="8" name="special_parm"/> 然后
110
 <input type="submit" value="发送到服务器"/>.</form>
19 reyssat 111
 <p>
4756 zjchen 112
 请记住, 本站的页面都是动态生成的.
11943 bpr 113
 因此只能通过常规浏览器在线使用.
4756 zjchen 114
 想利用自动化程序来收集网页是没有意义的.
19 reyssat 115
 !if robot_doubt iswordof $wims_user_error
4756 zjchen 116
  <small>如果黑客想闯入此网站,
117
 将会被拒绝.</small>
19 reyssat 118
 !endif
119
 !exit
120
!endif
121
 
122
!if robot_doubt iswordof $wims_user_error
4756 zjchen 123
 我们将不让你继续进入此网站,
124
  因为怀疑你使用了自动收集网页的程序.
19 reyssat 125
 !goto unblock
126
!endif
127
 
128
!if allow_violation iswordof $wims_user_error
4756 zjchen 129
  你没有权利用命令 ``$cmd'' 来定义变量
130
  ``$wims_error_data''.
19 reyssat 131
  !goto end
132
!endif
133
 
134
!if bad_command iswordof $wims_user_error
4756 zjchen 135
  命令 ``$cmd'' 无效.
5900 bpr 136
  <p> 有效的命令是: </p><pre>
19 reyssat 137
  new, renew, reply, hint, config </pre>
138
!endif
139
 
140
!if bad_host iswordof $wims_user_error
4756 zjchen 141
  你想从其它站点建立会话.
142
  这在你的虚拟班是禁止的.
19 reyssat 143
  <p>
4756 zjchen 144
  可能某些因特网接入的提供者给你的是动态地址,
145
  即使在同一个连接中也会变化. 如果遇到这种情形,
11943 bpr 146
  请与班级的指导教师联系,
4756 zjchen 147
  请他改变接入的锁定策略.
5900 bpr 148
  </p>
19 reyssat 149
  !goto end
150
!endif
151
 
152
!if need_https iswordof $wims_user_error
4756 zjchen 153
 你应该通过 https 请求连接到你的班级.
19 reyssat 154
 !set refname=!replace http:// by https:// in $wims_ref_name
4756 zjchen 155
 <a href="$refname?session=$wims_session&module=home&cmd=new">试试看</a>.
19 reyssat 156
 !exit
157
!endif
158
 
159
!if bad_insnum iswordof $wims_user_error
160
 !if $cmd=getfile
4756 zjchen 161
  你请求的文件不存在.
19 reyssat 162
 !else
4756 zjchen 163
  动态插入的文件名无效.
19 reyssat 164
 !endif
165
 !goto end
166
!endif
167
 
168
!if cmd_output_too_long iswordof $wims_user_error
4756 zjchen 169
  计算的中间结果超出了长度限制.
170
  你的请求大概过分复杂了.
171
  请加以简化.
19 reyssat 172
  !goto end
173
!endif
174
 
175
!if double_click iswordof $wims_user_error
4756 zjchen 176
 此请求来到时你的另一个请求正在处理中.<p>
11943 bpr 177
 如果你点击了两次, 请等待
4756 zjchen 178
 <span class="wims_warning">$wims_cpu_limit 秒</span>
179
 使得你原来的请求被处理完, 然后
180
 !href cmd=resume 点击这里
11943 bpr 181
 以回到你的工作.
4756 zjchen 182
 (以后当你要求 WIMS 做冗长的计算时, 请更多一点耐心.)
19 reyssat 183
 <p>
4756 zjchen 184
 如果你按了浏览器的 ``返回'' 按钮以退出 wims,
185
 那么可以忽略这个信息.
19 reyssat 186
 !exit
187
!endif
188
 
189
!if invalid_char_in_query_string iswordof $wims_user_error
4756 zjchen 190
  在参数序列里替换 ``$wims_error_data'' 是非法的.
19 reyssat 191
  !goto end
192
!endif
193
 
194
!if name_conflict iswordof $wims_user_error
4756 zjchen 195
  ``$wims_error_data'' 是被 wims 保留的名称.
19 reyssat 196
  !goto end
197
!endif
198
 
199
!if no_command iswordof $wims_user_error
4756 zjchen 200
  没有命令.
19 reyssat 201
  !goto end
202
!endif
203
 
204
!if no_insnum iswordof $wims_user_error
205
 !if $cmd=getfile
4756 zjchen 206
  你没有给出请求的文件名.
19 reyssat 207
 !else
4756 zjchen 208
  你请求的动态插入没有给出号码.
19 reyssat 209
 !endif
210
 !goto end
211
!endif
212
 
213
!if no_module_name iswordof $wims_user_error
4756 zjchen 214
  你请求的会话没有给出模块名.
19 reyssat 215
  !goto end
216
!endif
217
 
218
!if no_session iswordof $wims_user_error
4756 zjchen 219
  缺少会话编号.
19 reyssat 220
  !goto end
221
!endif
222
 
223
!if parm_too_long iswordof $wims_user_error
4756 zjchen 224
  你的参数串超过长度极限.
225
  出于安全的原因被拒绝.
19 reyssat 226
  !goto end
227
!endif
228
 
229
!if string_too_long iswordof $wims_user_error
4756 zjchen 230
  变量定义的长度超出极限.
19 reyssat 231
  !goto end
232
!endif
233
 
234
!if too_many_variables iswordof $wims_user_error
4756 zjchen 235
  你传送的参数个数超限.
19 reyssat 236
  !goto end
237
!endif
238
 
239
!if unmatched_parentheses iswordof $wims_user_error
4756 zjchen 240
  你的请求里有不匹配的括号.
241
  你可以在这里改正:
19 reyssat 242
  !form $cmd
243
  $(name$bad_parentheses) =
244
  !for i in module,special_parm,worksheet
245
   !if $($i)!=$empty
246
    !set value=!translate " to $ $ in $($i)
5755 bpr 247
    <input type=hidden name=$i value="$value"/>
19 reyssat 248
   !endif
249
  !next i
250
  !for i=0 to $user_var_no-1
251
   !if $i!=$bad_parentheses
252
    !set value=!translate " to $ $ in $(value$i)
5755 bpr 253
    <input type="hidden" name="$(name$i)" value="$value"/>
19 reyssat 254
   !endif
255
  !next i
256
  !set value=!translate " to $ $ in $(value$bad_parentheses)
257
  !set len=!charcnt $value
258
  !set n=!linecnt $value
259
  !if $n<=1
260
   !if $len<55
261
    !set len=$[$len+3]
262
   !else
263
    !set len=59
264
   !endif
5755 bpr 265
   <input size="$len" name="$(name$bad_parentheses)" value="$value"/><p>
19 reyssat 266
  !else
267
   !if $n>10
268
    !set n=10
269
   !endif
3570 bpr 270
   <textarea rows="$n" cols="50" name="$(name$bad_parentheses)">$value</textarea>
19 reyssat 271
   <p>
272
  !endif
4756 zjchen 273
  然后
5755 bpr 274
  <input type="submit" value="发送改正后的请求."/>
275
  </form><p><hr/><div class="wimscenter">
4756 zjchen 276
  !href cmd=resume 取消上一个请求
277
, 或
19 reyssat 278
  !href $ wims home
5755 bpr 279
.</div>
19 reyssat 280
  !exit
281
!endif
11943 bpr 282
 
19 reyssat 283
!if wrong_module iswordof $wims_user_error
7428 obado 284
  !set tmp=!translate "!/<>;': to $         $ in $module
285
  本站不存在你请求的模块 <code>$tmp</code>.
19 reyssat 286
  !goto end
287
!endif
288
 
289
!if wrong_session iswordof $wims_user_error
4756 zjchen 290
  会话号 ``$session'' 无效 (或已失效).
291
  <a href="wims.cgi">创建新会话</a>.
19 reyssat 292
  !goto end
11943 bpr 293
!endif
19 reyssat 294
 
295
!if rafale iswordof $wims_user_error
4756 zjchen 296
 请不要与练习开玩笑!
19 reyssat 297
 <p>
4756 zjchen 298
 你应该花时间仔细思考并尝试正确解答练习,
299
 而不是不断的要求新的练习.
300
 !href cmd=resume 取消上一次请求
19 reyssat 301
.
3570 bpr 302
 !if $wims_user!=$empty and $wims_user!=supervisor
4756 zjchen 303
  <p><span class="wims_warning">注意</span>! 不要重复这个错误!
304
  即使记分器关闭时,
305
  不合规则的活动也会造成失分.
3570 bpr 306
 !endif
19 reyssat 307
 !goto end2
308
!endif
309
 
310
:examerr
311
 
312
!if exam_dep iswordof $wims_user_error
4756 zjchen 313
  本练习必须在你成功完成了
19 reyssat 314
  !if , isin $dep_list
4756 zjchen 315
   练习 $dep_list 后才能做.
19 reyssat 316
  !else
4756 zjchen 317
   练习 $dep_list 后才能做.
19 reyssat 318
  !endif
4756 zjchen 319
  请先把它们做好.
19 reyssat 320
  !goto examend
321
!endif
322
 
323
!if bad_exam iswordof $wims_user_error
4756 zjchen 324
  你在考试时发出了非法的请求.
19 reyssat 325
  !goto examend
326
!endif
327
 
328
!if exam_exo_finished iswordof $wims_user_error
4756 zjchen 329
  你已经做了此练习, 得分是 $wims_exo_lastscore.
330
  作为考试, 你不能重做了.
19 reyssat 331
  !goto examend
332
!endif
333
 
334
!if expired_exam iswordof $wims_user_error
4756 zjchen 335
  这次考试的时间已用完.
19 reyssat 336
  :examend
337
  !set pses=!translate _ to , in $wims_session
338
  !set pses=!item 1 of $pses
339
  !set pser=!randint 1,999
340
  !set wims_opener=window.opener.location='$wims_ref_name?session=$pses.$pser&cmd=reply&job=student';
5900 bpr 341
  <p class="wimscenter">
4756 zjchen 342
  <a href=# onclick="window.close();$wims_opener">请关闭此窗口</a>.
5900 bpr 343
  </p>
19 reyssat 344
  !exit
345
!endif
346
 
347
!if exam_closed iswordof $wims_user_error
4756 zjchen 348
 从你的连接目前不能进入考试.
349
 请与班级的指导老师联系.
19 reyssat 350
 !goto examend
351
!endif
352
 
353
!if bad_ident iswordof $wims_user_error
4756 zjchen 354
 你的请求的用户认证有错.
355
 你是不是想进入他人的会话?
19 reyssat 356
 <p>
4756 zjchen 357
358
 <a href="wims.cgi?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">建立新会话</a>.
5900 bpr 359
 </p></body></html>
19 reyssat 360
 !exit
361
!endif
362
 
363
!if no_access iswordof $wims_user_error
4756 zjchen 364
  根据本站的接入策略, 你的请求被拒绝. 抱歉.
11943 bpr 365
  !goto end2
366
!endif
19 reyssat 367
 
368
!if class_closed iswordof $wims_user_error
369
  Sorry.
370
  <p>
4756 zjchen 371
  指导教师暂时关闭了这个虚拟班.
372
  请以后再来!
5755 bpr 373
  <div class="wimscenter">
19 reyssat 374
  !href cmd=close&module=home WIMS
5755 bpr 375
  </div>
19 reyssat 376
  </body></html>
377
  !exit
11943 bpr 378
!endif
19 reyssat 379
 
380
:end
4756 zjchen 381
<p>如果你点击了某页面的链接而出现了目前的信息,
382
那么很可能是因为此链接没有准备好.
383
请你联系那个页面的作者告诉他这个错误.
384
也可以发电邮给
385
<a href="mailto:$wims_site_manager?subject=wims.cgi">网站管理员</a>,
386
告诉他错误发生的细节.
19 reyssat 387
 
388
:end2
5755 bpr 389
<hr/><div class="wimscenter">
4756 zjchen 390
!href module=home&cmd=new 主页
5755 bpr 391
</div>
19 reyssat 392
 
393
</body></html>
394
 
)
'; rev[11943] = '
2017-09-24 15:09:11
[minor] change error msg when a ressource is not allowed
'; /* ]]> */