Rev 14890 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !bound job2 within first,erase,erase2,modify default first |
||
286 | guerimand | 3 | |
23 | reyssat | 4 | !if $jobclass=$empty |
15294 | bpr | 5 | job2=first |
23 | reyssat | 6 | !endif |
7 | |||
8 | classcnt=!recordcnt wimshome/log/classes/.index |
||
9 | |||
10 | !if $job2=first |
||
14890 | obado | 11 | !readproc class/search.proc |
12 | !if $overflow!=yes |
||
13 | !readproc scripts/ccaccount.proc |
||
14 | test=!record 0 of wimshome/s2/$wims_session/$bst_since |
||
15 | n=!linecnt $test |
||
16 | !if $n>0 |
||
17 | actives=yes |
||
18 | !for i=1 to $n |
||
19 | l=!line $i of $test |
||
20 | !distribute item $l into c,t |
||
21 | !if $c isitemof $list_cl_id |
||
22 | t=$[floor(($t+30)/60)] |
||
23 | activ_$c=$t |
||
24 | !endif |
||
25 | !next i |
||
26 | !endif |
||
27 | !endif |
||
23 | reyssat | 28 | !endif |
29 | |||
30 | !if $job2!=first |
||
15294 | bpr | 31 | !defread wimshome/log/classes/$jobclass/.def |
23 | reyssat | 32 | !endif |
33 | |||
34 | !if $job2=erase2 |
||
15294 | bpr | 35 | year=!char 1 to 4 of $wims_now |
36 | !sh cd $wims_home/log/classes\ |
||
37 | if [ -d $wims_home/log/ccaccount/$jobclass ]; then\ |
||
38 | tar -cf $jobclass/account.tar -C $wims_home/log ccaccount/$jobclass 2>/dev/null\ |
||
39 | fi\ |
||
40 | mkdir -p $wims_home/backup/oldclasses/$year\ |
||
41 | tar -czf $wims_home/backup/oldclasses/$year/$jobclass.tgz $jobclass\ |
||
42 | rm -Rf $jobclass $wims_home/log/ccaccount/$jobclass\ |
||
43 | ./.build-index $jobclass |
||
44 | classcnt=!recordcnt wimshome/log/classes/.index |
||
23 | reyssat | 45 | job2=first |
46 | !endif |
||
47 | |||
48 | !if $job2=modify |
||
15294 | bpr | 49 | !if $abandon!=$empty |
50 | job2=first |
||
51 | !exit |
||
52 | !endif |
||
53 | !if $save!=$empty |
||
54 | !bound clexp between integer 19000101 and 24000101 |
||
55 | clpass2=!word 1 of $clpass2 |
||
56 | clpass2crypt=!passcrypt $clpass2 |
||
57 | !setdef !set class_password=$clpass2crypt\ |
||
23 | reyssat | 58 | !set class_expiration=$clexp\ |
59 | !set class_secure=$clsecure in wimshome/log/classes/$jobclass/.def |
||
15294 | bpr | 60 | clpass=!trim $clpass |
61 | !if $clpass!=$empty |
||
62 | clpasscrypt=!passcrypt $clpass |
||
63 | !setdef !set user_password=$clpasscrypt in wimshome/log/classes/$jobclass/supervisor |
||
64 | !endif |
||
65 | class_password=$clpass2 |
||
66 | class_expiration=$clexp |
||
67 | class_secure=$clsecure |
||
68 | !reset clexp clsecure clpass clpasscrypt clpass2 clpass2crypt |
||
23 | reyssat | 69 | !endif |
70 | !endif |
||
71 |