Rev 17089 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16479 | guerimand | 1 | !read adm/class/classlang names.phtml |
2 | |||
17264 | guerimand | 3 | !! disconnect for example class |
4 | !if $wims_superclass=$empty |
||
5 | sclass=$wims_class |
||
6 | !else |
||
7 | sclass=$wims_superclass |
||
8 | !endif |
||
9 | !if $sclass<10000 |
||
17089 | guerimand | 10 | error=closedmodexcls |
11 | !exit |
||
12 | !endif |
||
13 | |||
16512 | guerimand | 14 | !if $wims_user!=supervisor |
15 | job=oneuser |
||
16 | !if $error=$empty |
||
17 | !changeto $job.proc |
||
18 | !endif |
||
19 | !endif |
||
20 | |||
21 | !if $error isitemof notsupervisor,noclass,nosupervisoremail,sendmailteacherclose |
||
16479 | guerimand | 22 | !reset job |
23 | !exit |
||
24 | !endif |
||
25 | |||
16512 | guerimand | 26 | !if $nb_user=0 and $wims_user=supervisor |
27 | error=nouser |
||
16479 | guerimand | 28 | !reset job |
29 | !exit |
||
30 | !endif |
||
31 | |||
16512 | guerimand | 32 | |
16479 | guerimand | 33 | !if $cmd!=reply and $job=sendmail |
34 | !reset job |
||
35 | !endif |
||
36 | |||
16482 | guerimand | 37 | !if $cmd=new |
38 | !distribute item 1,1 into selfsend,sendotherteacher |
||
39 | !endif |
||
40 | |||
16479 | guerimand | 41 | !bound job within edit,preview,sendmail default edit |
42 | |||
43 | !readproc adm/vfilter/listvarfilter.proc |
||
44 | !if $varfilterclear!=$empty |
||
45 | job=edit |
||
46 | !endif |
||
47 | !readproc adm/vfilter/varfilter proc |
||
48 | |||
49 | !read $job.proc |