Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
16013 guerimand 1
!! this script restore data in list key from .def in arch to .def in class.
2
!! only configuration class
16659 guerimand 3
listkey=password,supervisor,description,lang,email,\
16013 guerimand 4
limit,topscores,level,secure,bgcolor,bgimg,scorecolor,actcolor,css,logo,\
5
refcolor,ref_menucolor,ref_button_bgcolor,ref_button_help_color,\
6
ref_button_help_bgcolor,theme,theme_icon,exolog,anonymtopscores,\
7
authscoresuspend,supconnectshowed,exotitleform,examlog,examscore_withoutip,\
8
examshow,option,connections,lock,homepage,ent,sendmailteacher,allowcloning,cloninpwd,\
9
showlivret
10
 
16659 guerimand 11
!if / notin $wims_class
12
  !! this data not be modify in case of subclasses of a groupement or a portal
13
  listkey=$listkey,expiration,institution,location,geoloc
14
!endif
15
 
16013 guerimand 16
!reset data_
17
!sh cp $wims_home/log/classes/$wims_class/.def $wims_home/log/classes/$wims_class/.def.bak
18
!for k in $listkey
19
  t_=!getdef class_$k in wimshome/sessions/$wims_session/upload/class/.def
20
  data_=!append line !set class_$k=$t_ to $data_
21
!next k
16659 guerimand 22
 
16013 guerimand 23
!setdef $data_ in wimshome/log/classes/$wims_class/.def