mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-22 05:14:57 +02:00
2010-04-14 Sergio Martin <sergio.martin@artica.es>
* godmode/alerts/alert_list.php: Controled the sucessful of the create an alarm to audit it for bug 2987006 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2561 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
bb78d14502
commit
30d47b840d
@ -1,3 +1,8 @@
|
|||||||
|
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* godmode/alerts/alert_list.php: Controled the sucessful of the
|
||||||
|
create an alarm to audit it for bug 2987006
|
||||||
|
|
||||||
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/alerts/alert_list.php,
|
* godmode/alerts/alert_list.php,
|
||||||
|
@ -74,9 +74,12 @@ if ($create_alert) {
|
|||||||
$alert_template_name = get_db_value ("name", "talert_templates","id", $id_alert_template);
|
$alert_template_name = get_db_value ("name", "talert_templates","id", $id_alert_template);
|
||||||
$module_name = get_db_value ("nombre", "tagente_modulo","id_agente_modulo", $id_agent_module);
|
$module_name = get_db_value ("nombre", "tagente_modulo","id_agente_modulo", $id_agent_module);
|
||||||
$agent_name = get_agent_name (get_db_value ("id_agente", "tagente_modulo","id_agente_modulo", $id_agent_module));
|
$agent_name = get_agent_name (get_db_value ("id_agente", "tagente_modulo","id_agente_modulo", $id_agent_module));
|
||||||
|
|
||||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
// Audit the creation only when the alert creation is correct
|
||||||
|
if($id) {
|
||||||
|
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
||||||
"Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
"Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||||
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($id, __('Successfully created'), __('Could not be created'), '', true);
|
$messageAction = print_result_message ($id, __('Successfully created'), __('Could not be created'), '', true);
|
||||||
if ($id !== false) {
|
if ($id !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user