2009-03-17 16:15:55 +01:00
< ? php
2021-02-12 11:28:13 +01:00
/**
* Main view for Massive Operations
*
* @ category Configuration
* @ package Pandora FMS
* @ subpackage Massive Operations
* @ version 1.0 . 0
* @ license See below
*
* ______ ___ _______ _______ ________
2023-06-08 12:42:10 +02:00
* | __ \ .-----.--.--.--| |.-----.----.-----. | ___ | | | __ |
* | __ /| _ | | _ || _ | _ | _ | | ___ | | __ |
2021-02-12 11:28:13 +01:00
* | ___ | | ___ . _ | __ | __ | _____ || _____ | __ | | ___ . _ | | ___ | | __ | _ | __ | _______ |
*
* ============================================================================
2023-06-08 11:53:13 +02:00
* Copyright ( c ) 2005 - 2023 Pandora FMS
2023-06-08 13:19:01 +02:00
* Please see https :// pandorafms . com / community / for full contribution list
2021-02-12 11:28:13 +01:00
* 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 .
* ============================================================================
*/
// Begin.
2019-01-30 16:18:44 +01:00
check_login ();
2022-01-24 12:19:09 +01:00
global $config ;
2019-01-30 16:18:44 +01:00
if ( ! check_acl ( $config [ 'id_user' ], 0 , 'AW' )) {
db_pandora_audit (
2022-01-20 10:55:23 +01:00
AUDIT_LOG_ACL_VIOLATION ,
2019-01-30 16:18:44 +01:00
'Trying to access massive operation section'
);
include 'general/noaccess.php' ;
return ;
2009-03-17 16:15:55 +01:00
}
2022-01-24 12:19:09 +01:00
require_once $config [ 'homedir' ] . '/include/functions_agents.php' ;
require_once $config [ 'homedir' ] . '/include/functions_alerts.php' ;
require_once $config [ 'homedir' ] . '/include/functions_modules.php' ;
require_once $config [ 'homedir' ] . '/include/functions_massive_operations.php' ;
2019-01-30 16:18:44 +01:00
enterprise_include ( 'godmode/massive/massive_operations.php' );
$tab = ( string ) get_parameter ( 'tab' , 'massive_agents' );
2020-05-29 11:37:06 +02:00
$option = ( string ) get_parameter ( 'option' );
2019-01-30 16:18:44 +01:00
2022-01-24 12:19:09 +01:00
$url = 'index.php?sec=gmassive&sec2=godmode/massive/massive_operations' ;
if ( is_metaconsole () === true ) {
$url = 'index.php?sec=advanced&sec2=advanced/massive_operations&tab=massive_agents&pure=0' ;
}
2019-01-30 16:18:44 +01:00
$options_alerts = [
'add_alerts' => __ ( 'Bulk alert add' ),
'delete_alerts' => __ ( 'Bulk alert delete' ),
'add_action_alerts' => __ ( 'Bulk alert actions add' ),
'delete_action_alerts' => __ ( 'Bulk alert actions delete' ),
'enable_disable_alerts' => __ ( 'Bulk alert enable/disable' ),
'standby_alerts' => __ ( 'Bulk alert setting standby' ),
];
$options_agents = [
'edit_agents' => __ ( 'Bulk agent edit' ),
'delete_agents' => __ ( 'Bulk agent delete' ),
];
2020-09-23 11:36:15 +02:00
if ( check_acl ( $config [ 'id_user' ], 0 , 'UM' )) {
2023-06-19 13:45:20 +02:00
$options_users [ 'edit_users' ] = __ ( 'Edit users in bulk' );
2022-10-24 12:03:18 +02:00
if ( is_metaconsole () === false ) {
$options_users = [
'add_profiles' => __ ( 'Bulk profile add' ),
'delete_profiles' => __ ( 'Bulk profile delete' ),
];
}
2019-01-30 16:18:44 +01:00
} else {
$options_users = [];
2011-07-18 15:14:33 +02:00
}
2010-09-03 09:20:39 +02:00
2019-01-30 16:18:44 +01:00
$options_modules = [
'edit_modules' => __ ( 'Bulk module edit' ),
'copy_modules' => __ ( 'Bulk module copy' ),
2019-02-04 11:00:50 +01:00
'delete_modules' => __ ( 'Bulk module delete' ),
2019-01-30 16:18:44 +01:00
];
2010-08-17 19:06:27 +02:00
2019-01-30 16:18:44 +01:00
$options_plugins = [
'edit_plugins' => __ ( 'Bulk plugin edit' ),
];
2015-06-29 18:45:15 +02:00
2019-01-30 16:18:44 +01:00
if ( ! check_acl ( $config [ 'id_user' ], 0 , 'AW' )) {
unset ( $options_modules [ 'edit_modules' ]);
2013-07-25 13:00:22 +02:00
}
2019-01-30 16:18:44 +01:00
$options_policies = [];
2010-08-17 19:06:27 +02:00
$policies_options = enterprise_hook ( 'massive_policies_options' );
2013-08-06 14:53:39 +02:00
if ( $policies_options != ENTERPRISE_NOT_HOOK ) {
2022-12-01 09:40:46 +01:00
$policies_options = array_unique ( $policies_options );
2019-01-30 16:18:44 +01:00
$options_policies = array_merge ( $options_policies , $policies_options );
2010-08-17 19:06:27 +02:00
}
2019-01-30 16:18:44 +01:00
$options_snmp = [];
2013-08-06 14:53:39 +02:00
$snmp_options = enterprise_hook ( 'massive_snmp_options' );
if ( $snmp_options != ENTERPRISE_NOT_HOOK ) {
2022-12-01 09:40:46 +01:00
$snmp_options = array_reverse ( $snmp_options );
2019-01-30 16:18:44 +01:00
$options_snmp = array_merge ( $options_snmp , $snmp_options );
2013-08-06 14:53:39 +02:00
}
2019-01-30 16:18:44 +01:00
$options_satellite = [];
2014-05-08 09:54:51 +02:00
$satellite_options = enterprise_hook ( 'massive_satellite_options' );
if ( $satellite_options != ENTERPRISE_NOT_HOOK ) {
2019-01-30 16:18:44 +01:00
$options_satellite = array_merge ( $options_satellite , $satellite_options );
2014-05-08 09:54:51 +02:00
}
2020-07-06 19:35:31 +02:00
2022-01-24 12:19:09 +01:00
if ( in_array ( $option , array_keys ( $options_alerts )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_alerts' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_agents )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_agents' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_users )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_users' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_modules )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_modules' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_policies )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_policies' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_snmp )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_snmp' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_satellite )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_satellite' ;
2022-01-24 12:19:09 +01:00
} else if ( in_array ( $option , array_keys ( $options_plugins )) === true ) {
2019-01-30 16:18:44 +01:00
$tab = 'massive_plugins' ;
2020-05-29 11:37:06 +02:00
}
2022-01-24 12:19:09 +01:00
if ( $tab === 'massive_agents' && empty ( $option ) === true ) {
2020-05-29 11:37:06 +02:00
$option = 'edit_agents' ;
2022-01-24 12:19:09 +01:00
if ( is_metaconsole () === true ) {
$option = 'delete_agents' ;
}
2020-05-29 11:37:06 +02:00
}
if ( $tab == 'massive_modules' && $option == '' ) {
$option = 'edit_modules' ;
}
if ( $tab == 'massive_policies' && $option == '' ) {
$option = 'edit_policy_modules' ;
}
switch ( $option ) {
case 'edit_agents' :
$help_header = 'massive_agents_tab' ;
break ;
case 'edit_modules' :
$help_header = 'massive_modules_tab' ;
break ;
case 'edit_policy_modules' :
$help_header = 'massive_policies_tab' ;
break ;
default :
$help_header = '' ;
break ;
2010-08-17 19:06:27 +02:00
}
2013-08-06 14:53:39 +02:00
switch ( $tab ) {
2019-01-30 16:18:44 +01:00
case 'massive_alerts' :
$options = $options_alerts ;
break ;
2010-08-17 19:06:27 +02:00
2019-01-30 16:18:44 +01:00
case 'massive_agents' :
$options = $options_agents ;
break ;
case 'massive_modules' :
$options = $options_modules ;
break ;
case 'massive_users' :
$options = $options_users ;
break ;
2010-08-17 19:06:27 +02:00
2019-01-30 16:18:44 +01:00
case 'massive_policies' :
$options = $options_policies ;
break ;
2015-06-23 12:15:09 +02:00
2019-01-30 16:18:44 +01:00
case 'massive_snmp' :
$options = $options_snmp ;
break ;
2015-06-23 12:15:09 +02:00
2019-01-30 16:18:44 +01:00
case 'massive_satellite' :
$options = $options_satellite ;
break ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2019-01-30 16:18:44 +01:00
case 'massive_plugins' :
$options = $options_plugins ;
break ;
2019-05-06 16:59:31 +02:00
default :
// Default.
break ;
2019-01-30 16:18:44 +01:00
}
2019-05-06 16:59:31 +02:00
// Set the default option of the category.
2019-01-30 16:18:44 +01:00
if ( $option == '' ) {
$option = array_shift ( array_keys ( $options ));
}
2013-08-06 14:53:39 +02:00
2019-01-30 16:18:44 +01:00
$alertstab = [
2022-01-24 12:19:09 +01:00
'text' => '<a href="' . $url . '&tab=massive_alerts">' . html_print_image (
2023-03-10 12:48:31 +01:00
'images/alert@svg.svg' ,
2019-01-30 16:18:44 +01:00
true ,
2021-03-11 15:40:23 +01:00
[
'title' => __ ( 'Alerts operations' ),
2023-03-22 14:21:56 +01:00
'class' => 'invert_filter main_menu_icon' ,
2021-03-11 15:40:23 +01:00
]
2021-10-26 14:21:40 +02:00
) . '</a>' ,
'active' => $tab == 'massive_alerts' ,
2019-01-30 16:18:44 +01:00
];
$userstab = [
2022-01-24 12:19:09 +01:00
'text' => '<a href="' . $url . '&tab=massive_users">' . html_print_image (
2023-03-10 12:48:31 +01:00
'images/user.svg' ,
2019-01-30 16:18:44 +01:00
true ,
2021-03-11 15:40:23 +01:00
[
'title' => __ ( 'Users operations' ),
2023-03-22 14:21:56 +01:00
'class' => 'invert_filter main_menu_icon' ,
2021-03-11 15:40:23 +01:00
]
2021-10-26 14:21:40 +02:00
) . '</a>' ,
'active' => $tab == 'massive_users' ,
2019-01-30 16:18:44 +01:00
];
$agentstab = [
2022-01-24 12:19:09 +01:00
'text' => '<a href="' . $url . '&tab=massive_agents">' . html_print_image (
2023-03-10 12:48:31 +01:00
'images/agents@svg.svg' ,
2019-01-30 16:18:44 +01:00
true ,
2021-03-11 15:40:23 +01:00
[
'title' => __ ( 'Agents operations' ),
2023-03-22 14:21:56 +01:00
'class' => 'invert_filter main_menu_icon' ,
2021-03-11 15:40:23 +01:00
]
2021-10-26 14:21:40 +02:00
) . '</a>' ,
'active' => $tab == 'massive_agents' ,
2019-01-30 16:18:44 +01:00
];
2022-01-24 12:19:09 +01:00
$modulestab = [
'text' => '<a href="' . $url . '&tab=massive_modules">' . html_print_image (
2023-03-10 12:48:31 +01:00
'images/modules@svg.svg' ,
2022-01-24 12:19:09 +01:00
true ,
[
'title' => __ ( 'Modules operations' ),
2023-03-22 14:21:56 +01:00
'class' => 'invert_filter main_menu_icon' ,
2022-01-24 12:19:09 +01:00
]
) . '</a>' ,
'active' => $tab == 'massive_modules' ,
];
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
$pluginstab = [
'text' => '<a href="' . $url . '&tab=massive_plugins">' . html_print_image (
2023-03-10 12:48:31 +01:00
'images/plugins@svg.svg' ,
2022-01-24 12:19:09 +01:00
true ,
[
'title' => __ ( 'Plugins operations' ),
2023-03-22 14:21:56 +01:00
'class' => 'invert_filter main_menu_icon' ,
2022-01-24 12:19:09 +01:00
]
) . '</a>' ,
'active' => $tab == 'massive_plugins' ,
];
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
$policiestab = enterprise_hook ( 'massive_policies_tab' );
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
if ( $policiestab == ENTERPRISE_NOT_HOOK ) {
$policiestab = '' ;
}
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
$snmptab = enterprise_hook ( 'massive_snmp_tab' );
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
if ( $snmptab == ENTERPRISE_NOT_HOOK ) {
$snmptab = '' ;
}
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
$satellitetab = enterprise_hook ( 'massive_satellite_tab' );
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
if ( $satellitetab == ENTERPRISE_NOT_HOOK ) {
$satellitetab = '' ;
}
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
$onheader = [];
$onheader [ 'massive_agents' ] = $agentstab ;
$onheader [ 'massive_modules' ] = $modulestab ;
$onheader [ 'massive_plugins' ] = $pluginstab ;
if ( check_acl ( $config [ 'id_user' ], 0 , 'UM' )) {
$onheader [ 'user_agents' ] = $userstab ;
}
$onheader [ 'massive_alerts' ] = $alertstab ;
$onheader [ 'policies' ] = $policiestab ;
$onheader [ 'snmp' ] = $snmptab ;
$onheader [ 'satellite' ] = $satellitetab ;
$onheader [ 'services' ] = $servicestab ;
2023-03-21 17:02:03 +01:00
2022-01-24 12:19:09 +01:00
// Header.
2023-03-22 14:21:56 +01:00
if ( is_metaconsole () === false ) {
ui_print_standard_header (
__ ( 'Bulk operations' ) . ' - ' . $options [ $option ],
'images/gm_massive_operations.png' ,
false ,
$help_header ,
false ,
2023-03-21 17:02:03 +01:00
[
2023-03-22 14:21:56 +01:00
$agentstab ,
$modulestab ,
$pluginstab ,
$userstab ,
$alertstab ,
$policiestab ,
$snmptab ,
$satellitetab ,
$servicestab ,
2023-03-21 17:02:03 +01:00
],
[
2023-03-22 14:21:56 +01:00
[
'link' => '' ,
'label' => __ ( 'Configuration' ),
],
[
'link' => '' ,
'label' => __ ( 'Bulk operations' ),
],
]
);
} else {
ui_print_standard_header (
__ ( 'Bulk operations' ) . ' - ' . $options [ $option ],
'images/gm_massive_operations.png' ,
false ,
$help_header ,
false ,
[
$userstab ,
$agentstab ,
2023-03-21 17:02:03 +01:00
],
2023-03-22 14:21:56 +01:00
[
[
'link' => '' ,
'label' => __ ( 'Configuration' ),
],
[
'link' => '' ,
'label' => __ ( 'Bulk operations' ),
],
]
);
}
2023-03-21 17:02:03 +01:00
2022-01-24 12:19:09 +01:00
// Checks if the PHP configuration is correctly.
if (( get_cfg_var ( 'max_execution_time' ) != 0 )
|| ( get_cfg_var ( 'max_input_time' ) != - 1 )
) {
echo '<div id="notify_conf" class="notify">' ;
echo __ ( 'In order to perform massive operations, PHP needs a correct configuration in timeout parameters. Please, open your PHP configuration file (php.ini) for example: <i>sudo vi /etc/php5/apache2/php.ini;</i><br> And set your timeout parameters to a correct value: <br><i> max_execution_time = 0</i> and <i>max_input_time = -1</i>' );
echo '</div>' ;
}
// Catch all submit operations in this view to display Wait banner.
$submit_action = get_parameter ( 'go' );
$submit_update = get_parameter ( 'updbutton' );
$submit_del = get_parameter ( 'del' );
$submit_template_disabled = get_parameter ( 'id_alert_template_disabled' );
$submit_template_enabled = get_parameter ( 'id_alert_template_enabled' );
$submit_template_not_standby = get_parameter ( 'id_alert_template_not_standby' );
$submit_template_standby = get_parameter ( 'id_alert_template_standby' );
$submit_add = get_parameter ( 'crtbutton' );
// Waiting spinner.
ui_print_spinner ( __ ( 'Loading' ));
// Modal for show messages.
html_print_div (
[
'id' => 'massive_modal' ,
'content' => '' ,
]
);
// Load common JS files.
ui_require_javascript_file ( 'massive_operations' );
2021-03-11 15:40:23 +01:00
2022-01-24 12:19:09 +01:00
?>
2011-11-10 20:19:38 +01:00
< script language = " javascript " type = " text/javascript " >
2021-02-12 11:28:13 +01:00
/* <![CDATA[ */
2019-01-30 16:18:44 +01:00
$ ( document ) . ready ( function () {
2021-02-12 11:28:13 +01:00
$ ( '#button-go' ) . click ( function ( e ) {
var limitParametersMassive = < ? php echo $config [ 'limit_parameters_massive' ]; ?> ;
var thisForm = e . target . form . id ;
var get_parameters_count = window . location . href . slice (
window . location . href . indexOf ( '?' ) + 1 ) . split ( '&' ) . length ;
var post_parameters_count = $ ( '#' + thisForm ) . serializeArray () . length ;
var totalCount = get_parameters_count + post_parameters_count ;
var contents = {};
contents . html = '<?php echo __(' No changes have been made because they exceed the maximum allowed ( % d ) . Make fewer changes or contact the administrator . ', $config[' limit_parameters_massive ']); ?>' ;
contents . title = '<?php echo __(' Massive operations '); ?>' ;
contents . question = '<?php echo __(' Are you sure ? '); ?>' ;
contents . ok = '<?php echo __(' OK '); ?>' ;
contents . cancel = '<?php echo __(' Cancel '); ?>' ;
var operation = massiveOperationValidation ( contents , totalCount , limitParametersMassive , thisForm );
if ( operation == false ) {
2019-01-30 16:18:44 +01:00
return false ;
2021-02-12 11:28:13 +01:00
}
2019-01-30 16:18:44 +01:00
});
});
2021-02-12 11:28:13 +01:00
/* ]]> */
2011-11-10 20:19:38 +01:00
</ script >
< ? php
2022-01-24 12:19:09 +01:00
if ( is_management_allowed () === false ) {
2021-09-23 11:16:48 +02:00
if ( is_metaconsole () === false ) {
2022-01-24 12:19:09 +01:00
$text_warning = '<a target="_blank" href="' . ui_get_meta_url (
2021-09-23 11:16:48 +02:00
'index.php?sec=monitoring&sec2=monitoring/wizard/wizard'
) . '">' . __ ( 'metaconsole' ) . '</a>' ;
} else {
2022-01-24 12:19:09 +01:00
$text_warning = __ ( 'any node' );
2021-09-23 11:16:48 +02:00
}
2023-06-07 13:32:38 +02:00
if ( $option == 'delete_agents' ) {
ui_print_warning_message (
__ (
'This node is configured with centralized mode. To delete agents go to %s' ,
$text_warning
)
);
}
2020-03-20 12:34:58 +01:00
}
2023-03-27 11:10:51 +02:00
$tip = '' ;
if ( $option === 'edit_agents' || $option === 'edit_modules' ) {
$tip = ui_print_help_tip ( __ ( 'The blank fields will not be updated' ), true );
}
2023-03-31 13:37:43 +02:00
global $SelectAction ;
$SelectAction = '<form id="form_necesario" method="post" id="form_options" action="' . $url . '">' ;
2023-03-27 11:10:51 +02:00
$SelectAction .= '<span class="mrgn_lft_10px mrgn_right_10px">' . _ ( 'Action' ) . '</span>' ;
$SelectAction .= html_print_select (
2019-01-30 16:18:44 +01:00
$options ,
'option' ,
$option ,
'this.form.submit()' ,
'' ,
0 ,
2023-03-27 11:10:51 +02:00
true ,
2019-01-30 16:18:44 +01:00
false ,
false
2023-03-27 11:10:51 +02:00
) . $tip ;
2019-01-30 16:18:44 +01:00
2023-03-27 11:10:51 +02:00
$SelectAction .= '</form>' ;
2009-03-17 16:15:55 +01:00
2010-08-17 19:06:27 +02:00
switch ( $option ) {
2019-01-30 16:18:44 +01:00
case 'delete_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_delete_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'add_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_add_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'delete_action_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_delete_action_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'add_action_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_add_action_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'enable_disable_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_enable_disable_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'standby_alerts' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_standby_alerts.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'add_profiles' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_add_profiles.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'delete_profiles' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_delete_profiles.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'delete_agents' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_delete_agents.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'edit_agents' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_edit_agents.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'delete_modules' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_delete_modules.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'edit_modules' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_edit_modules.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'copy_modules' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_copy_modules.php' ;
2019-01-30 16:18:44 +01:00
break ;
case 'edit_plugins' :
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_edit_plugins.php' ;
2019-01-30 16:18:44 +01:00
break ;
2022-09-30 14:12:18 +02:00
case 'edit_users' :
include_once $config [ 'homedir' ] . '/godmode/massive/massive_edit_users.php' ;
break ;
2019-01-30 16:18:44 +01:00
default :
if ( ! enterprise_hook ( 'massive_operations' , [ $option ])) {
2022-01-24 12:19:09 +01:00
include_once $config [ 'homedir' ] . '/godmode/massive/massive_config.php' ;
2019-01-30 16:18:44 +01:00
}
break ;
2009-03-17 16:15:55 +01:00
}