mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
* godmode/agentes/configurar_agentes.php: Changed interval in conf. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10118 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
35bbf90f0f
commit
0c2d74d586
@ -1,3 +1,8 @@
|
|||||||
|
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* godmode/agentes/configurar_agentes.php: Changed
|
||||||
|
interval in conf.
|
||||||
|
|
||||||
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
|
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* godmode/gis_maps/configure_gis_maps.php: Changed
|
* godmode/gis_maps/configure_gis_maps.php: Changed
|
||||||
|
@ -630,6 +630,7 @@ if ($update_agent) { // if modified some agent paramenter
|
|||||||
$url_description = (string) get_parameter("url_description");
|
$url_description = (string) get_parameter("url_description");
|
||||||
$quiet = (int) get_parameter("quiet", 0);
|
$quiet = (int) get_parameter("quiet", 0);
|
||||||
|
|
||||||
|
$old_interval = db_get_value('intervalo', 'tagente', 'id_agente', $id_agente);
|
||||||
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
||||||
|
|
||||||
if ($fields === false) $fields = array();
|
if ($fields === false) $fields = array();
|
||||||
@ -705,6 +706,11 @@ if ($update_agent) { // if modified some agent paramenter
|
|||||||
__('There was a problem updating the agent'));
|
__('There was a problem updating the agent'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
if ($old_interval != $intervalo) {
|
||||||
|
enterprise_hook('config_agents_update_config_interval', array($id_agente, $intervalo));
|
||||||
|
}
|
||||||
|
|
||||||
$info = 'Group: ' . $grupo . ' Interval: ' . $intervalo .
|
$info = 'Group: ' . $grupo . ' Interval: ' . $intervalo .
|
||||||
' Comments: ' . $comentarios . ' Mode: ' . $modo .
|
' Comments: ' . $comentarios . ' Mode: ' . $modo .
|
||||||
' ID OS: ' . $id_os . ' Disabled: ' . $disabled .
|
' ID OS: ' . $id_os . ' Disabled: ' . $disabled .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user