|
150 | 150 | } |
151 | 151 |
|
152 | 152 | //**** XMPP Menu |
153 | | -$items = array(); |
154 | | - |
155 | | -if($app->auth->get_client_limit($userid, 'xmpp_domain') != 0) |
156 | | -{ |
157 | | - $items[] = array( 'title' => 'XMPP Domain', |
158 | | - 'target' => 'content', |
159 | | - 'link' => 'mail/xmpp_domain_list.php', |
160 | | - 'html_id' => 'xmpp_domain_list'); |
| 153 | +if ($app->system->has_service($userid, 'xmpp')) { |
| 154 | + $items = array(); |
| 155 | + |
| 156 | + if($app->auth->get_client_limit($userid, 'xmpp_domain') != 0) |
| 157 | + { |
| 158 | + $items[] = array( 'title' => 'XMPP Domain', |
| 159 | + 'target' => 'content', |
| 160 | + 'link' => 'mail/xmpp_domain_list.php', |
| 161 | + 'html_id' => 'xmpp_domain_list'); |
| 162 | + } |
| 163 | + |
| 164 | + if($app->auth->get_client_limit($userid, 'xmpp_user') != 0) |
| 165 | + { |
| 166 | + $items[] = array( 'title' => 'XMPP Account', |
| 167 | + 'target' => 'content', |
| 168 | + 'link' => 'mail/xmpp_user_list.php', |
| 169 | + 'html_id' => 'xmpp_user_list'); |
| 170 | + } |
| 171 | + |
| 172 | + if(count($items)) |
| 173 | + { |
| 174 | + $module['nav'][] = array( 'title' => 'Jabber / XMPP', |
| 175 | + 'open' => 1, |
| 176 | + 'items' => $items); |
| 177 | + } |
161 | 178 | } |
162 | 179 |
|
163 | | -if($app->auth->get_client_limit($userid, 'xmpp_user') != 0) |
164 | | -{ |
165 | | - $items[] = array( 'title' => 'XMPP Account', |
166 | | - 'target' => 'content', |
167 | | - 'link' => 'mail/xmpp_user_list.php', |
168 | | - 'html_id' => 'xmpp_user_list'); |
169 | | -} |
170 | | - |
171 | | -if(count($items) && $app->system->has_service($userid, 'xmpp')) |
172 | | - $module['nav'][] = array( 'title' => 'Jabber / XMPP', |
173 | | - 'open' => 1, |
174 | | - 'items' => $items); |
175 | | - |
176 | | - |
177 | | - |
178 | 180 | //**** Statistics menu |
179 | 181 | $items = array(); |
180 | 182 |
|
|
0 commit comments