Rev 12880 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
3064 | bpr | 2 | !for ttt in homepage, bgcolor, bgimg, refcolor, ref_menucolor, ref_button_help_bgcolor, \ |
12879 | obado | 3 | ref_button_help_color, ref_button_bgcolor, ref_button_color, logo, logoside |
12457 | bpr | 4 | pr_$ttt=!word 1 of $(pr_$ttt) |
23 | reyssat | 5 | !next ttt |
1322 | guerimand | 6 | pr_sccolor=$empty |
12399 | bpr | 7 | !for ttt=1 to 12 |
12457 | bpr | 8 | tmp=!word 1 of $(pr_sccolor$ttt) |
9 | tmp=!item 1 of $tmp |
||
10 | pr_sccolor=$pr_sccolor,$tmp |
||
1322 | guerimand | 11 | !next ttt |
12 | pr_sccolor=!item 2 to -1 of $pr_sccolor |
||
7836 | bpr | 13 | pr_actcolor=$empty |
12880 | obado | 14 | !set actcolor=!defof DF_actcolor in wimshome/public_html/bases/sys/defaults.conf |
14835 | obado | 15 | !for ttt=1 to 9 |
7836 | bpr | 16 | tmp=!word 1 of $(pr_actcolor$ttt) |
17 | tmp=!item 1 of $tmp |
||
18 | !default tmp=$(actcolor[$ttt]) |
||
19 | pr_actcolor=!append item $tmp to $pr_actcolor |
||
20 | !next ttt |
||
23 | reyssat | 21 | !setdef !set class_logo=$pr_logo\ |
22 | !set class_logoside=$pr_logoside\ |
||
23 | !set class_homepage=$pr_homepage\ |
||
24 | !set class_bgcolor=$pr_bgcolor\ |
||
25 | !set class_refcolor=$pr_refcolor\ |
||
2069 | bpr | 26 | !set class_ref_menucolor=$pr_ref_menucolor\ |
3064 | bpr | 27 | !set class_ref_button_bgcolor=$pr_ref_button_bgcolor\ |
28 | !set class_ref_button_color=$pr_ref_button_color\ |
||
29 | !set class_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor\ |
||
30 | !set class_ref_button_help_color=$pr_ref_button_help_color\ |
||
23 | reyssat | 31 | !set class_bgimg=$pr_bgimg\ |
32 | !set class_theme=$pr_theme\ |
||
1364 | bpr | 33 | !set class_theme_icon=$pr_theme_icon\ |
23 | reyssat | 34 | !set class_css=$pr_css\ |
1322 | guerimand | 35 | !set class_scorecolor=$pr_sccolor\ |
7836 | bpr | 36 | !set class_actcolor=$pr_actcolor\ |
23 | reyssat | 37 | in wimshome/log/classes/$wims_class/.def |
38 | pr_cssfile=!trim $pr_cssfile |
||
39 | !writefile wimshome/log/classes/$wims_class/css $pr_cssfile |
||
40 | |||
710 | bpr | 41 | !if / notin $wims_deposit and .. notin $wims_deposit and $wims_deposit!=$empty |
12457 | bpr | 42 | l=!sh du -s $wims_home/$wims_sesdir/user-deposit |
43 | l=!word 1 of $l |
||
44 | !if $l<17 |
||
45 | !sh mv $wims_home/$wims_sesdir/user-deposit $wims_home/log/classes/$wims_class/css |
||
46 | !else |
||
47 | error=toobigfile |
||
48 | !endif |
||
710 | bpr | 49 | !endif |
565 | bpr | 50 | |
3458 | bpr | 51 | !for ttt in css, bgimg, theme, theme_icon |
12457 | bpr | 52 | !if $(pr_$ttt)!=$(wims_$ttt) |
53 | wims_$ttt=$(pr_$ttt) |
||
54 | !setdef wims_$ttt=$(pr_$ttt) in wimshome/$wims_sesdir/var.stat |
||
23 | reyssat | 55 | !endif |
56 | !next ttt |
||
57 | |||
3458 | bpr | 58 | !if $pr_bgcolor!=$wims_class_bgcolor |
12457 | bpr | 59 | !if $pr_bgcolor!=$empty |
60 | wims_bgcolor=$pr_bgcolor |
||
61 | !endif |
||
62 | !setdef wims_class_bgcolor=$wims_bgcolor in wimshome/$wims_sesdir/var.stat |
||
3458 | bpr | 63 | !endif |
64 | |||
23 | reyssat | 65 | !if $pr_refcolor!=$wims_class_refcolor |
12457 | bpr | 66 | !if $pr_refcolor!=$empty |
67 | wims_ref_bgcolor=$pr_refcolor |
||
68 | !endif |
||
69 | !setdef wims_class_refcolor=$pr_refcolor in wimshome/$wims_sesdir/var.stat |
||
23 | reyssat | 70 | !endif |
71 | |||
2069 | bpr | 72 | !if $pr_ref_menucolor!=$wims_class_ref_menucolor |
12457 | bpr | 73 | !if $pr_ref_menucolor!=$empty |
74 | wims_ref_menucolor=$pr_ref_menucolor |
||
75 | !endif |
||
76 | !setdef wims_class_ref_menucolor=$pr_ref_menucolor in wimshome/$wims_sesdir/var.stat |
||
2069 | bpr | 77 | !endif |
3064 | bpr | 78 | |
79 | !if $pr_ref_button_color!=$wims_class_ref_button_color |
||
12457 | bpr | 80 | !if $pr_ref_button_color!=$empty |
81 | wims_ref_button_color=$pr_ref_button_color |
||
82 | !endif |
||
83 | !setdef wims_class_ref_button_color=$pr_ref_button_color in wimshome/$wims_sesdir/var.stat |
||
3064 | bpr | 84 | !endif |
85 | |||
86 | !if $pr_ref_button_bgcolor!=$wims_class_ref_button_bgcolor |
||
12457 | bpr | 87 | !if $pr_ref_button_bgcolor!=$empty |
88 | wims_ref_button_bgcolor=$pr_ref_button_bgcolor |
||
89 | !endif |
||
90 | !setdef wims_class_ref_button_bgcolor=$pr_ref_button_bgcolor in wimshome/$wims_sesdir/var.stat |
||
3064 | bpr | 91 | !endif |
92 | |||
93 | !if $pr_ref_button_help_color!=$wims_class_ref_button_help_color |
||
12457 | bpr | 94 | !if $pr_ref_button_help_color!=$empty |
95 | wims_ref_button_help_color=$pr_ref_button_help_color |
||
96 | !endif |
||
97 | !setdef wims_class_ref_button_help_color=$pr_ref_button_help_color in wimshome/$wims_sesdir/var.stat |
||
3064 | bpr | 98 | !endif |
99 | |||
100 | !if $pr_ref_button_help_bgcolor!=$wims_class_ref_button_help_bgcolor |
||
12457 | bpr | 101 | !if $pr_ref_button_help_bgcolor!=$empty |
102 | wims_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor |
||
103 | !endif |
||
104 | !setdef wims_class_ref_button_help_bgcolor=$pr_ref_button_help_bgcolor in wimshome/$wims_sesdir/var.stat |
||
3064 | bpr | 105 | !endif |