Rev 12616 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | parent=gateway |
||
3 | thiscode=$level |
||
4 | !if $cancel!=$empty or $level=$empty |
||
12616 | bpr | 5 | :back |
6 | job=first |
||
7 | !changeto jobs/$job.proc |
||
23 | reyssat | 8 | !endif |
9 | |||
10 | levelhome=$classdir1/$level |
||
11 | !readdef $levelhome/.def |
||
12 | !if $class_defined!=yes |
||
12616 | bpr | 13 | !goto back |
23 | reyssat | 14 | !endif |
15 | |||
16 | !if $confirm=$empty |
||
12616 | bpr | 17 | :normal |
18 | classes=!record 0 of $levelhome/classes |
||
19 | programs=!record 0 of $levelhome/programs |
||
20 | classes=!nonempty lines $classes |
||
21 | programs=!nonempty lines $programs |
||
22 | classcnt=!linecnt $classes |
||
23 | progcnt=!linecnt $programs |
||
24 | pass=$class_password |
||
25 | passs=!defof user_password in $levelhome/supervisor |
||
26 | !exit |
||
23 | reyssat | 27 | !endif |
28 | |||
29 | title=!trim $title |
||
30 | title=!replace internal , by , in $title |
||
31 | !if $title=$empty |
||
12616 | bpr | 32 | error=empty_data |
33 | !exit |
||
23 | reyssat | 34 | !endif |
35 | |||
12982 | bpr | 36 | modclass_list=description,supervisor,Supervisor,password,secure,email |
23 | reyssat | 37 | cadd_description=$title |
38 | cadd_Supervisor=$sup |
||
12982 | bpr | 39 | modclass_slist=password,email |
23 | reyssat | 40 | cadd_level=$alevel |
12982 | bpr | 41 | sadd_password=$passs |
42 | cadd_password=$pass |
||
23 | reyssat | 43 | cadd_secure=$sechost |
44 | |||
45 | !read adm/gateway/modclass $level |
||
12982 | bpr | 46 | |
47 | !if $error!=$empty |
||
48 | !exit |
||
49 | !endif |
||
50 | |||
51 | !read adm/gateway/mkindex |
||
52 | !reset confirm,title,sup,passs,alevel,pass |
||
23 | reyssat | 53 | !readdef $levelhome/.def |
54 | !goto normal |