Subversion Repositories wimsdev

Rev

Rev 15324 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5181 guerimand 1
!read adm/language lang/names.phtml
11405 bpr 2
!set swlist=coq, gap, graphviz, m2, maxima, octave, pari, povray, geogebra, jsxgraph
3
!set swname=COQ, Gap, Graphviz, Macaulay 2, Maxima, Octave, PARI/GP, Povray, GeoGebra, Jsxgraph
3347 bpr 4
!set year=!char 1 to 4 of $wims_now
5
 
3009 bpr 6
!readdef wimshome/log/wims.conf
3151 bpr 7
!default mu_publish_site=!defof DF_mu_publish_site in wimshome/public_html/bases/sys/defaults.conf
3009 bpr 8
 
3151 bpr 9
!! when the selection of the site is done by the developpers
3024 guerimand 10
publish_site=$submitpublish_site
3151 bpr 11
!default publish_site=$mu_publish_site
3009 bpr 12
 
3024 guerimand 13
publishsitesname=$empty
3166 bpr 14
zonelist=$empty
3305 bpr 15
levellist=$empty
3151 bpr 16
!for name in $mu_publish_site
12498 bpr 17
  tmp=!defof publishname in wimshome/public_html/bases/sys/publishcenter/$name
18
  tmp=!replace internal , by , in $tmp
19
  publishcentersname=!append item $tmp to $publishcentersname
20
  tmp=!defof zonepublish,levellist in wimshome/public_html/bases/sys/publishcenter/$name
21
  zonepublishs=!append item $tmp to $zonepublishs
22
  tmp=!defof zonelist,levellist in wimshome/public_html/bases/sys/publishcenter/$name
23
  zonelist=!append item $tmp to $zonelist
24
  tmp=!defof levellist in wimshome/public_html/bases/sys/publishcenter/$name
25
  levellist=!append item $tmp to $levellist
3024 guerimand 26
!next name
3166 bpr 27
zonelist=!listuniq $zonelist
3305 bpr 28
zonelist=!listuniq $zonelist
3166 bpr 29
zonepublishs=!listuniq $zonepublishs
3305 bpr 30
levellist=!listuniq $levellist
3009 bpr 31
!! read the specification of $publish_site
3151 bpr 32
!if $submitpublish_site!=$empty
12498 bpr 33
  !read wimshome/public_html/bases/sys/publishcenter/$submitpublish_site
3151 bpr 34
  zonepublishs=$zonepublish
35
!endif
23 reyssat 36
wims_nw=job mod existing serial_number auth_login auth_passwd \
14348 bpr 37
  original2 originalheader empty devdir fname target
23 reyssat 38
wims_nr=wims_sesrandom
39
 
40
#############################################################
11170 bpr 41
jobs=modname create flist index edfile showfile delfile delconfirm\
14348 bpr 42
  backup restore copy move del publish prop diff binfile changefile changeconfirm
23 reyssat 43
maxlist=100
44
sellist=10
45
alnum=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
46
searchsymbol=.*+-_~\[]|()<>
47
searchchars=$alnum$searchsymbol
48
langlist=!words2items $wims_site_languages
2389 bpr 49
!read lang/langname.$modu_lang
23 reyssat 50
deflist=title, description, language, category, domain, \
14348 bpr 51
  level, keywords, require, scoring, copyright,\
52
  author, address, version, wims_version, vardef, \
16271 bpr 53
  translator, translator_address, data, maintainer, maintainer_address,\
54
  deprecated
6313 bpr 55
 
23 reyssat 56
wims_form_method=post
57
!read tabletheme
58
 
59
!if $cmd=help or robot isin $session
12498 bpr 60
  !exit
23 reyssat 61
!endif
62
 
63
jobreq=!word 1 of $jobreq
64
!if $jobreq!=$empty and $jobreq iswordof $jobs
12498 bpr 65
  job=$jobreq
23 reyssat 66
!endif
67
jobreq=
68
 
69
!if $wims_class!=$empty
12498 bpr 70
  !read adm/class/userdef classes,$wims_class,$wims_user
23 reyssat 71
!endif
72
!if $wims_developer=$empty and $wims_class!=$empty and $wims_user!=$empty
12498 bpr 73
  !if $wims_user=supervisor
74
    !if $wims_sup_secure>=0
75
      wims_developer=!getdef wims_developer in $userdef
76
    !endif
77
  !else
78
    wims_developer=!getdef wims_developer in $userdef
23 reyssat 79
  !endif
12498 bpr 80
  !distribute item $wims_developer into wims_developer,devpass
81
  !if $devpass=$empty
82
    !reset wims_developer
83
  !endif
23 reyssat 84
!endif
85
 
86
!if $wims_ismanager>=2 and $change=yes
12498 bpr 87
  wims_developer=
23 reyssat 88
!endif
89
 
90
!if $wims_developer!=$empty and $auth_login=$empty
12498 bpr 91
  n=!recordcnt wimshome/log/.developers
92
  !for i=1 to $n
93
    r=!record $i of wimshome/log/.developers
94
    !distribute lines $r into ll,pp,nn,ee
15295 bpr 95
    !if $ll=$wims_developer
96
      pp=!passcrypt $pp
15324 bpr 97
      !! devpass is in the class file 'supervisor', it is crypten
98
      !! pp come from .developpers, in the future will be crypten
15295 bpr 99
      !if $devpass!=$empty
15324 bpr 100
        pass_check=!passcheck $devpass and $pp
12498 bpr 101
      !endif
15324 bpr 102
      !!?? $devpass=$empty ??
103
      !if ($devpass=$empty or $pass_check=yes or $devpass=$pp)
15295 bpr 104
        auth_login=$ll
105
        auth_passwd=$pp
106
        auth_name=$nn
107
        auth_email=$ee
108
        login=$wims_developer
109
        sesdir=!translate internal _ to $ $ in $wims_sesdir
110
        sesdir=!word 1 of $sesdir
111
        !setdef wims_developer=$login in wimshome/$sesdir/var.stat
112
        !if $original!=$empty and $job=$empty
113
          job=copy
114
        !endif
115
        !if $wims_developer!=$empty and $modreq!=$empty
116
          !default job=flist
117
        !endif
118
        !default job=modname
119
        !break
12498 bpr 120
      !endif
121
    !endif
122
  !next i
123
  !if $auth_login=$empty
124
    wims_developer=
125
    job=auth
23 reyssat 126
  !endif
127
!endif
128
!default job=auth
129
 
130
!if $auth_login=$empty and $wims_ismanager<2
12498 bpr 131
  job=auth
23 reyssat 132
!endif
133
!if $auth_login!=$empty
12498 bpr 134
  devdir=modules/devel/$auth_login
23 reyssat 135
!endif
136
 
15280 obado 137
!read scripts/getindex.proc $modreq
6326 bpr 138
!default i_translation_language=$translation_language
139
 
140
deflist1=translation_language
141
trans_lang=!words2items $i_translation_language
12498 bpr 142
i_translation_language=!listintersect $trans_lang and $langlist
143
i_translation_language=!listcomplement $i_language in $i_translation_language
144
!for l in $(i_translation_language)
145
  deflist1=!append item title_$l to $deflist1
146
  deflist1=!append item description_$l to $deflist1
147
  deflist1=!append item keywords_$l to $deflist1
148
  deflist1=!append item translator_$l to $deflist1
149
  deflist1=!append item translator_address_$l to $deflist1
150
!next
6326 bpr 151
 
23 reyssat 152
!read $job.proc
153
 
154
!if $(name_$job)!=$empty
12498 bpr 155
  !!module_title=$module_title - $(name_$job)
156
  wims_title_title=$(name_$job)
23 reyssat 157
!endif
158
 
159
!if ~ isin $mod
12498 bpr 160
  m=!translate internal ~ to , in $mod
161
  m1=!item 1 of $m
162
  !reset pubtit
163
  !if $m1!=test and $m1 isitemof $zonelist
164
    m=!translate internal ~ to / in $mod
165
    pubtit=!module title $m
166
    pubversion=!module version $m
167
  !endif
23 reyssat 168
!endif
169
 
6348 bpr 170
!reset validate_out
171
!if $validator_address!=$empty and $validation_ask!=$empty
6609 bpr 172
  !read adm/validation/validate.proc
6348 bpr 173
!endif
10236 bpr 174
 
11170 bpr 175
!if $job iswordof showfile edfile binfile index publish diff backup move copy changefile changeconfirm
10246 bpr 176
  !set wims_ariane=!append line modcontent,1,cmd=reply&jobreq=flist\
10236 bpr 177
to $wims_ariane
178
!endif
10246 bpr 179
!if $job iswordof move copy
180
  !set wims_ariane=!append line "$name_index",1,cmd=reply&jobreq=index\
181
to $wims_ariane
10236 bpr 182
!endif