mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
menu.tpl:
- make broadcast a submenu of send "Send Email" Thanks to Jan Örnstedt (ornstedt @sf) for the suggestion git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@235 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
3b27e0309e
commit
024fc15d29
@ -22,11 +22,12 @@ $submenu_fetchmail = _menulink("fetchmail.php?new=1", $PALANG['pFetchmail_new_en
|
|||||||
|
|
||||||
if (authentication_has_role('global-admin')) {
|
if (authentication_has_role('global-admin')) {
|
||||||
$submenu_domain = _menulink("create-domain.php", $PALANG['pAdminMenu_create_domain']);
|
$submenu_domain = _menulink("create-domain.php", $PALANG['pAdminMenu_create_domain']);
|
||||||
|
$submenu_sendmail = _menulink("broadcast-message.php", $PALANG['pAdminMenu_broadcast_message']);
|
||||||
} else {
|
} else {
|
||||||
$submenu_domain = "";
|
$submenu_domain = "";
|
||||||
|
$submenu_sendmail = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (authentication_has_role('global-admin')) {
|
if (authentication_has_role('global-admin')) {
|
||||||
print _menulink("list-admin.php", $PALANG['pAdminMenu_list_admin'], $submenu_admin);
|
print _menulink("list-admin.php", $PALANG['pAdminMenu_list_admin'], $submenu_admin);
|
||||||
} else {
|
} else {
|
||||||
@ -41,7 +42,7 @@ if ($CONF['fetchmail'] == 'YES') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($CONF['sendmail'] == 'YES') {
|
if ($CONF['sendmail'] == 'YES') {
|
||||||
print _menulink("sendmail.php", $PALANG['pMenu_sendmail']);
|
print _menulink("sendmail.php", $PALANG['pMenu_sendmail'], $submenu_sendmail);
|
||||||
}
|
}
|
||||||
|
|
||||||
# not really useful in the admin menu
|
# not really useful in the admin menu
|
||||||
@ -49,10 +50,6 @@ if ($CONF['sendmail'] == 'YES') {
|
|||||||
# print _menulink("edit-vacation.php", $PALANG['pUsersMenu_vacation']);
|
# print _menulink("edit-vacation.php", $PALANG['pUsersMenu_vacation']);
|
||||||
#}
|
#}
|
||||||
|
|
||||||
if (authentication_has_role('global-admin')) {
|
|
||||||
print _menulink("broadcast-message.php", $PALANG['pAdminMenu_broadcast_message']);
|
|
||||||
}
|
|
||||||
|
|
||||||
print _menulink("password.php", $PALANG['pMenu_password']);
|
print _menulink("password.php", $PALANG['pMenu_password']);
|
||||||
|
|
||||||
if (authentication_has_role('global-admin') && 'pgsql'!=$CONF['database_type'] && $CONF['backup'] == 'YES') {
|
if (authentication_has_role('global-admin') && 'pgsql'!=$CONF['database_type'] && $CONF['backup'] == 'YES') {
|
||||||
|
Loading…
Reference in New Issue
Block a user