Subversion Repositories wimsdev

Rev

Rev 17215 | 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
  12. !!  and $sm!=#   (simulation are now same as normal mode)
  13.    <span class="wims_warning">$wims_name_warning</span>.
  14.     $U_examworking
  15.     !if $h_=$httpd_REMOTE_ADDR
  16.       !href session=$s_&module=adm/class/exam&job=student&exam=$n_ $U_examcont
  17.     !else
  18.       $U_examdouble
  19.       !sh rm -f ../sessions/$ws/var.stat >/dev/null
  20.     !endif
  21.     !let shortout=1
  22. !endif
  23. !if $t_<$now or $r_=$empty
  24.   !sh rm -f ../log/classes/$wims_class/.parmreg/$wims_user.exam
  25. !endif
  26.