Rev 3049 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | !read scripts/check.class |
2 | !if $error!=$empty |
||
3 | !exit |
||
4 | !endif |
||
5 | |||
6 | option=!items2words $option |
||
7 | option=!trim $option |
||
8 | !if $option=$empty |
||
9 | error=nothing done |
||
10 | !exit |
||
11 | !endif |
||
12 | |||
13 | method=!word 1 of $option |
||
14 | parms=!word 2 to -1 of $option |
||
15 | |||
16 | !if $method notwordof class user users file files score scores or\ |
||
17 | $method iswordof file files score and $ident_type!=wims |
||
18 | error=bad method |
||
19 | !exit |
||
20 | !endif |
||
21 | |||
22 | !if $method iswordof user score |
||
23 | !read scripts/check.user |
||
24 | !if $error!=$empty |
||
25 | !exit |
||
26 | !endif |
||
27 | !endif |
||
28 | |||
29 | cn_sync=yes |
||
30 | !reset cn_option cn_data1 cn_data2 |
||
31 | |||
32 | !if $method=users |
||
33 | cn_option=login,lastname,firstname,password,email |
||
34 | !endif |
||
35 | !if $method=scores |
||
36 | cn_option=login,manuals |
||
37 | !endif |
||
38 | !if $method=file |
||
39 | cn_option=$parms |
||
40 | !endif |
||
41 | |||
42 | parm_$method=empty |
||
43 | parm_class=getclass |
||
44 | parm_user=getuser |
||
45 | parm_users=getcsv |
||
46 | parm_scores=getcsv |
||
47 | parm_file=getclassfile |
||
48 | parm_files=getclasstgz |
||
49 | |||
50 | !readproc adm/connect/main.proc $(parm_$method) $ident $rclass $quser |
||
51 | |||
52 | !if $cn_status!=OK |
||
53 | :backerror |
||
54 | error=back calling error: $cn_data |
||
55 | !exit |
||
56 | !endif |
||
57 |