mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Add enterprise_hook filter to all config_agents_has_remote_configuration functions/6 - #41
This commit is contained in:
parent
c50879c5a5
commit
c9ab28eb2d
@ -542,7 +542,7 @@ if ($agents !== false) {
|
||||
// Has remote configuration ?
|
||||
if (enterprise_installed()) {
|
||||
enterprise_include_once('include/functions_config_agents.php');
|
||||
if (config_agents_has_remote_configuration($agent["id_agente"])) {
|
||||
if (enterprise_hook('config_agents_has_remote_configuration',$agent["id_agente"])) {
|
||||
echo "<a href='index.php?" .
|
||||
"sec=gagente&" .
|
||||
"sec2=godmode/agentes/configurar_agente&" .
|
||||
|
@ -386,7 +386,7 @@ switch ($moduletype) {
|
||||
$remote_conf = false;
|
||||
if (enterprise_installed()) {
|
||||
enterprise_include_once('include/functions_config_agents.php');
|
||||
$remote_conf = config_agents_has_remote_configuration($id_agente);
|
||||
$remote_conf = enterprise_hook('config_agents_has_remote_configuration',$id_agente);
|
||||
}
|
||||
|
||||
/* Categories is an array containing the allowed module types
|
||||
|
@ -231,7 +231,7 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
|
||||
|
||||
if ($module['id_modulo'] == MODULE_DATA) {
|
||||
if (enterprise_installed()) {
|
||||
if (config_agents_has_remote_configuration($id_agente)) {
|
||||
if (enterprise_hook('config_agents_has_remote_configuration',$id_agente)) {
|
||||
$result = enterprise_hook(
|
||||
'config_agents_copy_agent_module_to_agent',
|
||||
array($id_agent_module, $id_new_module));
|
||||
|
Loading…
x
Reference in New Issue
Block a user