".$lang_label["datacopy"].""; // Initial checkings // if selected more than 0 agents $destino = $_POST["destino"]; if (count($destino) <= 0){ echo "

ERROR: ".$lang_label["noagents_cp"]."

"; echo ""; include ("general/footer.php"); exit; } // Source $id_origen = $_POST["origen"]; // Copy files for ($a=0;$a
".$lang_label["copyage"]." [".$agent_name_src."] -> [".$agent_name_dst."]"; $source = $config["remote_config"]."/".md5($agent_name_src); $destination = $config["remote_config"]."/".md5($agent_name_dst); copy ( $source.".md5", $destination.".md5" ); copy ( $source.".conf", $destination.".conf" ); } // for each destination agent } //end if copy modules or alerts // ============ // Form view // ============ } else { // title echo '

'.lang_string ("agent_conf"). '>'. lang_string ("config_manage").'

'; echo '
'; echo ""; // Source group echo ''; echo '
'. lang_string ("Source group"). '

'; echo ''; echo '  '; echo ''; echo '

'; // Source agent echo ''. lang_string ("source_agent").'

'; // Show combo with SOURCE agents if ($id_group != 0) $sql1 = "SELECT * FROM tagente WHERE id_grupo = $id_group ORDER BY nombre "; else $sql1 = 'SELECT * FROM tagente ORDER BY nombre'; echo ''; echo '  '; echo ''; echo '

'; // Destination agent echo '
'; echo ''.$lang_label["toagent"].'

'; echo "'; // Form buttons echo '
'; echo ''; echo '
'; echo '
'; } ?>