Rev 4667 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4561 | obado | 1 | # ModUser |
2 | # Modifie l'utilisateur $quser |
||
3 | |||
4667 | obado | 4 | #on commence par verifier la classe $qclass |
5 | !read scripts/check.class |
||
6 | !if $error!=$empty |
||
7 | !exit |
||
8 | !endif |
||
9 | |||
23 | reyssat | 10 | !read scripts/check.user |
11 | !if $error!=$empty |
||
12 | !exit |
||
13 | !endif |
||
14 | |||
15 | data1=!nonempty lines $data1 |
||
16 | n=!linecnt $data1 |
||
17 | set=0 |
||
18 | |||
19 | !readdef $userdeffile |
||
20 | !for i=1 to $n |
||
21 | l=!line $i of $data1 |
||
22 | l=!translate = to $\ |
||
23 | $ in $l |
||
24 | !distribute lines $l into n_,v_ |
||
25 | !if $n_ isitemof $userdefs and $v_!=$(user_$n_) |
||
26 | !setdef !set user_$n_=$v_ in $userdeffile |
||
27 | !advance set |
||
28 | !endif |
||
29 | !next i |
||
30 | |||
31 | !if $set<1 |
||
32 | error=nothing done |
||
33 | !exit |
||
34 | !endif |
||
35 | |||
36 | !read adm/class/mkuserlist $qclass |
||
10132 | bpr | 37 | !read adm/class/stat |