2010-03-02 Raul Mateos <raulofpandora@gmail.com>

* godmode/alerts/*.php, godmode/users/*.php, extensions/users_connected.php:
	Updated year and headers in several files. Little by little I'll change
	the rest...

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2451 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2010-03-02 17:19:44 +00:00
parent 6e0eea2b2c
commit a42f388437
11 changed files with 42 additions and 36 deletions

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -39,8 +39,8 @@ if (is_ajax ()) {
return;
}
echo "<h2>".__('Alerts')." &raquo; ";
echo __('Alert actions').'</h2>';
// Header
print_page_header (__('Alerts').' &raquo; '.__('Alert actions'), "images/god2.png", false, "", true);
$update_action = (bool) get_parameter ('update_action');
$create_action = (bool) get_parameter ('create_action');

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -38,8 +38,9 @@ if (is_ajax ()) {
return;
}
echo "<h2>".__('Alerts')." &raquo; ";
echo __('Alert commands').'</h2>';
// Header
print_page_header (__('Alerts').' &raquo; '.__('Alert commands'), "images/god2.png", false, "", true);
$update_command = (bool) get_parameter ('update_command');
$create_command = (bool) get_parameter ('create_command');
$delete_command = (bool) get_parameter ('delete_command');

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -46,6 +46,10 @@ $delete_alert = (int) get_parameter ('delete_alert');
$enable_alert = (int) get_parameter ('enable_alert');
$disable_alert = (int) get_parameter ('disable_alert');
// Header
print_page_header (__('Alerts').' &raquo; '.__('Correlated alerts'), "images/god2.png", false, "", true);
if ($delete_alert) {
$id = (int) get_parameter ('id');
$result = delete_alert_compound ($id);
@ -76,9 +80,6 @@ if ($disable_alert) {
return;
}
echo "<h2>".__('Alerts')." &raquo; ";
echo __('Correlated alerts').'</h2>';
$table->id = 'filter_compound_table';
$table->width = '90%';
$table->data = array ();

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -106,6 +106,16 @@ $delete_alert = (bool) get_parameter ('delete_alert');
$disable_alert = (bool) get_parameter ('disable_alert');
$enable_alert = (bool) get_parameter ('enable_alert');
// Header
if ($id_agente) {
print_page_header (__('Agent configuration').' &raquo; '.__('Alerts'), "images/god2.png", false, "", true);
$agents = array ($id_agente => get_agent_name ($id_agente));
} else {
print_page_header (__('Alerts').' &raquo; '.__('Manage alerts'), "images/god2.png", false, "", true);
$groups = get_user_groups ();
$agents = get_group_agents (array_keys ($groups), false, "none");
}
if ($create_alert) {
$id_alert_template = (int) get_parameter ('template');
$id_agent_module = (int) get_parameter ('id_agent_module');
@ -209,15 +219,6 @@ if ($disable_alert) {
__('Could not be disabled'));
}
if ($id_agente) {
echo '<h2>'.__('Agent configuration').' &raquo; '.__('Alerts').'</h2>';
$agents = array ($id_agente => get_agent_name ($id_agente));
} else {
echo '<h2>'.__('Alerts').' &raquo; '.__('Manage alerts').'</h2>';
$groups = get_user_groups ();
$agents = get_group_agents (array_keys ($groups), false, "none");
}
echo '<a href="#" id="tgl_alert_control"><b>'.__('Alert control filter').'</b>&nbsp;'.print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'</a><br><br>';
$templateName = get_parameter('template_name','');

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -107,7 +107,7 @@ if (! give_acl ($config['id_user'], 0, "LM")) {
}
// Header
print_page_header (__('Alerts')." &raquo; ". __('Alert templates'), "", false, "", true);
print_page_header (__('Alerts')." &raquo; ". __('Alert templates'), "images/god2.png", false, "", true);
$update_template = (bool) get_parameter ('update_template');
$delete_template = (bool) get_parameter ('delete_template');

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -45,8 +45,8 @@ if ($id) {
$field3 = $action['field3'];
$group = $action ['group'];
}
echo "<h2>".__('Alerts')." &raquo; ".__('Configure alert action')."</h2>";
// Header
print_page_header (__('Alerts').' &raquo; '.__('Configure alert action'), "images/god2.png", false, "", true);
$table->width = '90%';
$table->style = array ();

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -38,7 +38,8 @@ if ($id) {
$description = $alert['description'];
}
echo '<h2>'.__('Alerts').' &raquo; '.__('Configure alert command').'</h2>';
// Header
print_page_header (__('Alerts').' &raquo; '.__('Configure alert command'), "images/god2.png", false, "", true);
$table->width = '90%';
$table->style = array ();

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -235,6 +235,9 @@ if ($id && ! $create_compound) {
}
}
// Header
print_page_header (__('Alerts').' &raquo; '.__('Configure correlated alert'), "images/god2.png", false, "", true);
if ($create_compound) {
$name = (string) get_parameter ('name');
$description = (string) get_parameter ('description');
@ -271,9 +274,6 @@ if ($update_compound) {
}
}
echo "<h2>".__('Alerts')." &raquo; ";
echo __('Configure correlated alert').'</h2>';
print_alert_compound_steps ($step, $id);
$groups = get_user_groups ();

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or

View File

@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -25,6 +25,10 @@ if (! give_acl ($config['id_user'], 0, "UM")) {
exit;
}
// Header
print_page_header (__('User management').' &raquo; '.__('Users defined in Pandora'), "images/god3.png", false, "", true);
if (isset ($_GET["user_del"])) { //delete user
$id_user = get_parameter_post ("delete_user");
$result = delete_user ($id_user);
@ -43,8 +47,6 @@ if (isset ($_GET["user_del"])) { //delete user
__('There was a problem deleting the profile'));
}
echo '<h2>'.__('User management').' &raquo; '.__('Users defined in Pandora').'</h2>';
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->width = 700;