Commit 3c86a31f authored by pedro_morgan's avatar pedro_morgan
Browse files

Tidy up of mail/module.conf. replaced unset() as its faster, =array() muted E_NOTICE

parent f73bb61c
......@@ -6,4 +6,4 @@ $DB['host'] = 'localhost';
$DB['user'] = 'root';
$DB['password'] = 'mash';
$DB['database'] = 'ispconfig';
?>
\ No newline at end of file
?>
<?php
$module["name"] = "mail";
$module["title"] = "Email";
$module["template"] = "module.tpl.htm";
$module["startpage"] = "mail/mail_domain_list.php";
$module["tab_width"] = '';
$module['name'] = 'mail';
$module['title'] = 'Email';
$module['template'] = 'module.tpl.htm';
$module['startpage'] = 'mail/mail_domain_list.php';
$module['tab_width'] = '';
/*
Email accounts menu
*/
$items[] = array( 'title' => "Domain",
//**** Email accounts menu
$items = array();
$items[] = array( 'title' => 'Domain',
'target' => 'content',
'link' => 'mail/mail_domain_list.php');
$items[] = array( 'title' => "Email Mailbox",
$items[] = array( 'title' => 'Email Mailbox',
'target' => 'content',
'link' => 'mail/mail_user_list.php');
$items[] = array( 'title' => "Email Alias",
$items[] = array( 'title' => 'Email Alias',
'target' => 'content',
'link' => 'mail/mail_alias_list.php');
$items[] = array( 'title' => "Email Forward",
$items[] = array( 'title' => 'Email Forward',
'target' => 'content',
'link' => 'mail/mail_forward_list.php');
$items[] = array( 'title' => "Email Catchall",
$items[] = array( 'title' => 'Email Catchall',
'target' => 'content',
'link' => 'mail/mail_domain_catchall_list.php');
$items[] = array( 'title' => "Email Routing",
$items[] = array( 'title' => 'Email Routing',
'target' => 'content',
'link' => 'mail/mail_transport_list.php');
$module["nav"][] = array( 'title' => 'Email Accounts',
$module['nav'][] = array( 'title' => 'Email Accounts',
'open' => 1,
'items' => $items);
// aufrumen
unset($items);
/*
Spamfilter menu
*/
//**** Spamfilter menu
$items = array();
$items[] = array( 'title' => "Whitelist",
$items[] = array( 'title' => 'Whitelist',
'target' => 'content',
'link' => 'mail/spamfilter_whitelist_list.php');
$items[] = array( 'title' => "Blacklist",
$items[] = array( 'title' => 'Blacklist',
'target' => 'content',
'link' => 'mail/spamfilter_blacklist_list.php');
if($_SESSION["s"]["user"]["typ"] == 'admin') {
if($_SESSION['s']['user']['typ'] == 'admin') {
$items[] = array( 'title' => "User / Domain",
$items[] = array( 'title' => 'User / Domain',
'target' => 'content',
'link' => 'mail/spamfilter_users_list.php');
'link' => 'mail/spamfilter_users_list.php');
$items[] = array( 'title' => "Policy",
$items[] = array( 'title' => 'Policy',
'target' => 'content',
'link' => 'mail/spamfilter_policy_list.php');
'link' => 'mail/spamfilter_policy_list.php');
}
$module["nav"][] = array( 'title' => 'Spamfilter',
$module['nav'][] = array( 'title' => 'Spamfilter',
'open' => 1,
'items' => $items);
// aufrumen
unset($items);
/*
Fetchmail menu
*/
//**** Fetchmail menu
$items = array();
$items[] = array( 'title' => "Fetchmail",
$items[] = array( 'title' => 'Fetchmail',
'target' => 'content',
'link' => 'mail/mail_get_list.php');
$module["nav"][] = array( 'title' => 'Fetchmail',
$module['nav'][] = array( 'title' => 'Fetchmail',
'open' => 1,
'items' => $items);
// aufrumen
unset($items);
/*
Global filters menu
*/
//**** Global filters menu
$items = array();
if($_SESSION['s']['user']['typ'] == 'admin') {
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$items[] = array( 'title' => 'Postfix Whitelist',
'target' => 'content',
'link' => 'mail/mail_whitelist_list.php');
$items[] = array( 'title' => "Postfix Whitelist",
'target' => 'content',
'link' => 'mail/mail_whitelist_list.php');
$items[] = array( 'title' => "Postfix Blacklist",
'target' => 'content',
'link' => 'mail/mail_blacklist_list.php');
$items[] = array( 'title' => 'Postfix Blacklist',
'target' => 'content',
'link' => 'mail/mail_blacklist_list.php');
$items[] = array( 'title' => "Content Filter",
'target' => 'content',
'link' => 'mail/mail_content_filter_list.php');
$items[] = array( 'title' => 'Content Filter',
'target' => 'content',
'link' => 'mail/mail_content_filter_list.php');
$module["nav"][] = array( 'title' => 'Global Filters',
$module['nav'][] = array( 'title' => 'Global Filters',
'open' => 1,
'items' => $items);
// aufrumen
unset($items);
}
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment