| | |
| | | |
| | | */ |
| | | global $app; |
| | | $app->uses('getconf'); |
| | | $global_config = $app->getconf->get_global_config(); |
| | | |
| | | $form["title"] = "Mailbox"; |
| | | $form["description"] = ""; |
| | |
| | | ) |
| | | ); |
| | | |
| | | if ($global_config['mail']['mailbox_show_autoresponder_tab'] === 'y') { |
| | | $form["tabs"]['autoresponder'] = array ( |
| | | 'title' => "Autoresponder", |
| | | 'width' => 100, |
| | |
| | | ################################## |
| | | ) |
| | | ); |
| | | } |
| | | |
| | | |
| | | if ($global_config['mail']['mailbox_show_mail_filter_tab'] === 'y') { |
| | | $form["tabs"]['filter_records'] = array ( |
| | | 'title' => "Mail Filter", |
| | | 'width' => 100, |
| | |
| | | ) |
| | | ) |
| | | ); |
| | | } |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin') { |
| | | |
| | | if ($_SESSION["s"]["user"]["typ"] == 'admin' && $global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') { |
| | | $form["tabs"]['mailfilter'] = array ( |
| | | 'title' => "Custom Rules", |
| | | 'width' => 100, |
| | |
| | | ################################## |
| | | ) |
| | | ); |
| | | |
| | | } |
| | | |
| | | |
| | | ?> |