|
|
|
@ -112,6 +112,42 @@ if (hesk_check_kb_only(false)) {
|
|
|
|
|
} elseif (hesk_checkPermission('can_export', 0)) {
|
|
|
|
|
echo '<li><a href="export.php"><i class="fa fa-line-chart" ' . $iconDisplay . '></i> ' . $hesklang['reports'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
$tools_count = 0;
|
|
|
|
|
$dropdown_items = '<ul class="dropdown-menu" role="menu">';
|
|
|
|
|
if (hesk_checkPermission('can_ban_emails', 0)) {
|
|
|
|
|
$tools_count++;
|
|
|
|
|
$dropdown_items .= '<li><a href="banned_emails.php">' . $hesklang['manage_banned_emails'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
if (hesk_checkPermission('can_ban_ips', 0)) {
|
|
|
|
|
$tools_count++;
|
|
|
|
|
$dropdown_items .= '<li><a href="banned_ips.php">' . $hesklang['manage_banned_ips'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
if (hesk_checkPermission('can_service_msg', 0)) {
|
|
|
|
|
$tools_count++;
|
|
|
|
|
$dropdown_items .= '<li><a href="service_messages.php">' . $hesklang['manage_service_messages'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
if (hesk_checkPermission('can_man_email_tpl', 0)) {
|
|
|
|
|
$tools_count++;
|
|
|
|
|
$dropdown_items .= '<li><a href="manage_email_templates.php">' . $hesklang['manage_email_templates'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
if (hesk_checkPermission('can_man_ticket_statuses', 0)) {
|
|
|
|
|
$tools_count++;
|
|
|
|
|
$dropdown_items .= '<li><a href="manage_statuses.php">' . $hesklang['manage_statuses'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|
$dropdown_items .= '</ul>';
|
|
|
|
|
|
|
|
|
|
if ($tools_count > 1) {
|
|
|
|
|
$active = '';
|
|
|
|
|
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
|
|
|
|
|
$active = ' active';
|
|
|
|
|
}
|
|
|
|
|
echo '<li class="dropdown'.$active.'">
|
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
|
|
|
|
<i class="fa fa-wrench" ' . $iconDisplay . '></i> ' . $hesklang['tools'] . '<span class="caret"></span>
|
|
|
|
|
</a>
|
|
|
|
|
'.$dropdown_items.'
|
|
|
|
|
</li>';
|
|
|
|
|
} else {
|
|
|
|
|
if (hesk_checkPermission('can_ban_emails', 0)) {
|
|
|
|
|
echo '<li><a href="banned_emails.php"><i class="fa fa-wrench" ' . $iconDisplay . '></i> ' . $hesklang['tools'] . '</a> </li>';
|
|
|
|
|
} elseif (hesk_checkPermission('can_ban_ips', 0)) {
|
|
|
|
@ -123,6 +159,7 @@ if (hesk_check_kb_only(false)) {
|
|
|
|
|
} elseif (hesk_checkPermission('can_man_ticket_statuses', 0)) {
|
|
|
|
|
echo '<li><a href="manage_statuses.php"><i class="fa fa-wrench" ' . $iconDisplay . '></i> ' . $hesklang['tools'] . '</a> </li>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (hesk_checkPermission('can_man_settings', 0)) {
|
|
|
|
|
echo '<li><a href="admin_settings.php"><i class="fa fa-cog" ' . $iconDisplay . '></i> ' . $hesklang['settings'] . '</a></li>';
|
|
|
|
|
}
|
|
|
|
|