2010-10-27 Miguel de Dios <miguel.dedios@artica.es>
* godmode/admin_access_logs.php: added hooks to enterprise code, and added new filter with more options. * include/functions_db.php: erase the deprecated function "audit_db", and added in function "pandora_audit" two new parameters $user_id, $ip for pass this values when it are differents to the default values. Finally replaced the depecrated "audit_db" for "pandora_audit". * include/functions_events.php, include/functions_filemanager.php, include/ajax/reporting.ajax.php, include/ajax/visual_console_builder.ajax.php, include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php, include/functions_incidents.php, index.php, extensions/agents_modules.php, extensions/insert_data.php, extensions/system_info.php, extensions/dbmanager.php, extensions/update_manager/settings.php, extensions/pandora_logs.php, extensions/plugin_registration.php, operation/incidents/incident.php, operation/incidents/incident_detail.php, operation/incidents/incident_statistics.php, operation/extensions.php, operation/visual_console/render_view.php, operation/agentes/status_monitor.php, operation/agentes/export_csv.php, operation/agentes/datos_agente.php, operation/agentes/alerts_status.php, operation/agentes/estado_generalagente.php, operation/agentes/custom_fields.php, operation/agentes/estado_agente.php, operation/agentes/networkmap.topology.php, operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php, operation/agentes/gis_view.php, operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php, operation/agentes/graphs.php, operation/agentes/agent_fields.php, operation/agentes/tactical.php, operation/agentes/group_view.php, operation/agentes/networkmap.php, operation/servers/view_server.php,operation/servers/view_server_detail.php, operation/snmpconsole/snmp_view.php, operation/users/user_edit.php, operation/gis_maps/render_view.php, operation/events/event_statistics.php, operation/events/sound_events.php, operation/events/events_validate.php, operation/events/events_list.php, operation/events/events_marquee.php, operation/events/events.php, operation/reporting/reporting_xml.php, operation/reporting/reporting_viewer.php, operation/reporting/graph_viewer.php, mobile/operation/agents/view_agents.php, mobile/index.php, godmode/groups/modu_group_list.php, godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php, godmode/groups/group_list.php, godmode/extensions.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/agentes/fields_manager.php, godmode/agentes/module_manager.php, godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php, godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php, godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php, godmode/servers/manage_export.php, godmode/servers/recon_script.php, godmode/servers/manage_export_form.php, godmode/servers/plugin.php, godmode/servers/manage_recontask.php, godmode/servers/modificar_server.php, godmode/servers/manage_recontask_form.php, godmode/alerts/alert_list.list.php, godmode/alerts/configure_alert_compound.php, godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php, godmode/alerts/configure_alert_template.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_action.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php, godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php, godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php, godmode/setup/os.list.php, godmode/setup/news.php, godmode/setup/gis_step_2.php, godmode/setup/links.php, godmode/setup/setup.php, godmode/setup/os.php, godmode/setup/performance.php, godmode/setup/setup_auth.php, godmode/setup/gis.php, godmode/setup/os.builder.php, godmode/setup/setup_visuals.php, godmode/users/user_list.php, godmode/users/configure_user.php, godmode/users/configure_profile.php, godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php, godmode/massive/massive_add_alerts.php, godmode/massive/massive_copy_modules.php, godmode/massive/massive_delete_agents.php, godmode/massive/massive_enable_disable_alerts.php, godmode/massive/massive_operations.php, godmode/massive/massive_delete_profiles.php, godmode/massive/massive_edit_agents.php, godmode/massive/massive_delete_action_alerts.php, godmode/massive/massive_delete_modules.php, godmode/massive/massive_add_profiles.php, godmode/massive/massive_delete_alerts.php, godmode/massive/massive_edit_modules.php, godmode/massive/massive_standby_alerts.php, godmode/massive/massive_add_action_alerts.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_components_form_common.php, godmode/modules/manage_network_components_form_network.php, godmode/modules/manage_network_templates_form.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.list_items.php, godmode/reporting/graph_builder.main.php, godmode/reporting/visual_console_builder.wizard.php, godmode/reporting/visual_console_builder.php, godmode/reporting/reporting_builder.preview.php, godmode/reporting/reporting_builder.main.php, godmode/reporting/visual_console_builder.data.php, godmode/reporting/map_builder_wizard.php, godmode/reporting/visual_console_builder.elements.php, godmode/reporting/graph_builder.php, godmode/reporting/visual_console_builder.preview.php, godmode/reporting/graph_builder.graph_editor.php, godmode/reporting/reporting_builder.php, godmode/reporting/visual_console_builder.editor.php, godmode/reporting/reporting_builder.item_editor.php, godmode/reporting/graphs.php, godmode/reporting/graph_builder.preview.php: Replaced the depecrated "audit_db" for "pandora_audit". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
49a91f5df7
commit
3068e497ce
|
@ -1,3 +1,116 @@
|
|||
2010-10-27 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/admin_access_logs.php: added hooks to enterprise code, and added
|
||||
new filter with more options.
|
||||
|
||||
* include/functions_db.php: erase the deprecated function "audit_db", and
|
||||
added in function "pandora_audit" two new parameters $user_id, $ip for
|
||||
pass this values when it are differents to the default values. Finally
|
||||
replaced the depecrated "audit_db" for "pandora_audit".
|
||||
|
||||
* include/functions_events.php, include/functions_filemanager.php,
|
||||
include/ajax/reporting.ajax.php,
|
||||
include/ajax/visual_console_builder.ajax.php,
|
||||
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
|
||||
include/functions_incidents.php, index.php, extensions/agents_modules.php,
|
||||
extensions/insert_data.php, extensions/system_info.php,
|
||||
extensions/dbmanager.php, extensions/update_manager/settings.php,
|
||||
extensions/pandora_logs.php, extensions/plugin_registration.php,
|
||||
operation/incidents/incident.php, operation/incidents/incident_detail.php,
|
||||
operation/incidents/incident_statistics.php, operation/extensions.php,
|
||||
operation/visual_console/render_view.php,
|
||||
operation/agentes/status_monitor.php, operation/agentes/export_csv.php,
|
||||
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
|
||||
operation/agentes/estado_generalagente.php,
|
||||
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
|
||||
operation/agentes/networkmap.topology.php,
|
||||
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
|
||||
operation/agentes/gis_view.php, operation/agentes/estado_monitores.php,
|
||||
operation/agentes/ver_agente.php, operation/agentes/graphs.php,
|
||||
operation/agentes/agent_fields.php, operation/agentes/tactical.php,
|
||||
operation/agentes/group_view.php, operation/agentes/networkmap.php,
|
||||
operation/servers/view_server.php,operation/servers/view_server_detail.php,
|
||||
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
|
||||
operation/gis_maps/render_view.php, operation/events/event_statistics.php,
|
||||
operation/events/sound_events.php, operation/events/events_validate.php,
|
||||
operation/events/events_list.php, operation/events/events_marquee.php,
|
||||
operation/events/events.php, operation/reporting/reporting_xml.php,
|
||||
operation/reporting/reporting_viewer.php,
|
||||
operation/reporting/graph_viewer.php,
|
||||
mobile/operation/agents/view_agents.php, mobile/index.php,
|
||||
godmode/groups/modu_group_list.php, godmode/groups/configure_group.php,
|
||||
godmode/groups/configure_modu_group.php, godmode/groups/group_list.php,
|
||||
godmode/extensions.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/agentes/fields_manager.php, godmode/agentes/module_manager.php,
|
||||
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
|
||||
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
|
||||
godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php,
|
||||
godmode/servers/manage_export.php, godmode/servers/recon_script.php,
|
||||
godmode/servers/manage_export_form.php, godmode/servers/plugin.php,
|
||||
godmode/servers/manage_recontask.php, godmode/servers/modificar_server.php,
|
||||
godmode/servers/manage_recontask_form.php,
|
||||
godmode/alerts/alert_list.list.php,
|
||||
godmode/alerts/configure_alert_compound.php,
|
||||
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
|
||||
godmode/alerts/configure_alert_template.php,
|
||||
godmode/alerts/alert_templates.php,
|
||||
godmode/alerts/configure_alert_action.php,
|
||||
godmode/alerts/configure_alert_command.php,
|
||||
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
|
||||
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
|
||||
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
|
||||
godmode/setup/os.list.php, godmode/setup/news.php,
|
||||
godmode/setup/gis_step_2.php, godmode/setup/links.php,
|
||||
godmode/setup/setup.php, godmode/setup/os.php,
|
||||
godmode/setup/performance.php, godmode/setup/setup_auth.php,
|
||||
godmode/setup/gis.php, godmode/setup/os.builder.php,
|
||||
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
|
||||
godmode/users/configure_user.php, godmode/users/configure_profile.php,
|
||||
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
|
||||
godmode/massive/massive_add_alerts.php,
|
||||
godmode/massive/massive_copy_modules.php,
|
||||
godmode/massive/massive_delete_agents.php,
|
||||
godmode/massive/massive_enable_disable_alerts.php,
|
||||
godmode/massive/massive_operations.php,
|
||||
godmode/massive/massive_delete_profiles.php,
|
||||
godmode/massive/massive_edit_agents.php,
|
||||
godmode/massive/massive_delete_action_alerts.php,
|
||||
godmode/massive/massive_delete_modules.php,
|
||||
godmode/massive/massive_add_profiles.php,
|
||||
godmode/massive/massive_delete_alerts.php,
|
||||
godmode/massive/massive_edit_modules.php,
|
||||
godmode/massive/massive_standby_alerts.php,
|
||||
godmode/massive/massive_add_action_alerts.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_components_form_common.php,
|
||||
godmode/modules/manage_network_components_form_network.php,
|
||||
godmode/modules/manage_network_templates_form.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.list_items.php,
|
||||
godmode/reporting/graph_builder.main.php,
|
||||
godmode/reporting/visual_console_builder.wizard.php,
|
||||
godmode/reporting/visual_console_builder.php,
|
||||
godmode/reporting/reporting_builder.preview.php,
|
||||
godmode/reporting/reporting_builder.main.php,
|
||||
godmode/reporting/visual_console_builder.data.php,
|
||||
godmode/reporting/map_builder_wizard.php,
|
||||
godmode/reporting/visual_console_builder.elements.php,
|
||||
godmode/reporting/graph_builder.php,
|
||||
godmode/reporting/visual_console_builder.preview.php,
|
||||
godmode/reporting/graph_builder.graph_editor.php,
|
||||
godmode/reporting/reporting_builder.php,
|
||||
godmode/reporting/visual_console_builder.editor.php,
|
||||
godmode/reporting/reporting_builder.item_editor.php,
|
||||
godmode/reporting/graphs.php, godmode/reporting/graph_builder.preview.php:
|
||||
Replaced the depecrated "audit_db" for "pandora_audit".
|
||||
|
||||
2010-10-26 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* operation/agentes/stat_win.php: Hide baseline checkbox when not
|
||||
|
|
|
@ -21,7 +21,7 @@ function mainAgentsModules() {
|
|||
check_login ();
|
||||
// ACL Check
|
||||
if (! give_acl ($config['id_user'], 0, "AR")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent view (Grouped)");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -36,7 +36,7 @@ function mainAgentsModules() {
|
|||
$sql = sprintf ("UPDATE tagente_modulo SET `flag` = 1 WHERE `id_agente` = ANY(SELECT id_agente FROM tagente WHERE `id_grupo` = %d)",$group);
|
||||
process_sql ($sql);
|
||||
} else {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to set flag for groups");
|
||||
pandora_audit("ACL Violation", "Trying to set flag for groups");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ function dbmgr_extension_main () {
|
|||
|
||||
global $config;
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ function mainInsertData() {
|
|||
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ function pandoralogs_extension_main () {
|
|||
global $config;
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
function pluginreg_extension_main () {
|
||||
global $config;
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ function mainSystemInfo() {
|
|||
global $config;
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, 'PM')) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to use Open Update Manager extension");
|
||||
pandora_audit("ACL Violation", "Trying to use Open Update Manager extension");
|
||||
include ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -22,8 +22,10 @@ if ($config['flash_charts']) {
|
|||
|
||||
check_login ();
|
||||
|
||||
$enterprise_include = enterprise_include_once('godmode/admin_access_logs.php');
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit( "ACL Violation",
|
||||
"Trying to access event viewer");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -33,9 +35,14 @@ print_page_header (__('Pandora audit')." » ".__('Review Logs'), "", false,
|
|||
|
||||
$offset = get_parameter ("offset", 0);
|
||||
$tipo_log = get_parameter ("tipo_log", 'all');
|
||||
echo "<table width='750px' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
||||
$user_filter = get_parameter('user_filter', 'all');
|
||||
$filter_text = get_parameter('filter_text', '');
|
||||
$filter_hours_old = get_parameter('filter_hours_old', 24);
|
||||
$filter_ip = get_parameter('filter_ip', '');
|
||||
|
||||
echo "<table width='90%' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
||||
echo '<tr><td class="datost">';
|
||||
echo '<div style="float: left; width: 250px;">';
|
||||
echo '<div style="float: left; width: 400px;">';
|
||||
echo '<b>'.__('Filter').'</b><br><br>';
|
||||
|
||||
$rows = get_db_all_rows_sql ("SELECT DISTINCT(accion) FROM tsesion");
|
||||
|
@ -48,32 +55,64 @@ foreach ($rows as $row) {
|
|||
$actions[$row["accion"]] = $row["accion"];
|
||||
}
|
||||
echo '<form name="query_sel" method="post" action="index.php?sec=godmode&sec2=godmode/admin_access_logs">';
|
||||
echo __('Action').': ';
|
||||
print_select ($actions, 'tipo_log', $tipo_log, 'this.form.submit();', __('All'), 'all');
|
||||
echo '<br /><noscript><input name="uptbutton" type="submit" class="sub" value="'.__('Show').'"></noscript>';
|
||||
$table = null;
|
||||
$table->width = '100%';
|
||||
$table->data = array();
|
||||
$table->data[0][0] = __('Action');
|
||||
$table->data[0][1] = print_select ($actions, 'tipo_log', $tipo_log, '', __('All'), 'all', true);
|
||||
$table->data[1][0] = __('User');
|
||||
$table->data[1][1] = print_select_from_sql('SELECT id_user, id_user AS text FROM tusuario', 'user', $user_filter, '', __('All'), 0, true);
|
||||
$table->data[2][0] = __('Free text for search (*)');
|
||||
$table->data[2][1] = print_input_text('filter_text', $filter_text, __('Free text for search (*)'), 20, 40, true);
|
||||
$table->data[3][0] = __('Max. hours old');
|
||||
$table->data[3][1] = print_input_text('filter_hours_old', $filter_hours_old, __('Max. hours old'), 3, 6, true);
|
||||
$table->data[4][0] = __('IP');
|
||||
$table->data[4][1] = print_input_text('filter_ip', $filter_ip, __('IP'), 15, 15, true);
|
||||
$table->data[5][0] = '';
|
||||
$table->data[5][1] = print_submit_button(__('Filter'), 'filter', false, 'class="sub search" style="float: right;"', true);
|
||||
print_table($table);
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
echo '<div style="float: left; width: 250px;">';
|
||||
echo '<div style="float: right; width: 250px;">';
|
||||
if ($config['flash_charts']) {
|
||||
echo graphic_user_activity (300, 140);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=user_activity&width=300&height=140" />';
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div style="clear:both;"> </div>';
|
||||
echo '</td></tr></table>';
|
||||
$filter = '';
|
||||
|
||||
|
||||
|
||||
$filter = 'WHERE 1 = 1';
|
||||
|
||||
if ($tipo_log != 'all') {
|
||||
$filter = sprintf (" WHERE accion = '%s'", $tipo_log);
|
||||
$filter .= sprintf (" AND accion = '%s'", $tipo_log);
|
||||
}
|
||||
|
||||
$sql = "SELECT COUNT(*) FROM tsesion ".$filter;
|
||||
if ($user_filter != 'all') {
|
||||
$filter .= sprintf(' AND ID_usuario = "%s"', $user_filter);
|
||||
}
|
||||
|
||||
$filter .= ' AND (accion LIKE "%' . $filter_text . '%" OR descripcion LIKE "%' . $filter_text . '%")';
|
||||
|
||||
if ($filter_ip != '') {
|
||||
$filter .= sprintf(' AND IP_origen LIKE "%s"', $filter_ip);
|
||||
}
|
||||
|
||||
if ($filter_hours_old != 0) {
|
||||
$filter .= ' AND fecha >= DATE_ADD(NOW(), INTERVAL -' . $filter_hours_old . ' HOUR)';
|
||||
}
|
||||
|
||||
$sql = "SELECT COUNT(*) FROM tsesion " . $filter;
|
||||
$count = get_db_sql ($sql);
|
||||
$url = "index.php?sec=godmode&sec2=godmode/admin_access_logs&tipo_log=".$tipo_log;
|
||||
|
||||
pagination ($count, $url);
|
||||
|
||||
$sql = sprintf ("SELECT * FROM tsesion%s ORDER BY fecha DESC LIMIT %d, %d", $filter, $offset, $config["block_size"]);
|
||||
$sql = sprintf ("SELECT * FROM tsesion %s ORDER BY fecha DESC LIMIT %d, %d", $filter, $offset, $config["block_size"]);
|
||||
$result = get_db_all_rows_sql ($sql);
|
||||
|
||||
if (empty ($result)) {
|
||||
|
@ -87,17 +126,44 @@ $table->class = "databox";
|
|||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array();
|
||||
$table->rowclass = array();
|
||||
|
||||
$table->head[0] = __('User');
|
||||
$table->head[1] = __('Action');
|
||||
$table->head[2] = __('Date');
|
||||
$table->head[3] = __('Source IP');
|
||||
$table->head[4] = __('Comments');
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->head[5] = enterprise_hook('tableHeadEnterpriseAudit', array('title1'));
|
||||
}
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->head[6] = enterprise_hook('tableHeadEnterpriseAudit', array('title2'));
|
||||
}
|
||||
|
||||
$table->size[0] = 80;
|
||||
$table->size[2] = 130;
|
||||
$table->size[3] = 100;
|
||||
$table->size[4] = 200;
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->size[5] = enterprise_hook('tableHeadEnterpriseAudit', array('size1'));
|
||||
}
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->size[6] = enterprise_hook('tableHeadEnterpriseAudit', array('size2'));
|
||||
}
|
||||
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->align[5] = enterprise_hook('tableHeadEnterpriseAudit', array('align'));
|
||||
}
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->align[6] = enterprise_hook('tableHeadEnterpriseAudit', array('align2'));
|
||||
}
|
||||
|
||||
$table->colspan = array();
|
||||
$table->rowstyle = array();
|
||||
|
||||
|
||||
$rowPair = true;
|
||||
$iterator = 0;
|
||||
|
@ -117,9 +183,23 @@ foreach ($result as $row) {
|
|||
$data[2] = $row["fecha"];
|
||||
$data[3] = $row["IP_origen"];
|
||||
$data[4] = $row["descripcion"];
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$data[5] = enterprise_hook('cell1EntepriseAudit', array($row['ID_sesion']));
|
||||
}
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
$data[6] = enterprise_hook('cell2EntepriseAudit', array($row['ID_sesion']));
|
||||
}
|
||||
array_push ($table->data, $data);
|
||||
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
enterprise_hook('rowEnterpriseAudit', array($table, &$iterator, $row['ID_sesion']));
|
||||
}
|
||||
}
|
||||
|
||||
print_table ($table);
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
enterprise_hook('enterpriseAuditFooter');
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -50,7 +50,7 @@ require_javascript_file('openlayers.pandora');
|
|||
$new_agent = (bool) get_parameter ('new_agent');
|
||||
|
||||
if (! isset ($id_agente) && ! $new_agent) {
|
||||
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", "Trying to access agent manager witout an agent");
|
||||
pandora_audit("ACL Violation", "Trying to access agent manager witout an agent");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ if ($id_agente)
|
|||
$group = get_agent_group ($id_agente);
|
||||
|
||||
if (! give_acl ($config["id_user"], $group, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access agent manager");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -172,7 +172,7 @@ if ($create_agent) {
|
|||
|
||||
$agent_created_ok = true;
|
||||
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "Agent management",
|
||||
pandora_audit("Agent management",
|
||||
"Created agent $nombre_agente");
|
||||
}
|
||||
else {
|
||||
|
@ -432,7 +432,7 @@ if ($update_agent) { // if modified some agent paramenter
|
|||
} else {
|
||||
enterprise_hook ('update_agent', array ($id_agente));
|
||||
print_success_message (__('Successfully updated'));
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "Agent management",
|
||||
pandora_audit("Agent management",
|
||||
"Updated agent $nombre_agente");
|
||||
|
||||
}
|
||||
|
@ -445,7 +445,7 @@ if ($id_agente) {
|
|||
//This has been done in the beginning of the page, but if an agent was created, this id might change
|
||||
$id_grupo = get_agent_group ($id_agente);
|
||||
if (give_acl ($config["id_user"], $id_grupo, "AW") != 1) {
|
||||
audit_db($config["id_user"],$_SERVER['REMOTE_ADDR'], "ACL Violation","Trying to admin an agent without access");
|
||||
pandora_audit("ACL Violation","Trying to admin an agent without access");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
@ -485,7 +485,7 @@ if ($update_module || $create_module) {
|
|||
$id_grupo = get_agent_group ($id_agente);
|
||||
|
||||
if (! give_acl ($config["id_user"], $id_grupo, "AW")) {
|
||||
audit_db ($config["id_user"], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to create a module without admin rights");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -620,7 +620,7 @@ if ($update_module) {
|
|||
|
||||
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
||||
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "Agent management",
|
||||
pandora_audit("Agent management",
|
||||
"Updated module '$name' for agent ".$agent["nombre"]);
|
||||
}
|
||||
}
|
||||
|
@ -683,7 +683,7 @@ if ($create_module) {
|
|||
$edit_module = false;
|
||||
|
||||
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "Agent management",
|
||||
pandora_audit("Agent management",
|
||||
"Added module '$name' for agent ".$agent["nombre"]);
|
||||
}
|
||||
}
|
||||
|
@ -696,14 +696,14 @@ if ($delete_module){ // DELETE agent module !
|
|||
$id_grupo = (int) dame_id_grupo ($id_agente);
|
||||
|
||||
if (! give_acl ($config["id_user"], $id_grupo, "AW")) {
|
||||
audit_db($config["id_user"],$_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to delete a module without admin rights");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($id_borrar_modulo < 1) {
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "HACK Attempt",
|
||||
pandora_audit("HACK Attempt",
|
||||
"Expected variable from form is not correct");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -742,7 +742,7 @@ if ($delete_module){ // DELETE agent module !
|
|||
print_success_message (__('Module deleted succesfully'));
|
||||
|
||||
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "Agent management",
|
||||
pandora_audit("Agent management",
|
||||
"Deleted module '".$module_data["nombre"]."' for agent ".$agent["nombre"]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Group Management2");
|
||||
pandora_audit("ACL Violation", "Trying to access Group Management2");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login();
|
||||
|
||||
if (! give_acl($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Group Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -24,7 +24,7 @@ $update_agent = get_parameter ("update_agent", -1);
|
|||
$update_group = get_parameter ("update_group", -1);
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access remote config copy tool");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -55,7 +55,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
|
|||
|
||||
// Security check here
|
||||
if (!user_access_to_agent ($id_origen)) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to forge a source agent in remote config tool");
|
||||
pandora_audit("ACL Violation", "Trying to forge a source agent in remote config tool");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
|
|||
|
||||
// Security check here
|
||||
if (!user_access_to_agent ($id_agente)){
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to forge a source agent in remote config tool");
|
||||
pandora_audit("ACL Violation", "Trying to forge a source agent in remote config tool");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ if (($ag_group == -1) && ($group_id != 0))
|
|||
$ag_group = $group_id;
|
||||
|
||||
if (! give_acl ($config["id_user"], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access agent manager");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -40,17 +40,19 @@ enterprise_include_once('include/functions_policies.php');
|
|||
|
||||
$search = get_parameter ("search", "");
|
||||
|
||||
if (isset ($_GET["borrar_agente"])) { // if delete agent
|
||||
$id_agente = get_parameter_get ("borrar_agente");
|
||||
$agent_to_delete = (int)get_parameter('borrar_agente');
|
||||
|
||||
if (!empty($agent_to_delete)) {
|
||||
$id_agente = $agent_to_delete;
|
||||
$agent_name = get_agent_name ($id_agente);
|
||||
$id_grupo = dame_id_grupo ($id_agente);
|
||||
if (give_acl ($config["id_user"], $id_grupo, "AW")==1) {
|
||||
$id_agentes[0] = $id_agente;
|
||||
delete_agent ($id_agentes);
|
||||
delete_agent($id_agentes);
|
||||
}
|
||||
else {
|
||||
// NO permissions.
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to delete agent \'$agent_name\'");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -76,14 +76,14 @@ if ($multiple_delete) {
|
|||
$id_grupo = (int) dame_id_grupo ($id_agente);
|
||||
|
||||
if (! give_acl ($config["id_user"], $id_grupo, "AW")) {
|
||||
audit_db($config["id_user"],$_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to delete a module without admin rights");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($id_agent_module_del < 1) {
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "HACK Attempt",
|
||||
pandora_audit("HACK Attempt",
|
||||
"Expected variable from form is not correct");
|
||||
die ("Nice try buddy");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access downtime scheduler");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -21,7 +21,7 @@ require_once ("include/functions_alerts.php");
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert actions");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -22,7 +22,7 @@ require_once ("include/functions_alerts.php");
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -62,7 +62,7 @@ if ($update_command) {
|
|||
$id = (int) get_parameter ('id');
|
||||
$alert = get_alert_command ($id);
|
||||
if ($alert['internal']) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Alert Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ if ($delete_command) {
|
|||
|
||||
// Internal commands cannot be deleted
|
||||
if (get_alert_command_internal ($id)) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -28,7 +28,7 @@ if (! give_acl ($config['id_user'], 0, "LW")) {
|
|||
/* Check if this page is included from a agent edition */
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
@ -81,7 +81,7 @@ if ($create_alert) {
|
|||
|
||||
// Audit the creation only when the alert creation is correct
|
||||
if($id) {
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
||||
pandora_audit("Alert management",
|
||||
"Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ if ($delete_alert) {
|
|||
$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));
|
||||
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
||||
pandora_audit("Alert management",
|
||||
"Deleted alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||
|
||||
$result = delete_alert_agent_module ($id_alert_agent_module);
|
||||
|
|
|
@ -100,7 +100,7 @@ if (is_ajax ()) {
|
|||
}
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -21,7 +21,7 @@ require_once ('include/functions_alerts.php');
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -20,7 +20,7 @@ require_once ("include/functions_alerts.php");
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -228,7 +228,7 @@ if ($id && ! $create_compound) {
|
|||
$id_agent = $compound['id_agent'];
|
||||
$id_group = get_agent_group ($id_agent);
|
||||
if (! give_acl ($config['id_user'], $id_group, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ require_once ('include/functions_alerts.php');
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -21,7 +21,7 @@ print_page_header (__('Database maintenance').' » '.__('Database audit pur
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db ($config['id_user'],$_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Database Management Audit");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -21,7 +21,7 @@ check_login ();
|
|||
print_page_header (__('Database maintenance').' » '.__('Event database cleanup'), "images/god8.png", false, "", true);
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Database Management Event");
|
||||
pandora_audit("ACL Violation", "Trying to access Database Management Event");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ print_page_header (__('Database maintenance').' » '.__('Database informati
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Database Management Info");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -24,7 +24,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Database Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -25,7 +25,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit( "ACL Violation",
|
||||
"Trying to access Database Purge Section");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -21,7 +21,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "DM")) {
|
||||
audit_db($config['id_user'],$_SERVER['REMOTE_ADDR'], "ACL Violation","Trying to access Database Debug Admin section");
|
||||
pandora_audit("ACL Violation","Trying to access Database Debug Admin section");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login();
|
||||
|
||||
if (! give_acl ($config["id_user"], 0, "DM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Database cure section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access extensions list");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -79,7 +79,7 @@ function updateArrowLayers() {
|
|||
<?php
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access map builder");
|
||||
pandora_audit("ACL Violation", "Trying to access map builder");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ require_once ('include/functions_gis.php');
|
|||
require_javascript_file('openlayers.pandora');
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access map builder");
|
||||
pandora_audit("ACL Violation", "Trying to access map builder");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Group Management2");
|
||||
pandora_audit("ACL Violation", "Trying to access Group Management2");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,74 +1,75 @@
|
|||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// 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
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation for version 2.
|
||||
// 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.
|
||||
|
||||
|
||||
global $config;
|
||||
|
||||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", "Trying to access Group Management2");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// 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
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation for version 2.
|
||||
// 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.
|
||||
|
||||
|
||||
|
||||
global $config;
|
||||
|
||||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
pandora_audit("ACL Violation", "Trying to access Group Management2");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
||||
// Header
|
||||
print_page_header (__("Module group management"), "images/god1.png", false, "", true, "");
|
||||
|
||||
// Init vars
|
||||
$icon = "";
|
||||
$name = "";
|
||||
$id_parent = 0;
|
||||
$alerts_disabled = 0;
|
||||
$custom_id = "";
|
||||
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
if ($id_group) {
|
||||
$group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
if ($group) {
|
||||
$name = $group["name"];
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem loading group')."</h3>";
|
||||
echo "</table>";
|
||||
include ("general/footer.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$table->width = '450px';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true);
|
||||
|
||||
|
||||
echo'</span>';
|
||||
echo '<form name="grupo" method="post" action="index.php?sec=gagente&sec2=godmode/groups/modu_group_list">';
|
||||
print_table ($table);
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
if ($id_group) {
|
||||
print_input_hidden ('update_group', 1);
|
||||
print_input_hidden ('id_group', $id_group);
|
||||
print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create_group', 1);
|
||||
print_submit_button (__('Create'), 'crtbutton', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
?>
|
||||
|
||||
|
||||
// Init vars
|
||||
$icon = "";
|
||||
$name = "";
|
||||
$id_parent = 0;
|
||||
$alerts_disabled = 0;
|
||||
$custom_id = "";
|
||||
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
if ($id_group) {
|
||||
$group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
if ($group) {
|
||||
$name = $group["name"];
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem loading group')."</h3>";
|
||||
echo "</table>";
|
||||
include ("general/footer.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$table->width = '450px';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true);
|
||||
|
||||
|
||||
echo'</span>';
|
||||
echo '<form name="grupo" method="post" action="index.php?sec=gagente&sec2=godmode/groups/modu_group_list">';
|
||||
print_table ($table);
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
if ($id_group) {
|
||||
print_input_hidden ('update_group', 1);
|
||||
print_input_hidden ('id_group', $id_group);
|
||||
print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create_group', 1);
|
||||
print_submit_button (__('Create'), 'crtbutton', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
?>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login();
|
||||
|
||||
if (! give_acl($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Group Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -48,7 +48,7 @@ if (is_ajax ()) {
|
|||
}
|
||||
|
||||
if (! give_acl ($config['id_user'], $id_group, "AR")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
echo json_encode (false);
|
||||
return;
|
||||
|
@ -65,7 +65,7 @@ if (is_ajax ()) {
|
|||
$disabled = (int) get_parameter ('disabled', 0);
|
||||
|
||||
if (! give_acl ($config['id_user'], $id_group, "AR")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
echo json_encode (false);
|
||||
return;
|
||||
|
|
|
@ -1,149 +1,150 @@
|
|||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// 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
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation for version 2.
|
||||
// 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.
|
||||
|
||||
|
||||
// Load global vars
|
||||
global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
if (! give_acl($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation",
|
||||
"Trying to access Group Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_ajax ()) {
|
||||
$get_group_json = (bool) get_parameter ('get_group_json');
|
||||
$get_group_agents = (bool) get_parameter ('get_group_agents');
|
||||
|
||||
if ($get_group_json) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
if (! give_acl ($config['id_user'], $id_group, "AR")) {
|
||||
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
echo json_encode (false);
|
||||
return;
|
||||
}
|
||||
|
||||
$group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
|
||||
echo json_encode ($group);
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// 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
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation for version 2.
|
||||
// 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.
|
||||
|
||||
|
||||
|
||||
// Load global vars
|
||||
global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
if (! give_acl($config['id_user'], 0, "PM")) {
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Group Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_ajax ()) {
|
||||
$get_group_json = (bool) get_parameter ('get_group_json');
|
||||
$get_group_agents = (bool) get_parameter ('get_group_agents');
|
||||
|
||||
if ($get_group_json) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
if (! give_acl ($config['id_user'], $id_group, "AR")) {
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
echo json_encode (false);
|
||||
return;
|
||||
}
|
||||
|
||||
$group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
|
||||
echo json_encode ($group);
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Header
|
||||
print_page_header (__("Module groups defined in Pandora"), "images/god1.png", false, "", true, "");
|
||||
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$update_group = (bool) get_parameter ('update_group');
|
||||
$delete_group = (bool) get_parameter ('delete_group');
|
||||
|
||||
/* Create group */
|
||||
if ($create_group) {
|
||||
$name = (string) get_parameter ('name');
|
||||
$icon = (string) get_parameter ('icon');
|
||||
$id_parent = (int) get_parameter ('id_parent');
|
||||
$alerts_disabled = (bool) get_parameter ('alerts_disabled');
|
||||
$custom_id = (string) get_parameter ('custom_id');
|
||||
|
||||
$sql = sprintf ('INSERT INTO tmodule_group (name)
|
||||
VALUES ("%s")',
|
||||
$name);
|
||||
$result = mysql_query ($sql);
|
||||
if ($result) {
|
||||
echo "<h3 class='suc'>".__('Group successfully created')."</h3>";
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem creating group')."</h3>"; }
|
||||
}
|
||||
|
||||
/* Update group */
|
||||
if ($update_group) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
$name = (string) get_parameter ('name');
|
||||
$icon = (string) get_parameter ('icon');
|
||||
$id_parent = (int) get_parameter ('id_parent');
|
||||
$alerts_enabled = (bool) get_parameter ('alerts_enabled');
|
||||
$custom_id = (string) get_parameter ('custom_id');
|
||||
|
||||
$sql = sprintf ('UPDATE tmodule_group SET name = "%s" WHERE id_mg = %d', $name,$id_group);
|
||||
$result = process_sql ($sql);
|
||||
if ($result !== false) {
|
||||
echo "<h3 class='suc'>".__('Group successfully updated')."</h3>";
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem modifying group')."</h3>";
|
||||
}
|
||||
}
|
||||
|
||||
/* Delete group */
|
||||
if ($delete_group) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
// $sql = sprintf ('UPDATE tmodule_group set id_mg = 1 WHERE id_mg = %d', $id_group);
|
||||
// $result = mysql_query ($sql);
|
||||
$sql = sprintf ('DELETE FROM tmodule_group WHERE id_mg = %d', $id_group);
|
||||
$result = mysql_query ($sql);
|
||||
if (! $result)
|
||||
echo "<h3 class='error'>".__('There was a problem deleting group')."</h3>";
|
||||
else
|
||||
echo "<h3 class='suc'>".__('Group successfully deleted')."</h3>";
|
||||
}
|
||||
|
||||
$table->width = '65%';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Delete');
|
||||
$table->align = array ();
|
||||
$table->align[1] = 'center';
|
||||
$table->data = array ();
|
||||
|
||||
//$groups = get_user_groups ($config['id_user']);
|
||||
|
||||
$sql = "SELECT *
|
||||
FROM tmodule_group ";
|
||||
$groups = get_db_all_rows_sql ($sql, true);
|
||||
|
||||
|
||||
foreach ($groups as $id_group ) {
|
||||
$data = array ();
|
||||
|
||||
// $group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
|
||||
// if (!empty ($group["icon"]))
|
||||
// $data[0] = '<img src="images/groups_small/'.$group["icon"].'.png" border="0">';
|
||||
// else
|
||||
// $data[0] = ' ';
|
||||
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.$id_group["name"].'</a></strong>';
|
||||
// $data[2] = get_group_name ($group["parent"]);
|
||||
// $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
print_table ($table);
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group">';
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
print_submit_button (__('Create module group'), 'crt', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
?>
|
||||
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$update_group = (bool) get_parameter ('update_group');
|
||||
$delete_group = (bool) get_parameter ('delete_group');
|
||||
|
||||
/* Create group */
|
||||
if ($create_group) {
|
||||
$name = (string) get_parameter ('name');
|
||||
$icon = (string) get_parameter ('icon');
|
||||
$id_parent = (int) get_parameter ('id_parent');
|
||||
$alerts_disabled = (bool) get_parameter ('alerts_disabled');
|
||||
$custom_id = (string) get_parameter ('custom_id');
|
||||
|
||||
$sql = sprintf ('INSERT INTO tmodule_group (name)
|
||||
VALUES ("%s")',
|
||||
$name);
|
||||
$result = mysql_query ($sql);
|
||||
if ($result) {
|
||||
echo "<h3 class='suc'>".__('Group successfully created')."</h3>";
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem creating group')."</h3>"; }
|
||||
}
|
||||
|
||||
/* Update group */
|
||||
if ($update_group) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
$name = (string) get_parameter ('name');
|
||||
$icon = (string) get_parameter ('icon');
|
||||
$id_parent = (int) get_parameter ('id_parent');
|
||||
$alerts_enabled = (bool) get_parameter ('alerts_enabled');
|
||||
$custom_id = (string) get_parameter ('custom_id');
|
||||
|
||||
$sql = sprintf ('UPDATE tmodule_group SET name = "%s" WHERE id_mg = %d', $name,$id_group);
|
||||
$result = process_sql ($sql);
|
||||
if ($result !== false) {
|
||||
echo "<h3 class='suc'>".__('Group successfully updated')."</h3>";
|
||||
} else {
|
||||
echo "<h3 class='error'>".__('There was a problem modifying group')."</h3>";
|
||||
}
|
||||
}
|
||||
|
||||
/* Delete group */
|
||||
if ($delete_group) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
|
||||
// $sql = sprintf ('UPDATE tmodule_group set id_mg = 1 WHERE id_mg = %d', $id_group);
|
||||
// $result = mysql_query ($sql);
|
||||
$sql = sprintf ('DELETE FROM tmodule_group WHERE id_mg = %d', $id_group);
|
||||
$result = mysql_query ($sql);
|
||||
if (! $result)
|
||||
echo "<h3 class='error'>".__('There was a problem deleting group')."</h3>";
|
||||
else
|
||||
echo "<h3 class='suc'>".__('Group successfully deleted')."</h3>";
|
||||
}
|
||||
|
||||
$table->width = '65%';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Delete');
|
||||
$table->align = array ();
|
||||
$table->align[1] = 'center';
|
||||
$table->data = array ();
|
||||
|
||||
//$groups = get_user_groups ($config['id_user']);
|
||||
|
||||
$sql = "SELECT *
|
||||
FROM tmodule_group ";
|
||||
$groups = get_db_all_rows_sql ($sql, true);
|
||||
|
||||
|
||||
foreach ($groups as $id_group ) {
|
||||
$data = array ();
|
||||
|
||||
// $group = get_db_row ('tmodule_group', 'id_mg', $id_group);
|
||||
|
||||
// if (!empty ($group["icon"]))
|
||||
// $data[0] = '<img src="images/groups_small/'.$group["icon"].'.png" border="0">';
|
||||
// else
|
||||
// $data[0] = ' ';
|
||||
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.$id_group["name"].'</a></strong>';
|
||||
// $data[2] = get_group_name ($group["parent"]);
|
||||
// $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
print_table ($table);
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group">';
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
print_submit_button (__('Create module group'), 'crt', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
?>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive agent deletion section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -44,7 +44,7 @@ if($create_profiles) {
|
|||
$profile_data = get_db_row_filter ("tusuario_perfil", array("id_usuario" => $user, "id_perfil" => $profile, "id_grupo" => $group));
|
||||
// If the profile doesnt exist, we create it
|
||||
if ($profile_data === false) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "User management",
|
||||
pandora_audit("User management",
|
||||
"Added profile for user ".safe_input($user));
|
||||
$return = create_user_profile ($user, $profile, $group);
|
||||
if($return !== false){
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Config Management Admin section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive agent deletion section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive agent deletion section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access agent massive deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -57,7 +57,7 @@ if($delete_profiles) {
|
|||
foreach($users_id as $id_up){
|
||||
$user = (string) get_db_value_filter ('id_usuario', 'tusuario_perfil', array('id_up' => $id_up));
|
||||
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "User management",
|
||||
pandora_audit("User management",
|
||||
"Deleted profile for user ".safe_input($user));
|
||||
|
||||
$return = delete_user_profile ($user, $id_up);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive agent deletion section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive module update");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive operation section");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
check_login ();
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access massive alert deletion");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access SNMP Group Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access SNMO Groups Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'],$_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
global $config;
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Network Profile Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ check_login ();
|
|||
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Network Profile Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation","Trying to access module management");
|
||||
pandora_audit("ACL Violation","Trying to access module management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access graph builder");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -51,7 +51,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access graph builder");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -51,7 +51,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access graph builder");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -51,7 +51,7 @@ if ($config['flash_charts']) {
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access graph builder");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -21,7 +21,7 @@ require_once ('include/functions_custom_graphs.php');
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Inventory Module Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
@ -50,7 +50,7 @@ if ($delete_graph) {
|
|||
echo $result;
|
||||
}
|
||||
else {
|
||||
audit_db ($config['id_user'],$_SERVER['REMOTE_ADDR'], "ACL Violation","Trying to delete a graph from access graph builder");
|
||||
pandora_audit("ACL Violation","Trying to delete a graph from access graph builder");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access map builder wizard");
|
||||
pandora_audit("ACL Violation", "Trying to access map builder wizard");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ if (empty ($layout)) {
|
|||
$layout_group = $layout["id_group"];
|
||||
|
||||
if (! give_acl ($config['id_user'], $layout_group, "AW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access map builder wizard (forget URL parameter)");
|
||||
pandora_audit("ACL Violation", "Trying to access map builder wizard (forget URL parameter)");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -17,7 +17,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -17,7 +17,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -17,7 +17,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -24,7 +24,7 @@ $report = get_db_row ('treport', 'id_report', $id_report);
|
|||
|
||||
// Check ACL on the report to see if user has access to the report.
|
||||
if (! give_acl ($config['id_user'], $report['id_group'], "AR")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation","Trying to access graph reader");
|
||||
pandora_audit("ACL Violation","Trying to access graph reader");
|
||||
include ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -21,7 +21,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Export Server Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Recon Task Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -20,7 +20,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -21,7 +21,7 @@ require_once ("include/functions_servers.php");
|
|||
check_login();
|
||||
|
||||
if (! give_acl ($config["id_user"], 0, "PM")) {
|
||||
audit_db ($config["id_user"], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Server Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -30,7 +30,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Plugin Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -30,7 +30,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "LM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access recon script Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access File manager");
|
||||
pandora_audit("ACL Violation", "Trying to access File manager");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Visual Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Visual Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Visual Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Visual Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Link Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Link Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
pandora_audit("ACL Violation",
|
||||
"Trying to access Link Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ global $config;
|
|||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ if (is_ajax ()) {
|
|||
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Setup Management");
|
||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue