Rev 6393 | Rev 6435 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6384 | bpr | 1 | !!temporary - work in progress |
6388 | bpr | 2 | !if $modu_lang notwordof en it fr ca es nl |
6393 | bpr | 3 | !set dir_lang=wimshome/public_html/bases/sys/domain/domain.en |
6385 | bpr | 4 | !else |
6393 | bpr | 5 | !set dir_lang=wimshome/public_html/bases/sys/domain/domain.$modu_lang |
6384 | bpr | 6 | !endif |
23 | reyssat | 7 | |
6393 | bpr | 8 | !set dir=wimshome/public_html/bases/sys/domain/domain |
23 | reyssat | 9 | |
6392 | bpr | 10 | Tot_dom=!lookup domain in $dir |
6384 | bpr | 11 | !for d in $Tot_dom |
6392 | bpr | 12 | tot_dom_$d=!lookup $d in $dir |
6396 | czzmrn | 13 | !for l in $(tot_dom_$d) |
6392 | bpr | 14 | dom_$l=!lookup $l in $dir |
6384 | bpr | 15 | !next |
16 | !next |
||
17 | |||
18 | !readproc list.phtml |
||
19 | |||
23 | reyssat | 20 | !if $parm=$empty |
6384 | bpr | 21 | |
23 | reyssat | 22 | !exit |
23 | !endif |
||
24 | |||
6384 | bpr | 25 | list=!lookup $parm in $dir |
26 | name=!lookup $(parm[1]) in $dir_lang |
||
6396 | czzmrn | 27 | !! need to check this is not breaking anything |
28 | !! !if $list=$empty |
||
29 | !! parm= |
||
30 | !! !exit |
||
31 | !! !endif |
||
6384 | bpr | 32 | |
33 | !for d in $list |
||
23 | reyssat | 34 | l=$(list_$d) |
35 | list=!append item $l to $list |
||
36 | !next d |
||
37 | list=!sort nocase items $list |
||
38 | !if $parm!=misc |
||
2728 | bpr | 39 | list=!nonempty items $parm,$list |
23 | reyssat | 40 | !else |
41 | list=!nonempty items $list |
||
42 | !endif |
||
43 | list=!listuniq $list |
||
44 |