Subversion Repositories wimsdev

Rev

Rev 11949 | Rev 15416 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

Status: 450 WIMS User Error
Server: WIMS $wims_version (WWW Interactive Multipurpose Server)
Content-type: text/html; charset=windows-1252
Cache-Control: no-cache
Pragma: no-cache

<!DOCTYPE html>
<html><head>
  <meta http-equiv=expires content="1 Jan 1990">
  <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
  <!-- Theme CSS style -->
  <link rel="stylesheet" href="html/themes/$wims_theme/css.css" type="text/css">
  <style type="text/css">
   input[type="submit"],input[type="button"],.wims_button{ background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;}
   .wims_button_help{ background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;}
  </style>

  !if exam_ isin $wims_user_error
    <style type="text/css"><!--
    body {text-align: justify;
    padding-left: 3%; padding-right: 3%;}
    --></style>
    </head>
    <body onload="window.resizeTo(500,200);window.moveTo(250,300);" class="user_error">
      <h1 class="wims_center">ERROR</h1>
    !goto examerr
  !endif

</head><body class="user_error">

!if threshold iswordof $wims_user_error
  <h1 class="wims_center">We are too busy</h1>
  <hr style="width:50%"/>
  <p>This WIMS server <span style="color:blue">$httpd_HTTP_HOST</span>
    is currently overloaded by a large number of requests, and
    can no longer satisfy further users. Please come back later,
    or look for another wims mirror site.</p>
  <p>We are very sorry for this inconvenience to you, and hope to be able
    to serve you soon.</p>
  !read mirror.phtml.en
  !goto end_html
!endif

!if overload iswordof $wims_user_error
  <h1 class="wims_center">SORRY</h1>
  Your request is blocked by this WIMS server: connection quota exceeded.
  !goto end_html
!endif

!if ++++missing_ isin ++++$wims_user_error
  <h1 class="wims_center">Sorry</h1>
  <hr style="width:50%"/>
  WIMS needs a software
  !set miss=!upper $missing_software
  <span class="wims_warning">$miss</span>
  to process your request, but that software is not available (or not visible
  to WIMS) on this server.

  You can either
  <a href="mailto:$wims_site_manager?subject=$missing_software unavailable on WIMS">write
  to the site manager</a> to inform him/her of the problem, or choose a
  mirror site from the table below.
  <a href="$refname">WIMS homepage</a>.
  !read mirror.phtml.en
  !goto end_html
!endif

!if trapped iswordof $wims_user_error
  <h1 class="wims_center">Stop!</h1>
  <hr/>
  The content of
  <a HREF="http://$httpd_HTTP_HOST">$httpd_HTTP_HOST</a> can't be accessed with a
  an offline website copier.
  <p>Please use a regular web browser.</p>
  <p>WIMS pages are dynamically generated. It can only be used online.</p>
  !goto end_html
!endif

<h1>WIMS error</h1>
!if no_access notwordof $wims_user_error
  <p>There is an error in your request to this WIMS site.</p>
!endif
!if module_change iswordof $wims_user_error
  !if $wims_human_access=yes
    Please avoid using the `Back' button of your browser,
    because you are on an interactive server.
    <div class="wimscenter">
      !set tit=!module title $module
      !default tit=$module
      !href module=$module $tit
      &nbsp;&nbsp;&nbsp;
      !set wims_ref_class=wims_button
      !href $ WIMS home
      !if $httpd_HTTP_REFERER!=$empty
        &nbsp;&nbsp;&nbsp;<a href="$httpd_HTTP_REFERER">Exit WIMS</a>
      !else
        <p class="small">If you want to get out of the site, ignore this message and continue
          to click on `Back'.</p>
      !endif
    </div>
    !goto end_html
  !endif
  You have asked an illegal module change.
  Are you using an automatic program to access this site?
  :unblock
  !form new
    <input type="hidden" name="module" value="home"/>
    <input type="hidden" name="deblockparm" value="$[randint(10000000)+1000000]"/>
    If you have simply clicked on the `back' button of your browser,
    please type the word `wims' here:
    <input size="8" name="special_parm"/> then
    <input type="submit" value="send to the server"/>.
  !formend
  <p>Please bear in mind that pages on this site are dynamically generated.
    They can therefore only be used online,
    via a normal browser. It is useless for you to gather these pages
    using a robot program.</p>
  !if robot_doubt iswordof $wims_user_error
    <p class="small">And beware that people trying to hacker on
    this site will see their accesses definitely denied.</p>
  !endif
  !goto end_html
!endif

!if robot_doubt iswordof $wims_user_error
  <p>We block further access to this site for you, because you are suspected
  of using an automatic program to gather pages.</p>
  !goto unblock
!endif

!if allow_violation iswordof $wims_user_error
  <p>You don't have the right to define the variable ``$wims_error_data''
  with the command ``$cmd''.</p>
  !goto end
!endif

!if bad_command iswordof $wims_user_error
  <p>The command ``$cmd'' is not valid.</p>
  Valid commands are: <pre>new, renew, reply, hint, config</pre>
!endif

!if bad_host iswordof $wims_user_error
  <p>You have tried to access a session from another post. This is not allowed
    for your virtual class.</p>
  <p>Unfortunately, some internet providers give you dynamic host addresses
    which MAY change within one connection. If this is the case, please write
    to the supervisor of your class asking him/her to change the access lock
    policy.</p>
  !goto end
!endif

!if need_https iswordof $wims_user_error
  You should connect to your class via a https request.
  !set refname=!replace http:// by https:// in $wims_ref_name
  <a href="$refname?session=$wims_session&module=home&cmd=new">Try it</a>.
  !goto end_html
!endif

!if bad_insnum iswordof $wims_user_error
 !if $cmd=getfile
  The file you asked for does not exist.
 !else
  The file name for dynamic insertion is not valid.
 !endif
 !goto end
!endif

!if cmd_output_too_long iswordof $wims_user_error
  The intermediate result of the computation has exceeded the length limit.
  You have probably submitted a request which is unrealistically complicated.
  Simplify your request, please.
  !goto end
!endif

!if double_click iswordof $wims_user_error
  <p>This request arrived while the process of another request from you is
  still under way.</p>
  If you have been double clicking, now please wait
  <span class="wims_warning">$wims_cpu_limit seconds</span>
  for the process of your old request to terminate, then
  !href cmd=resume click here
  to get back to your work. (And please be more patient the next time
  you ask wims to do lengthy computations.)
  <p>
  If you are using ``back'' button of your browser to get out of wims, you
  may ignore this message and go ahead.</p>
  !goto end_html
!endif

!if invalid_char_in_query_string iswordof $wims_user_error
  The substitution ``$wims_error_data'' in the parameter string is illegal.
  !goto end
!endif

!if name_conflict iswordof $wims_user_error
  ``$wims_error_data'' is a reserved name for wims.
  !goto end
!endif

!if no_command iswordof $wims_user_error
  There is no command.
  !goto end
!endif

!if no_insnum iswordof $wims_user_error
 !if $cmd=getfile
  You have asked for a file without giving its name.
 !else
  You have asked for a dynamic insertion without giving its number.
 !endif
 !goto end
!endif

!if no_module_name iswordof $wims_user_error
  You have asked a new session without module name.
  !goto end
!endif

!if no_session iswordof $wims_user_error
  The session number is missing.
  !goto end
!endif

!if parm_too_long iswordof $wims_user_error
  Your parameter string has exceeded length limit. This is not allowed by
  security reasons, sorry.
  !goto end
!endif

!if string_too_long iswordof $wims_user_error
  The definition of variable has a length which exceeds the limit.
  !goto end
!endif

!if too_many_variables iswordof $wims_user_error
  The number of parameters which you transmitted has exceeded the limit
  authorized in this wims site.
  !goto end
!endif

!if unmatched_parentheses iswordof $wims_user_error
  We have detected unmatched parentheses in your request.
  You may correct the error here:
  !form $cmd
    !for i in module,special_parm,worksheet
      !if $($i)!=$empty
        !set value=!translate " to $ $ in $($i)
        <input type="hidden" name="$i" value="$value" />
      !endif
    !next i
    !for i=0 to $user_var_no-1
      !if $i!=$bad_parentheses
        !set value=!translate " to $ $ in $(value$i)
        <input type="hidden" name="$(name$i)" value="$value"/>
      !endif
    !next i
    !set value=!translate " to $ $ in $(value$bad_parentheses)
    !set len=!charcnt $value
    !set n=!linecnt $value
    !set input_id=$(name$bad_parentheses)
    <div class="field box">
      <label for="$input_id">$input_id =</label>
      !if $n<=1
        !if $len<55
          !set len=$[$len+3]
        !else
          !set len=59
        !endif
        <input size="$len" name="$input_id" id="$input_id" value="$value" />
      !else
        !if $n>10
          !set n=10
        !endif
        <textarea rows="$n" name="$input_id" id="$input_id">$(value$bad_parentheses)</textarea>
      !endif
    </div>
    <p class="actions">
      Then
      <input type="submit" value="send the corrected request."/>
    </p>
  </form>
  <hr/>
  <div class="wimscenter">
    !href cmd=resume Cancel the last request
    |
    !href $ wims home
  </div>
  !goto end_html
!endif

!if wrong_module iswordof $wims_user_error
  !set tmp=!translate "!/<>;': to $         $ in $module
  The module <code>$tmp</code> which you asked for does not exist in this site.
  !goto end
!endif

!if wrong_session iswordof $wims_user_error
  The session number ``$session'' is not (or no longer) valid.
  <a href="$refname">Create a new session</a>.
  !goto end
!endif

!if rafale iswordof $wims_user_error
 Please don't play with the exercises!
 <p>
 You should take time to think carefully and try to solve the exercises
 correctly, instead of ask new ones over and over again.
 !set wims_ref_class=wims_button
 !href cmd=resume Cancel last request
 !reset wims_ref_class
.
 !if $wims_user!=$empty and $wims_user!=supervisor
  <p><span class="wims_warning">$wims_name_warning.</span>! Don't repeat this error!
  Irregular activities may give you bad scores even when score registration is
  closed.
 !endif
 !goto end2
!endif

:examerr

!if exam_dep iswordof $wims_user_error
  This exercise is available only when you have successfully made
  !if , isin $dep_list
   exercises $dep_list.
  !else
   exercise $dep_list.
  !endif
  Please first try to do the latter.
  !goto examend
!endif

!if bad_exam iswordof $wims_user_error
  You have issued an illegal request within an examination session.
  !goto examend
!endif

!if exam_exo_finished iswordof $wims_user_error
  You have already done this exercise with a score of $wims_exo_lastscore.
  You cannot do it again because this is an examination.
  !goto examend
!endif

!if expired_exam iswordof $wims_user_error
  You have no more time left to work on this exam.
  :examend
  !set pses=!translate _ to , in $wims_session
  !set pses=!item 1 of $pses
  !set pser=!randint 1,999
  !set wims_opener=window.opener.location='$wims_ref_name?session=$pses.$pser&cmd=reply&job=student';
  <p class="wimscenter">
    <a href=# onclick="window.close();$wims_opener">Close this window</a>.
  </p>
  !goto end_html
!endif

!if exam_closed iswordof $wims_user_error
  This exam is not accessible for your connection at the time being. Please verify
  with the supervisor of your class.
  !goto examend
!endif

!if bad_ident iswordof $wims_user_error
  Your request contains a user identification error. Are you trying to connect
  to somebody else's session?
  <p>
    Please
    <a href="$refname?special_parm=ignorecookie&special_parm2=$[randint(10^8)]">make a new connection</a>.
  </p>
  !goto end_html
!endif

!if no_access iswordof $wims_user_error
  Your request is refused by the access policy of this site. Sorry.
  !goto end2
!endif

!if class_closed iswordof $wims_user_error
  Sorry.
  <p>Access to this virtual class is temporarily closed by its supervisor.
  Come back later!</p>
  <div class="wimscenter">
  !href cmd=close&module=home WIMS
  </div>
  !goto end_html
!endif

:end
<p>If you see this message after following a link given by another page, it
  probably is because the link is not well-prepared. In this case, please
  contact the author of that page, to inform him of the error. You may also
  write to the
  <a href="mailto:$wims_site_manager?subject=wims.cgi">manager of this
  site</a>, with as many details as possible about the circomstances
  under which the error has occurred.
</p>

:end2
<hr/><div class="wimscenter">
  !set wims_ref_class=wims_button home
  !href module=home&cmd=new WIMS Home Page
  !reset wims_ref_class
</div>

:end_html
</body></html>