1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
% if ( $communigate ) {
Account defaults
<% &ntable("#cccccc") %><TR><TD><% &ntable("#cccccc",2) %>
%# settings
<% include('/view/elements/tr.html',
label=>'Password modification',
value=>$svc_domain->acct_def_password_selfchange ? 'YES' : 'NO',
)
%>
<% include('/view/elements/tr.html',
label=>'Password recovery',
value=>$svc_domain->acct_def_password_recover ? 'YES' : 'NO',
)
%>
<% include('/view/elements/tr.html',
label=>'Enabled services',
value=>$svc_domain->acct_def_cgp_accessmodes,
)
%>
<% include('/view/elements/tr.html',
label=>'Mail storage limit',
value=>$svc_domain->acct_def_quota,
)
%>
<% include('/view/elements/tr.html',
label=>'File storage limit',
value=>$svc_domain->acct_def_file_quota,
)
%>
<% include('/view/elements/tr.html',
label=>'Files limit',
value=>$svc_domain->acct_def_file_maxnum,
)
%>
<% include('/view/elements/tr.html',
label=>'File size limit',
value=>$svc_domain->acct_def_file_maxsize,
)
%>
<% include('/view/elements/tr.html',
label=>'Allowed mail rules',
value=>$svc_domain->acct_def_cgp_rulesallowed || 'default (No)',
)
%>
<% include('/view/elements/tr.html',
label=>'RPOP modifications',
value=>$svc_domain->acct_def_cgp_rpopallowed ? 'YES' : 'NO',
)
%>
<% include('/view/elements/tr.html',
label=>'Accepts mail to "all"',
value=>$svc_domain->acct_def_cgp_mailtoall ? 'YES' : 'NO',
)
%>
<% include('/view/elements/tr.html',
label=>'Add trailer to sent mail',
value=>$svc_domain->acct_def_cgp_addmailtrailer ? 'YES' : 'NO',
)
%>
%# preferences
<% include('/view/elements/tr.html',
label=>'Message delete method',
value=>$svc_domain->acct_def_cgp_deletemode,
)
%>
<% include('/view/elements/tr.html',
label=>'On logout remove trash',
value=>$svc_domain->acct_def_cgp_emptytrash,
)
%>
<% include('/view/elements/tr.html',
label=>'Language',
value=>$svc_domain->acct_def_cgp_language || 'default (English)'
)
%>
<% include('/view/elements/tr.html',
label=>'Time zone',
value=>$svc_domain->acct_def_cgp_timezone || 'default (HostOS)'
)
%>
<% include('/view/elements/tr.html',
label=>'Layout',
value=>$svc_domain->acct_def_cgp_skinname || 'default (***)'
)
%>
<% include('/view/elements/tr.html',
label=>'Pronto style',
value=>$svc_domain->acct_def_cgp_prontoskinname
)
%>
<% include('/view/elements/tr.html',
label=>'Send read receipts',
value=>$svc_domain->acct_def_cgp_sendmdnmode
)
%>
%# mail
%#XXX rules, archive rule, spam foldering rule(s)
</TABLE></TD></TR></TABLE>
% }
<%init>
my($svc_domain, %opt) = @_;
my $part_svc = $opt{'part_svc'};
my $communigate = scalar($part_svc->part_export('communigate_pro'));
# || scalar($part_svc->part_export('communigate_pro_singledomain'));
my %rulesallowed = (
-1 => 'default (No)', #No always the default?
0 => 'No',
1 => 'Filter Only',
2 => 'All But Exec',
3 => 'Any',
);
</%init>
|