2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
|
|
|
|
2008-08-22 20:07:32 +02:00
|
|
|
// Pandora FMS - the Flexible Monitoring System
|
|
|
|
// ============================================
|
|
|
|
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
|
|
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
|
|
|
|
2006-07-12 15:43:41 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2008-08-22 20:07:32 +02:00
|
|
|
// as published by the Free Software Foundation for version 2.
|
2006-07-12 15:43:41 +02:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
// Load global vars
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
require_once ("include/config.php");
|
|
|
|
|
|
|
|
check_login ();
|
|
|
|
|
|
|
|
echo '<h2>'.__('Pandora users').' > '.__('Users defined in Pandora').'</h2>';
|
|
|
|
|
|
|
|
$table->cellpadding = 4;
|
|
|
|
$table->cellspacing = 4;
|
|
|
|
$table->width = 700;
|
|
|
|
$table->class = "databox";
|
|
|
|
$table->head = array ();
|
|
|
|
$table->data = array ();
|
|
|
|
$table->align = array ();
|
|
|
|
|
|
|
|
$table->head[0] = __('User ID');
|
|
|
|
$table->head[1] = __('Name');
|
|
|
|
$table->head[2] = __('Last contact');
|
|
|
|
$table->head[3] = __('Profile');
|
|
|
|
$table->head[4] = __('Description');
|
|
|
|
|
|
|
|
$table->align[2] = "center";
|
|
|
|
$table->align[3] = "center";
|
|
|
|
|
|
|
|
$info = array ();
|
|
|
|
if (give_acl ($config["id_user"], 0, "UM") == 1) {
|
|
|
|
$info = get_users ();
|
|
|
|
} else {
|
|
|
|
$info[$config["id_user"]] = get_user_info ($config["id_user"]);
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
foreach ($info as $user_id => $user_info) {
|
|
|
|
$data[0] = $user_id;
|
|
|
|
$data[1] = $user_info["nombre_real"];
|
|
|
|
$data[2] = print_timestamp ($user_info["fecha_registro"], true);
|
|
|
|
|
|
|
|
if ($user_info["nivel"]) {
|
|
|
|
$data[3] = '<img src="images/user_suit.png" /> ';
|
|
|
|
} else {
|
|
|
|
$data[3] = '<img src="images/user_green.png" /> ';
|
2006-07-03 12:49:42 +02:00
|
|
|
}
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
|
|
|
|
$data[3] .= '<a href="#" class="tip"><span>';
|
|
|
|
$result = get_db_all_rows_field_filter ("tusuario_perfil", "id_usuario", $user_id);
|
|
|
|
if ($result !== false) {
|
|
|
|
foreach ($result as $row) {
|
|
|
|
$data[3] .= get_profile_name ($row["id_perfil"]);
|
|
|
|
$data[3] .= " / ";
|
|
|
|
$data[3] .= get_group_name ($row["id_grupo"]);
|
|
|
|
$data[3] .= "<br />";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
} else {
|
|
|
|
$data[3] .= __('The user doesn\'t have any assigned profile/group');
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
$data[3] .= "</span></a>";
|
|
|
|
|
|
|
|
$data[4] = print_string_substr ($user_info["comentarios"], 24, true);
|
|
|
|
array_push ($table->data, $data);
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
print_table ($table);
|
|
|
|
unset ($table);
|
|
|
|
|
|
|
|
echo '<h3>'.__('Profiles defined in Pandora').'</h3>';
|
|
|
|
|
|
|
|
$table->cellpadding = 4;
|
|
|
|
$table->cellspacing = 4;
|
|
|
|
$table->class = 'databox';
|
|
|
|
$table->width = 700;
|
|
|
|
|
|
|
|
$table->head = array ();
|
|
|
|
$table->data = array ();
|
|
|
|
$table->size = array ();
|
|
|
|
|
|
|
|
$table->head[0] = __('Profiles');
|
|
|
|
|
|
|
|
$table->head[1] = "IR".print_help_tip (__('System incidents reading'), true);
|
|
|
|
$table->head[2] = "IW".print_help_tip (__('System incidents writing'), true);
|
|
|
|
$table->head[3] = "IM".print_help_tip (__('System incidents management'), true);
|
|
|
|
$table->head[4] = "AR".print_help_tip (__('Agents reading'), true);
|
|
|
|
$table->head[5] = "AW".print_help_tip (__('Agents management'), true);
|
|
|
|
$table->head[6] = "LW".print_help_tip (__('Alerts editing'), true);
|
|
|
|
$table->head[7] = "UM".print_help_tip (__('Users management'), true);
|
|
|
|
$table->head[8] = "DM".print_help_tip (__('Database management'), true);
|
|
|
|
$table->head[9] = "LM".print_help_tip (__('Alerts management'), true);
|
|
|
|
$table->head[10] = "PM".print_help_tip (__('Systems management'), true);
|
|
|
|
|
|
|
|
$table->size[1] = 40;
|
|
|
|
$table->size[2] = 40;
|
|
|
|
$table->size[3] = 40;
|
|
|
|
$table->size[4] = 40;
|
|
|
|
$table->size[5] = 40;
|
|
|
|
$table->size[6] = 40;
|
|
|
|
$table->size[7] = 40;
|
|
|
|
$table->size[8] = 40;
|
|
|
|
$table->size[9] = 40;
|
|
|
|
$table->size[10] = 40;
|
|
|
|
|
|
|
|
$profiles = get_db_all_rows_in_table ("tperfil");
|
|
|
|
|
|
|
|
$img = print_image ("images/ok.png", true, array ("border" => 0));
|
|
|
|
|
|
|
|
foreach ($profiles as $profile) {
|
|
|
|
$data[0] = $profile["name"];
|
|
|
|
|
|
|
|
$data[1] = ($profile["incident_view"] ? $img : '');
|
|
|
|
$data[2] = ($profile["incident_edit"] ? $img : '');
|
|
|
|
$data[3] = ($profile["incident_management"] ? $img : '');
|
|
|
|
$data[4] = ($profile["agent_view"] ? $img : '');
|
|
|
|
$data[5] = ($profile["agent_edit"] ? $img : '');
|
|
|
|
$data[6] = ($profile["alert_edit"] ? $img : '');
|
|
|
|
$data[7] = ($profile["user_management"] ? $img : '');
|
|
|
|
$data[8] = ($profile["db_management"] ? $img : '');
|
|
|
|
$data[9] = ($profile["alert_management"] ? $img : '');
|
|
|
|
$data[10] = ($profile["pandora_management"] ? $img : '');
|
|
|
|
|
|
|
|
array_push ($table->data, $data);
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
print_table ($table);
|
|
|
|
unset ($table);
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
?>
|
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
|
|
|
</tr></table>
|