2009-09-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fix the delete the conf and md5 files of agent to delete, before try delete conf and md5 files with name in uppercase. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
15b6362207
commit
7318361ebf
|
@ -1,3 +1,8 @@
|
|||
2009-09-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_db.php: fix the delete the conf and md5 files of agent
|
||||
to delete, before try delete conf and md5 files with name in uppercase.
|
||||
|
||||
2009-09-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_html.php: add second parameter for trace a log in server
|
||||
|
|
|
@ -2823,11 +2823,13 @@ function delete_agent ($id_agents) {
|
|||
|
||||
// Delete remote configuration
|
||||
if (isset ($config["remote_config"])) {
|
||||
$agent_md5 = md5 (get_agent_name ($id_agent), FALSE);
|
||||
$agent_md5 = md5 (get_agent_name ($id_agent,'none'), FALSE);
|
||||
|
||||
if (file_exists ($config["remote_config"]."/md5/".$agent_md5.".md5")) {
|
||||
// Agent remote configuration editor
|
||||
$file_name = $config["remote_config"]."/conf/".$agent_md5.".conf";
|
||||
@unlink ($file_name);
|
||||
|
||||
$file_name = $config["remote_config"]."/md5/".$agent_md5.".md5";
|
||||
@unlink ($file_name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue