commit | author | age
|
532ae5
|
1 |
<?php |
L |
2 |
|
|
3 |
$userid=$app->auth->get_user_id(); |
|
4 |
|
b1a6a5
|
5 |
$module['name'] = 'mail'; |
MC |
6 |
$module['title'] = 'top_menu_email'; |
|
7 |
$module['template'] = 'module.tpl.htm'; |
|
8 |
$module['startpage'] = 'mail/mail_domain_list.php'; |
532ae5
|
9 |
$module['tab_width'] = ''; |
a563d5
|
10 |
$module['order'] = '40'; |
532ae5
|
11 |
|
L |
12 |
|
|
13 |
//**** Email accounts menu |
|
14 |
$items = array(); |
|
15 |
|
b1a6a5
|
16 |
if($app->auth->get_client_limit($userid, 'maildomain') != 0) |
532ae5
|
17 |
{ |
b1a6a5
|
18 |
$items[] = array( 'title' => 'Domain', |
MC |
19 |
'target' => 'content', |
|
20 |
'link' => 'mail/mail_domain_list.php', |
|
21 |
'html_id' => 'mail_domain_list'); |
532ae5
|
22 |
} |
L |
23 |
|
b1a6a5
|
24 |
if($app->auth->get_client_limit($userid, 'mailaliasdomain') != 0) |
532ae5
|
25 |
{ |
b1a6a5
|
26 |
$items[] = array( 'title' => 'Domain Alias', |
MC |
27 |
'target' => 'content', |
|
28 |
'link' => 'mail/mail_aliasdomain_list.php', |
|
29 |
'html_id' => 'mail_aliasdomain_list'); |
532ae5
|
30 |
} |
L |
31 |
|
b1a6a5
|
32 |
if($app->auth->get_client_limit($userid, 'mailbox') != 0) |
532ae5
|
33 |
{ |
b1a6a5
|
34 |
$items[] = array( 'title' => 'Email Mailbox', |
MC |
35 |
'target' => 'content', |
|
36 |
'link' => 'mail/mail_user_list.php', |
|
37 |
'html_id' => 'mail_user_list'); |
532ae5
|
38 |
} |
L |
39 |
|
b1a6a5
|
40 |
if($app->auth->get_client_limit($userid, 'mailalias') != 0) |
532ae5
|
41 |
{ |
b1a6a5
|
42 |
$items[] = array( 'title' => 'Email Alias', |
MC |
43 |
'target' => 'content', |
|
44 |
'link' => 'mail/mail_alias_list.php', |
|
45 |
'html_id' => 'mail_alias_list'); |
532ae5
|
46 |
} |
L |
47 |
|
b1a6a5
|
48 |
if($app->auth->get_client_limit($userid, 'mailforward') != 0) |
532ae5
|
49 |
{ |
b1a6a5
|
50 |
$items[] = array( 'title' => 'Email Forward', |
MC |
51 |
'target' => 'content', |
|
52 |
'link' => 'mail/mail_forward_list.php', |
|
53 |
'html_id' => 'mail_forward_list'); |
532ae5
|
54 |
} |
L |
55 |
|
b1a6a5
|
56 |
if($app->auth->get_client_limit($userid, 'mailcatchall') != 0) |
532ae5
|
57 |
{ |
b1a6a5
|
58 |
$items[] = array( 'title' => 'Email Catchall', |
MC |
59 |
'target' => 'content', |
|
60 |
'link' => 'mail/mail_domain_catchall_list.php', |
|
61 |
'html_id' => 'mail_domain_catchall_list'); |
|
62 |
} |
|
63 |
|
|
64 |
if($app->auth->get_client_limit($userid, 'mailrouting') != 0) |
|
65 |
{ |
|
66 |
$items[] = array( 'title' => 'Email Routing', |
|
67 |
'target' => 'content', |
|
68 |
'link' => 'mail/mail_transport_list.php', |
|
69 |
'html_id' => 'mail_transport_list'); |
532ae5
|
70 |
} |
L |
71 |
|
|
72 |
if(count($items)) |
|
73 |
{ |
b1a6a5
|
74 |
$module['nav'][] = array( 'title' => 'Email Accounts', |
MC |
75 |
'open' => 1, |
|
76 |
'items' => $items); |
532ae5
|
77 |
} |
L |
78 |
|
|
79 |
//**** Mailinglist menu |
|
80 |
$items = array(); |
|
81 |
|
b1a6a5
|
82 |
if($app->auth->get_client_limit($userid, 'mailmailinglist') != 0) |
532ae5
|
83 |
{ |
b1a6a5
|
84 |
$items[] = array( 'title' => 'Mailing List', |
MC |
85 |
'target' => 'content', |
|
86 |
'link' => 'mail/mail_mailinglist_list.php', |
|
87 |
'html_id' => 'mail_mailinglist_list'); |
532ae5
|
88 |
} |
L |
89 |
|
|
90 |
if(count($items)) |
|
91 |
{ |
b1a6a5
|
92 |
$module['nav'][] = array( 'title' => 'Mailing List', |
MC |
93 |
'open' => 1, |
|
94 |
'items' => $items); |
532ae5
|
95 |
} |
L |
96 |
|
|
97 |
//**** Spamfilter menu |
|
98 |
$items = array(); |
|
99 |
|
b1a6a5
|
100 |
if($app->auth->get_client_limit($userid, 'spamfilter_wblist') != 0) |
532ae5
|
101 |
{ |
b1a6a5
|
102 |
$items[] = array( 'title' => 'Whitelist', |
MC |
103 |
'target' => 'content', |
|
104 |
'link' => 'mail/spamfilter_whitelist_list.php', |
|
105 |
'html_id' => 'spamfilter_whitelist_list'); |
|
106 |
|
|
107 |
$items[] = array( 'title' => 'Blacklist', |
|
108 |
'target' => 'content', |
|
109 |
'link' => 'mail/spamfilter_blacklist_list.php', |
|
110 |
'html_id' => 'spamfilter_blacklist_list'); |
532ae5
|
111 |
} |
L |
112 |
|
|
113 |
if($app->auth->is_admin()) { |
|
114 |
|
b1a6a5
|
115 |
$items[] = array( 'title' => 'User / Domain', |
MC |
116 |
'target' => 'content', |
|
117 |
'link' => 'mail/spamfilter_users_list.php', |
|
118 |
'html_id' => 'spamfilter_users_list'); |
532ae5
|
119 |
|
b1a6a5
|
120 |
$items[] = array( 'title' => 'Policy', |
MC |
121 |
'target' => 'content', |
|
122 |
'link' => 'mail/spamfilter_policy_list.php', |
|
123 |
'html_id' => 'spamfilter_policy_list'); |
532ae5
|
124 |
|
b1a6a5
|
125 |
// $items[] = array( 'title' => 'Server Settings', |
MC |
126 |
// 'target' => 'content', |
|
127 |
// 'link' => 'mail/spamfilter_config_list.php'); |
532ae5
|
128 |
} |
L |
129 |
|
|
130 |
if(count($items)) |
|
131 |
{ |
b1a6a5
|
132 |
$module['nav'][] = array( 'title' => 'Spamfilter', |
MC |
133 |
'open' => 1, |
|
134 |
'items' => $items); |
532ae5
|
135 |
} |
L |
136 |
|
|
137 |
//**** Fetchmail menu |
|
138 |
$items = array(); |
|
139 |
|
b1a6a5
|
140 |
if($app->auth->get_client_limit($userid, 'fetchmail') != 0) |
532ae5
|
141 |
{ |
b1a6a5
|
142 |
$items[] = array( 'title' => 'Fetchmail', |
MC |
143 |
'target' => 'content', |
|
144 |
'link' => 'mail/mail_get_list.php', |
|
145 |
'html_id' => 'mail_get_list'); |
|
146 |
|
|
147 |
$module['nav'][] = array( 'title' => 'Fetchmail', |
|
148 |
'open' => 1, |
|
149 |
'items' => $items); |
532ae5
|
150 |
} |
L |
151 |
|
9f94a1
|
152 |
//**** XMPP Menu |
MF |
153 |
$items = array(); |
|
154 |
|
36c8a2
|
155 |
if($app->auth->get_client_limit($userid, 'xmpp_domain') != 0) |
9f94a1
|
156 |
{ |
MF |
157 |
$items[] = array( 'title' => 'XMPP Domain', |
|
158 |
'target' => 'content', |
|
159 |
'link' => 'mail/xmpp_domain_list.php', |
|
160 |
'html_id' => 'xmpp_domain_list'); |
|
161 |
} |
|
162 |
|
36c8a2
|
163 |
if($app->auth->get_client_limit($userid, 'xmpp_user') != 0) |
9f94a1
|
164 |
{ |
MF |
165 |
$items[] = array( 'title' => 'XMPP Account', |
|
166 |
'target' => 'content', |
d2ba64
|
167 |
'link' => 'mail/xmpp_user_list.php', |
MF |
168 |
'html_id' => 'xmpp_user_list'); |
9f94a1
|
169 |
} |
MF |
170 |
|
|
171 |
if(count($items)) |
|
172 |
$module['nav'][] = array( 'title' => 'Jabber / XMPP', |
|
173 |
'open' => 1, |
|
174 |
'items' => $items); |
|
175 |
|
532ae5
|
176 |
|
L |
177 |
|
|
178 |
//**** Statistics menu |
|
179 |
$items = array(); |
|
180 |
|
0888d7
|
181 |
|
7cd997
|
182 |
//** Email Quotas |
L |
183 |
$items[] = array( 'title' => 'Mailbox quota', |
b1a6a5
|
184 |
'target' => 'content', |
MC |
185 |
'link' => 'mail/user_quota_stats.php', |
|
186 |
'html_id' => 'user_quota_stats'); |
7cd997
|
187 |
|
b1a6a5
|
188 |
$items[] = array( 'title' => 'Mailbox traffic', |
MC |
189 |
'target' => 'content', |
|
190 |
'link' => 'mail/mail_user_stats.php', |
|
191 |
'html_id' => 'mail_user_stats'); |
746e5b
|
192 |
$items[] = array ( |
FS |
193 |
'title' => 'Backup Stats', |
|
194 |
'target' => 'content', |
|
195 |
'link' => 'mail/backup_stats.php', |
|
196 |
'html_id' => 'backup_stats'); |
532ae5
|
197 |
|
L |
198 |
|
b1a6a5
|
199 |
$module['nav'][] = array( 'title' => 'Statistics', |
MC |
200 |
'open' => 1, |
|
201 |
'items' => $items); |
532ae5
|
202 |
|
L |
203 |
|
|
204 |
//**** Global filters menu |
|
205 |
$items = array(); |
|
206 |
if($_SESSION['s']['user']['typ'] == 'admin') { |
|
207 |
|
b1a6a5
|
208 |
$items[] = array( 'title' => 'Postfix Whitelist', |
MC |
209 |
'target' => 'content', |
|
210 |
'link' => 'mail/mail_whitelist_list.php', |
|
211 |
'html_id' => 'mail_whitelist_list'); |
532ae5
|
212 |
|
L |
213 |
|
b1a6a5
|
214 |
$items[] = array( 'title' => 'Postfix Blacklist', |
MC |
215 |
'target' => 'content', |
|
216 |
'link' => 'mail/mail_blacklist_list.php', |
|
217 |
'html_id' => 'mail_blacklist_list'); |
532ae5
|
218 |
|
L |
219 |
|
b1a6a5
|
220 |
$items[] = array( 'title' => 'Content Filter', |
MC |
221 |
'target' => 'content', |
|
222 |
'link' => 'mail/mail_content_filter_list.php', |
|
223 |
'html_id' => 'mail_content_filter_list'); |
532ae5
|
224 |
|
L |
225 |
|
b1a6a5
|
226 |
$items[] = array( 'title' => 'Relay Recipients', |
MC |
227 |
'target' => 'content', |
|
228 |
'link' => 'mail/mail_relay_recipient_list.php', |
|
229 |
'html_id' => 'mail_relay_recipient_list'); |
532ae5
|
230 |
|
L |
231 |
|
b1a6a5
|
232 |
$module['nav'][] = array( 'title' => 'Global Filters', |
MC |
233 |
'open' => 1, |
|
234 |
'items' => $items); |
532ae5
|
235 |
} |
b1a6a5
|
236 |
?> |