Subversion Repositories wimsdev

Rev

Rev 12399 | Rev 12879 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12399 Rev 12457
Line 1... Line 1...
1
 
1
 
2
!for ttt in homepage, bgcolor, bgimg, refcolor, ref_menucolor, ref_button_help_bgcolor, \
2
!for ttt in homepage, bgcolor, bgimg, refcolor, ref_menucolor, ref_button_help_bgcolor, \
3
   ref_button_help_color, ref_button_bgcolor, ref_button_color,logo, logoside
3
    ref_button_help_color, ref_button_bgcolor, ref_button_color,logo, logoside
4
 pr_$ttt=!word 1 of $(pr_$ttt)
4
  pr_$ttt=!word 1 of $(pr_$ttt)
5
!next ttt
5
!next ttt
6
pr_sccolor=$empty
6
pr_sccolor=$empty
7
!for ttt=1 to 12
7
!for ttt=1 to 12
8
 tmp=!word 1 of $(pr_sccolor$ttt)
8
  tmp=!word 1 of $(pr_sccolor$ttt)
9
 tmp=!item 1 of $tmp
9
  tmp=!item 1 of $tmp
10
 pr_sccolor=$pr_sccolor,$tmp
10
  pr_sccolor=$pr_sccolor,$tmp
11
!next ttt
11
!next ttt
12
pr_sccolor=!item 2 to -1 of $pr_sccolor
12
pr_sccolor=!item 2 to -1 of $pr_sccolor
13
pr_actcolor=$empty
13
pr_actcolor=$empty
14
actcolor=#000,#CCF,#9CF,#99F,#66F,#FFF,#9CD
14
actcolor=#000,#CCF,#9CF,#99F,#66F,#FFF,#9CD
15
!for ttt=1 to 7
15
!for ttt=1 to 7
Line 37... Line 37...
37
in wimshome/log/classes/$wims_class/.def
37
in wimshome/log/classes/$wims_class/.def
38
pr_cssfile=!trim $pr_cssfile
38
pr_cssfile=!trim $pr_cssfile
39
!writefile wimshome/log/classes/$wims_class/css $pr_cssfile
39
!writefile wimshome/log/classes/$wims_class/css $pr_cssfile
40
 
40
 
41
!if  / notin $wims_deposit and .. notin $wims_deposit and $wims_deposit!=$empty
41
!if  / notin $wims_deposit and .. notin $wims_deposit and $wims_deposit!=$empty
42
 l=!sh du -s $wims_home/$wims_sesdir/user-deposit
42
  l=!sh du -s $wims_home/$wims_sesdir/user-deposit
43
 l=!word 1 of $l
43
  l=!word 1 of $l
44
 !if $l<17
44
  !if $l<17
45
  !sh mv $wims_home/$wims_sesdir/user-deposit $wims_home/log/classes/$wims_class/css
45
    !sh mv $wims_home/$wims_sesdir/user-deposit $wims_home/log/classes/$wims_class/css
46
 !else
46
  !else
47
  error=toobigfile
47
    error=toobigfile
48
 !endif
48
  !endif
49
!endif
49
!endif
50
 
50
 
51
!for ttt in css, bgimg, theme, theme_icon
51
!for ttt in css, bgimg, theme, theme_icon
52
 !if $(pr_$ttt)!=$(wims_$ttt)
52
  !if $(pr_$ttt)!=$(wims_$ttt)
53
  wims_$ttt=$(pr_$ttt)
53
    wims_$ttt=$(pr_$ttt)
54
 !setdef wims_$ttt=$(pr_$ttt) in wimshome/$wims_sesdir/var.stat
54
  !setdef wims_$ttt=$(pr_$ttt) in wimshome/$wims_sesdir/var.stat
55
!endif
55
!endif
56
!next ttt
56
!next ttt
57
 
57
 
58
!if $pr_bgcolor!=$wims_class_bgcolor
58
!if $pr_bgcolor!=$wims_class_bgcolor
59
 !if $pr_bgcolor!=$empty
59
  !if $pr_bgcolor!=$empty
60
   wims_bgcolor=$pr_bgcolor
60
    wims_bgcolor=$pr_bgcolor
61
 !endif
61
  !endif
62
 !setdef wims_class_bgcolor=$wims_bgcolor in wimshome/$wims_sesdir/var.stat
62
  !setdef wims_class_bgcolor=$wims_bgcolor in wimshome/$wims_sesdir/var.stat
63
!endif
63
!endif
64
 
64
 
65
!if $pr_refcolor!=$wims_class_refcolor
65
!if $pr_refcolor!=$wims_class_refcolor
66
 !if $pr_refcolor!=$empty
66
  !if $pr_refcolor!=$empty
67
  wims_ref_bgcolor=$pr_refcolor
67
    wims_ref_bgcolor=$pr_refcolor
68
 !endif
68
  !endif
69
 !setdef wims_class_refcolor=$pr_refcolor in wimshome/$wims_sesdir/var.stat
69
  !setdef wims_class_refcolor=$pr_refcolor in wimshome/$wims_sesdir/var.stat
70
!endif
70
!endif
71
 
71
 
72
!if $pr_ref_menucolor!=$wims_class_ref_menucolor
72
!if $pr_ref_menucolor!=$wims_class_ref_menucolor
73
 !if $pr_ref_menucolor!=$empty
73
  !if $pr_ref_menucolor!=$empty
74
  wims_ref_menucolor=$pr_ref_menucolor
74
    wims_ref_menucolor=$pr_ref_menucolor
75
 !endif
75
  !endif
76
 !setdef wims_class_ref_menucolor=$pr_ref_menucolor in wimshome/$wims_sesdir/var.stat
76
  !setdef wims_class_ref_menucolor=$pr_ref_menucolor in wimshome/$wims_sesdir/var.stat
77
!endif
77
!endif
78
 
78
 
79
!if $pr_ref_button_color!=$wims_class_ref_button_color
79
!if $pr_ref_button_color!=$wims_class_ref_button_color
80
 !if $pr_ref_button_color!=$empty
80
  !if $pr_ref_button_color!=$empty
81
  wims_ref_button_color=$pr_ref_button_color
81
    wims_ref_button_color=$pr_ref_button_color
82
 !endif
82
  !endif
83
 !setdef wims_class_ref_button_color=$pr_ref_button_color in wimshome/$wims_sesdir/var.stat
83
  !setdef wims_class_ref_button_color=$pr_ref_button_color in wimshome/$wims_sesdir/var.stat
84
!endif
84
!endif
85
 
85
 
86
!if $pr_ref_button_bgcolor!=$wims_class_ref_button_bgcolor
86
!if $pr_ref_button_bgcolor!=$wims_class_ref_button_bgcolor
87
 !if $pr_ref_button_bgcolor!=$empty
87
  !if $pr_ref_button_bgcolor!=$empty
88
  wims_ref_button_bgcolor=$pr_ref_button_bgcolor
88
    wims_ref_button_bgcolor=$pr_ref_button_bgcolor
89
 !endif
89
  !endif
90
 !setdef wims_class_ref_button_bgcolor=$pr_ref_button_bgcolor in wimshome/$wims_sesdir/var.stat
90
  !setdef wims_class_ref_button_bgcolor=$pr_ref_button_bgcolor in wimshome/$wims_sesdir/var.stat
91
!endif
91
!endif
92
 
92
 
93
!if $pr_ref_button_help_color!=$wims_class_ref_button_help_color
93
!if $pr_ref_button_help_color!=$wims_class_ref_button_help_color
94
 !if $pr_ref_button_help_color!=$empty
94
  !if $pr_ref_button_help_color!=$empty
95
  wims_ref_button_help_color=$pr_ref_button_help_color
95
    wims_ref_button_help_color=$pr_ref_button_help_color
96
 !endif
96
  !endif
97
 !setdef wims_class_ref_button_help_color=$pr_ref_button_help_color in wimshome/$wims_sesdir/var.stat
97
  !setdef wims_class_ref_button_help_color=$pr_ref_button_help_color in wimshome/$wims_sesdir/var.stat
98
!endif
98
!endif
99
 
99
 
100
!if $pr_ref_button_help_bgcolor!=$wims_class_ref_button_help_bgcolor
100
!if $pr_ref_button_help_bgcolor!=$wims_class_ref_button_help_bgcolor
101
 !if $pr_ref_button_help_bgcolor!=$empty
101
  !if $pr_ref_button_help_bgcolor!=$empty
102
  wims_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor
102
    wims_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor
103
 !endif
103
  !endif
104
 !setdef wims_class_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor in wimshome/$wims_sesdir/var.stat
104
  !setdef wims_class_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor in wimshome/$wims_sesdir/var.stat
105
!endif
105
!endif