Subversion Repositories wimsdev

Rev

Rev 9129 | Rev 10199 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!if robot isin $session
2
 !exit
3
!endif
5181 guerimand 4
!read adm/language lang/names.phtml
6435 bpr 5
 
8990 bpr 6
!set list_taxo=!listfile $module_dir/taxoext
7
!set list_taxo=!lines2items $list_taxo
8631 bpr 8
 
23 reyssat 9
wims_prefix=class user tmp
9307 obado 10
!bound job within home,type,subject,level,best,new,taxo,light default home
23 reyssat 11
!read tabletheme
12
 
6910 bpr 13
search_addr=!nosubst module=home&language=$lang&search_keywords=$key&search_category=$cat&search_and=$search_and&$browse_parm
23 reyssat 14
browse_parm=browse_job=$job&browse_parm=$parm
15
 
6435 bpr 16
!if $modu_lang notwordof en it fr ca es nl cn
17
  !set dir_lang=wimshome/public_html/bases/sys/domain/domain.en
18
!else
19
  !set dir_lang=wimshome/public_html/bases/sys/domain/domain.$modu_lang
20
!endif
6442 bpr 21
!set dir=wimshome/public_html/bases/sys/domain
22
!set treefile=$dir/reversedomain
23
!set dir=$dir/domain
6435 bpr 24
 
25
Tot_dom=!lookup domain in $dir
8631 bpr 26
Tot_dom=!sort items $Tot_dom
6435 bpr 27
!for d in $Tot_dom
28
  tot_dom_$d=!lookup $d in $dir
29
  !for l in  $(tot_dom_$d)
30
     dom_$l=!lookup $l in $dir
31
  !next
32
!next
8990 bpr 33
!reset list_taxonomy
6435 bpr 34
 
8990 bpr 35
!for taxo in $list_taxo
36
  !if .$(lang)__ isin $(taxo)__
37
   !set lang_exists=!defof lang_exists in taxoext/$taxo
38
   !if $lang_exists=yes
39
     !set script_taxo=yes
40
     !set list_taxonomy=!append item taxoext/$taxo to $list_taxonomy
41
   !endif
8631 bpr 42
  !endif
43
!next
9129 bpr 44
!! take the english version
45
!for taxo in $list_taxo
46
   !set tmp=!replace internal . by , in $(taxo)
47
   !if $(tmp[1]) notin $list_taxonomy
48
     !set script_taxo=yes
49
     !set list_taxonomy=!append item taxoext/$(tmp[1]).phtml.en to $list_taxonomy
50
   !endif
51
!next
52
 
8631 bpr 53
!set lang_exists=!defof lang_exists in keywords.phtml.$lang
54
  !if $lang_exists=yes
55
    !set script_keywords=yes
56
  !endif
57
 
23 reyssat 58
!read $job.proc
59
 
60
!if $job!=home
61
 wims_module_log=$job $parm
62
!endif
63
 
64