add more pages in order interpreter

This commit is contained in:
marcos 2019-12-12 16:27:11 +01:00
parent 8ca473b2a7
commit 1f3fc1f908
3 changed files with 43 additions and 31 deletions

View File

@ -58,6 +58,5 @@ if (method_exists($order_interpreter, $method) === true) {
$order_interpreter->error('Method not found. ['.$method.']');
}
// Stop any execution.
exit;

View File

@ -30,6 +30,7 @@
global $config;
require_once $config['homedir'].'/godmode/wizards/Wizard.main.php';
ui_require_css_file('order_interpreter');
/**
* Class OrderInterpreter.
@ -102,16 +103,18 @@ class OrderInterpreter extends Wizard
$this->pages_name = [
0 => __('Tactical View'),
1 => __('Agent Management'),
2 => __('List Alerts'),
2 => __('General Setup'),
3 => __('Manage Policies'),
4 => __('Tactical View'),
5 => __('Agent Management'),
7 => __('List Alerts'),
8 => __('Manage Policies'),
9 => __('Tactical View'),
10 => __('Agent Management'),
11 => __('List Alerts'),
12 => __('Manage Policies'),
4 => __('List Alerts'),
5 => __('View Events'),
6 => __('Dashboard'),
7 => __('Visual Console'),
8 => __('Manage Servers'),
9 => __('Edit User'),
10 => __('Three View'),
11 => __('Network Component'),
12 => __('Task List'),
13 => __('Update Manager'),
];
// Example ICON.
@ -123,37 +126,40 @@ class OrderInterpreter extends Wizard
'images/gm_resources.menu_gray.png'
),
2 => ui_get_full_url(
'images/gm_alerts.menu_gray.png'
'images/gm_setup.menu_gray.png'
),
3 => ui_get_full_url(
'images/gm_configuration.menu_gray.png'
),
4 => ui_get_full_url(
'images/op_monitoring.menu_gray.png'
'images/gm_alerts.menu_gray.png'
),
5 => ui_get_full_url(
'images/gm_resources.menu_gray.png'
'images/op_events.menu_gray.png'
),
6 => ui_get_full_url(
'images/gm_alerts.menu_gray.png'
'images/op_reporting.menu_gray.png'
),
7 => ui_get_full_url(
'images/gm_configuration.menu_gray.png'
'images/op_network.menu_gray.png'
),
8 => ui_get_full_url(
'images/op_monitoring.menu_gray.png'
'images/gm_servers.menu_gray.png'
),
9 => ui_get_full_url(
'images/gm_resources.menu_gray.png'
'images/gm_users.menu_gray.png'
),
10 => ui_get_full_url(
'images/gm_alerts.menu_gray.png'
'images/op_monitoring.menu_gray.png'
),
11 => ui_get_full_url(
'images/gm_configuration.menu_gray.png'
),
12 => ui_get_full_url(
'images/gm_configuration.menu_gray.png'
'images/gm_discovery.menu.png'
),
13 => ui_get_full_url(
'images/um_messages.menu_gray.png'
),
];
@ -166,37 +172,40 @@ class OrderInterpreter extends Wizard
'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'
),
2 => ui_get_full_url(
'index.php?sec=galertas&sec2=godmode/alerts/alert_list'
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
3 => ui_get_full_url(
'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies'
),
4 => ui_get_full_url(
'index.php?sec=view&sec2=operation/agentes/tactical'
'index.php?sec=galertas&sec2=godmode/alerts/alert_list'
),
5 => ui_get_full_url(
'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'
'index.php?sec=eventos&sec2=operation/events/events'
),
6 => ui_get_full_url(
'index.php?sec=galertas&sec2=godmode/alerts/alert_list'
'index.php?sec=reporting&sec2=enterprise/dashboard/dashboards'
),
7 => ui_get_full_url(
'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies'
'index.php?sec=network&sec2=godmode/reporting/map_builder'
),
8 => ui_get_full_url(
'index.php?sec=view&sec2=operation/agentes/tactical'
'index.php?sec=gservers&sec2=godmode/servers/modificar_server'
),
9 => ui_get_full_url(
'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'
'index.php?sec=workspace&sec2=operation/users/user_edit'
),
10 => ui_get_full_url(
'index.php?sec=galertas&sec2=godmode/alerts/alert_list'
'index.php?sec=view&sec2=operation/tree'
),
11 => ui_get_full_url(
'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies'
'index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'
),
12 => ui_get_full_url(
'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies'
'index.php?sec=discovery&sec2=godmode/servers/discovery&wiz=tasklist'
),
13 => ui_get_full_url(
'index.php?sec=messages&sec2=godmode/update_manager/update_manager&tab=setup'
),
];
@ -228,9 +237,9 @@ class OrderInterpreter extends Wizard
)
) {
if ($iterator <= 9) {
echo '<li>';
echo '<li class="list_found">';
echo '
Go to &nbsp;&nbsp;
Go to &nbsp;
<img src="'.$this->pages_icon[$key].'">';
echo '&nbsp;
<a href="'.$this->pages_url[$key].'">

View File

@ -39,3 +39,7 @@ div.show_result_interpreter {
border-top-right-radius: 50px;
border-color: transparent;
}
.list_found {
padding-top: 5px;
}