Subversion Repositories wimsdev

Rev

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

  1. !! manage open session of exam
  2. !!
  3.  
  4. !reset shortout
  5. !distribute words $wims_read_parm into h_,s_,t_,n_
  6. !set r_=!record 0 of wimshome/sessions/$s_/examreg.$n_
  7. !set now=$wims_nowseconds
  8. !set ws=!translate _ to $ $ in $wims_session
  9. !set ws=!word 1 of $ws
  10. !set sm=!record 0 of wimshome/log/classes/$wims_class/.E$n_
  11. !if $r_!=$empty and $s_!=$ws and $t_>$now and $sm!=#
  12.    <span class="wims_warning">$wims_name_warning</span>.
  13.     $U_examworking
  14.     !if $h_=$httpd_REMOTE_ADDR
  15.       !href session=$s_&module=adm/class/exam&job=student&exam=$n_ $U_examcont
  16.     !else
  17.       $U_examdouble
  18.       !sh rm -f ../sessions/$ws/var.stat >/dev/null
  19.     !endif
  20.     !let shortout=1
  21. !endif
  22. !if $t_<$now or $r_=$empty
  23.     !writefile wimshome/log/classes/$wims_class/.parmreg/$wims_user.exam
  24. !endif
  25.