2011-06-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/ajax/alert_list.ajax.php: Added new callback function 
	for jQuery requests. 
	* godmode/menu.php: Added alert events entry. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-06-06 11:16:48 +00:00
parent d8903afee8
commit c755e03c55
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-06-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/ajax/alert_list.ajax.php: Added new callback function
for jQuery requests.
* godmode/menu.php: Added alert events entry.
2011-06-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_tags.php: Some modifications in update tag function.

View File

@ -89,6 +89,7 @@ if (check_acl ($config['id_user'], 0, "LM")) {
$sub["godmode/alerts/alert_commands"]["text"] = __('Commands');
}
$sub["godmode/alerts/alert_compounds"]["text"] = __('Correlation');
enterprise_hook('eventalerts_submenu');
$menu["galertas"]["sub"] = $sub;
}

View File

@ -31,6 +31,7 @@ $isFunctionPolicies = enterprise_include ('include/functions_policies.php');
$get_agent_alerts_simple = (bool) get_parameter ('get_agent_alerts_simple');
$disable_alert = (bool) get_parameter ('disable_alert');
$enable_alert = (bool) get_parameter ('enable_alert');
$get_actions_module = (bool) get_parameter ('get_actions_module');
if ($get_agent_alerts_simple) {
$id_agent = (int) get_parameter ('id_agent');
@ -91,5 +92,17 @@ if ($disable_alert) {
echo __('Could not be disabled');
return;
}
if ($get_actions_module) {
$id_module = get_parameter ('id_module');
if (empty($id_module))
return false;
$alerts_modules = alerts_get_alerts_module_name ($id_module);
echo json_encode ($alerts_modules);
return;
}
return;
?>