mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_generalagente.php: show a warning message when the agent has not a assigned server. * operation/agentes/ver_agente.php: some changes for to make more easy the merge with the trunk. MERGED FROM THE TRUNK. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8718 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
602ceb1941
commit
3b12a6b059
@ -1,3 +1,13 @@
|
|||||||
|
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/estado_generalagente.php: show a warning
|
||||||
|
message when the agent has not a assigned server.
|
||||||
|
|
||||||
|
* operation/agentes/ver_agente.php: some changes for to make more
|
||||||
|
easy the merge with the trunk.
|
||||||
|
|
||||||
|
MERGED FROM THE TRUNK.
|
||||||
|
|
||||||
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
|
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/groups/group_list.php: fixed pagination mismatch.
|
* godmode/groups/group_list.php: fixed pagination mismatch.
|
||||||
@ -18,7 +28,8 @@
|
|||||||
* godmode/agentes/module_manager_editor_common.php: added code to
|
* godmode/agentes/module_manager_editor_common.php: added code to
|
||||||
policy module editor with disabled unknown events modules.
|
policy module editor with disabled unknown events modules.
|
||||||
|
|
||||||
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
|
2013-08-28 Miguel de Dios <miguel.dedios@artica.
|
||||||
|
es>
|
||||||
|
|
||||||
* include/functions_modules.php: fixed the massive copy modules
|
* include/functions_modules.php: fixed the massive copy modules
|
||||||
between agents.
|
between agents.
|
||||||
|
@ -32,6 +32,11 @@ $id_agente = get_parameter_get ("id_agente", -1);
|
|||||||
|
|
||||||
$agent = db_get_row ("tagente", "id_agente", $id_agente);
|
$agent = db_get_row ("tagente", "id_agente", $id_agente);
|
||||||
|
|
||||||
|
if (empty($agent['server_name'])) {
|
||||||
|
ui_print_error_message(
|
||||||
|
__('The agent has not assigned server. Maybe agent does not run fine.'));
|
||||||
|
}
|
||||||
|
|
||||||
if ($agent === false) {
|
if ($agent === false) {
|
||||||
ui_print_error_message(__('There was a problem loading agent'));
|
ui_print_error_message(__('There was a problem loading agent'));
|
||||||
return;
|
return;
|
||||||
@ -119,8 +124,9 @@ $table_agent->rowclass[] = '';
|
|||||||
|
|
||||||
$addresses = agents_get_addresses($id_agente);
|
$addresses = agents_get_addresses($id_agente);
|
||||||
$address = agents_get_address($id_agente);
|
$address = agents_get_address($id_agente);
|
||||||
|
|
||||||
foreach ($addresses as $k => $add) {
|
foreach ($addresses as $k => $add) {
|
||||||
if($add == $address) {
|
if ($add == $address) {
|
||||||
unset($addresses[$k]);
|
unset($addresses[$k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -347,8 +347,8 @@ if (is_ajax ()) {
|
|||||||
if (metaconsole_load_external_db($connection) == NOERR) {
|
if (metaconsole_load_external_db($connection) == NOERR) {
|
||||||
/* Get all agents if no agent was given */
|
/* Get all agents if no agent was given */
|
||||||
if ($id_agent == 0)
|
if ($id_agent == 0)
|
||||||
$id_agent = array_keys (
|
$id_agent = array_keys(
|
||||||
agents_get_group_agents (
|
agents_get_group_agents(
|
||||||
array_keys (users_get_groups ()), $search, "none"));
|
array_keys (users_get_groups ()), $search, "none"));
|
||||||
|
|
||||||
$agent_modules = agents_get_modules ($id_agent,
|
$agent_modules = agents_get_modules ($id_agent,
|
||||||
@ -362,14 +362,16 @@ if (is_ajax ()) {
|
|||||||
else {
|
else {
|
||||||
/* Get all agents if no agent was given */
|
/* Get all agents if no agent was given */
|
||||||
if ($id_agent == 0)
|
if ($id_agent == 0)
|
||||||
$id_agent = array_keys (agents_get_group_agents (array_keys (users_get_groups ()), $search, "none"));
|
$id_agent = array_keys(
|
||||||
|
agents_get_group_agents(
|
||||||
|
array_keys(users_get_groups ()), $search, "none"));
|
||||||
|
|
||||||
$agent_modules = agents_get_modules ($id_agent,
|
$agent_modules = agents_get_modules ($id_agent,
|
||||||
($fields != '' ? explode (',', $fields) : "*"),
|
($fields != '' ? explode (',', $fields) : "*"),
|
||||||
($filter != '' ? $filter : false), $indexed);
|
($filter != '' ? $filter : false), $indexed);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($agent_modules as $key => $module) {
|
foreach ($agent_modules as $key => $module) {
|
||||||
$agent_modules[$key]['nombre'] = io_safe_output($module['nombre']);
|
$agent_modules[$key]['nombre'] = io_safe_output($module['nombre']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -687,6 +689,7 @@ $tab = get_parameter ("tab", "main");
|
|||||||
|
|
||||||
/* Manage tab */
|
/* Manage tab */
|
||||||
$managetab = "";
|
$managetab = "";
|
||||||
|
|
||||||
if (check_acl ($config['id_user'],$id_grupo, "AW") || $is_extra) {
|
if (check_acl ($config['id_user'],$id_grupo, "AW") || $is_extra) {
|
||||||
$managetab['text'] ='<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'">'
|
$managetab['text'] ='<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'">'
|
||||||
. html_print_image("images/setup.png", true, array ("title" => __('Manage')))
|
. html_print_image("images/setup.png", true, array ("title" => __('Manage')))
|
||||||
@ -705,16 +708,19 @@ if (check_acl ($config['id_user'],$id_grupo, "AW") || $is_extra) {
|
|||||||
$maintab['text'] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'">'
|
$maintab['text'] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'">'
|
||||||
. html_print_image("images/agent_mc.png", true, array("title" => __('Main')))
|
. html_print_image("images/agent_mc.png", true, array("title" => __('Main')))
|
||||||
. '</a>';
|
. '</a>';
|
||||||
|
|
||||||
if ($tab == 'main')
|
if ($tab == 'main')
|
||||||
$maintab['active'] = true;
|
$maintab['active'] = true;
|
||||||
else
|
else
|
||||||
$maintab['active'] = false;
|
$maintab['active'] = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Alert tab */
|
/* Alert tab */
|
||||||
$alerttab['text'] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&tab=alert">'
|
$alerttab['text'] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&tab=alert">'
|
||||||
. html_print_image("images/op_alerts.png", true, array("title" => __('Alerts')))
|
. html_print_image("images/op_alerts.png", true, array("title" => __('Alerts')))
|
||||||
. '</a>';
|
. '</a>';
|
||||||
|
|
||||||
if ($tab == 'alert')
|
if ($tab == 'alert')
|
||||||
$alerttab['active'] = true;
|
$alerttab['active'] = true;
|
||||||
else
|
else
|
||||||
@ -737,6 +743,7 @@ $policyTab = enterprise_hook('policy_tab');
|
|||||||
if ($policyTab == -1)
|
if ($policyTab == -1)
|
||||||
$policyTab = "";
|
$policyTab = "";
|
||||||
|
|
||||||
|
|
||||||
/* GIS tab */
|
/* GIS tab */
|
||||||
$gistab="";
|
$gistab="";
|
||||||
if ($config['activate_gis']) {
|
if ($config['activate_gis']) {
|
||||||
@ -821,7 +828,7 @@ if ($agent['url_address'] != '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Tabs for extensions
|
//Tabs for extensions
|
||||||
foreach($config['extensions'] as $extension) {
|
foreach ($config['extensions'] as $extension) {
|
||||||
if (isset($extension['extension_ope_tab'])) {
|
if (isset($extension['extension_ope_tab'])) {
|
||||||
|
|
||||||
//VMware extension is only available for VMware OS
|
//VMware extension is only available for VMware OS
|
||||||
@ -870,7 +877,7 @@ foreach($config['extensions'] as $extension) {
|
|||||||
|
|
||||||
$extension_tab = array('text' => '<a href="' . $url .'">' . html_print_image ($image, true, array ( "title" => $name)) . '</a>', 'active' => $active);
|
$extension_tab = array('text' => '<a href="' . $url .'">' . html_print_image ($image, true, array ( "title" => $name)) . '</a>', 'active' => $active);
|
||||||
|
|
||||||
$onheader = $onheader + array($id => $extension_tab);
|
$onheader = $onheader + array($id => $extension_tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user