2011-08-17 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/modificar_agente.php: added better message when could delete agent with remote config. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5a6d19d553
commit
dd703a652e
|
@ -1,3 +1,8 @@
|
|||
2011-08-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/modificar_agente.php: added better message when could
|
||||
delete agent with remote config.
|
||||
|
||||
2011-08-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_agents.php: check if Pandora can delete the conf and md5
|
||||
|
|
|
@ -76,6 +76,14 @@ ui_print_page_header (__('Agent configuration')." » ".__('Agents defined i
|
|||
|
||||
if (isset($result)) {
|
||||
ui_print_result_message($result, __('Success deleted agent.'), __('Could not be deleted.'));
|
||||
if (isset ($config["remote_config"])) {
|
||||
$agent_md5 = md5 (agents_get_name($id_agente, ""), FALSE);
|
||||
|
||||
if (file_exists ($config["remote_config"]."/md5/".$agent_md5.".md5") ||
|
||||
file_exists ($config["remote_config"]."/conf/".$agent_md5.".conf")) {
|
||||
ui_print_error_message(__('Maybe the files conf or md5 could not be deleted'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Show group selector
|
||||
|
|
Loading…
Reference in New Issue