mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 14:54:52 +02:00
2010-09-13 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/configurar_agente.php: Added local module deletion in conf file to another place where the modules can be deleted. Clean the code too git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3240 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4e57ccf83c
commit
4586412e68
@ -1,3 +1,9 @@
|
|||||||
|
2010-09-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* godmode/agentes/configurar_agente.php: Added local module
|
||||||
|
deletion in conf file to another place where the modules can
|
||||||
|
be deleted. Clean the code too
|
||||||
|
|
||||||
2010-09-13 Sergio Martin <sergio.martin@artica.es>
|
2010-09-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_modules.php: Added the local module
|
* include/functions_modules.php: Added the local module
|
||||||
|
@ -502,6 +502,7 @@ if ($id_agente) {
|
|||||||
|
|
||||||
$update_module = (bool) get_parameter ('update_module');
|
$update_module = (bool) get_parameter ('update_module');
|
||||||
$create_module = (bool) get_parameter ('create_module');
|
$create_module = (bool) get_parameter ('create_module');
|
||||||
|
$delete_module = (bool) get_parameter ('delete_module');
|
||||||
$edit_module = (bool) get_parameter ('edit_module');
|
$edit_module = (bool) get_parameter ('edit_module');
|
||||||
|
|
||||||
// GET DATA for MODULE UPDATE OR MODULE INSERT
|
// GET DATA for MODULE UPDATE OR MODULE INSERT
|
||||||
@ -711,7 +712,7 @@ if ($create_module) {
|
|||||||
|
|
||||||
// MODULE DELETION
|
// MODULE DELETION
|
||||||
// =================
|
// =================
|
||||||
if (isset ($_GET["delete_module"])){ // DELETE agent module !
|
if ($delete_module){ // DELETE agent module !
|
||||||
$id_borrar_modulo = (int) get_parameter_get ("delete_module",0);
|
$id_borrar_modulo = (int) get_parameter_get ("delete_module",0);
|
||||||
$module_data = get_db_row ('tagente_modulo', 'id_agente_modulo', $id_borrar_modulo);
|
$module_data = get_db_row ('tagente_modulo', 'id_agente_modulo', $id_borrar_modulo);
|
||||||
$id_grupo = (int) dame_id_grupo ($id_agente);
|
$id_grupo = (int) dame_id_grupo ($id_agente);
|
||||||
@ -730,6 +731,9 @@ if (isset ($_GET["delete_module"])){ // DELETE agent module !
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enterprise_include_once('include/functions_config_agents.php');
|
||||||
|
enterprise_hook('deleteLocalModuleInConf', array(get_agentmodule_agent($id_borrar_modulo), get_agentmodule_name($id_borrar_modulo)));
|
||||||
|
|
||||||
//Init transaction
|
//Init transaction
|
||||||
$error = 0;
|
$error = 0;
|
||||||
process_sql_begin ();
|
process_sql_begin ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user