2009-07-15 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/manage_config_remote.php: fix name of colums in query.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-07-15 11:51:52 +00:00
parent bf38eb7d64
commit aab2bdcdda
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2009-07-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/manage_config_remote.php: fix name of colums in query.
2009-07-09 Manuel Arostegui <manuel@todo-linux.com>
* pandora_console.spec: Removed unnecessary dependency.

View File

@ -110,14 +110,15 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
echo '<b>'. __('Source agent').'</b>';
print_help_icon ('duplicateconfig');
echo '<br><br>';
// Show combo with SOURCE agents
if ($id_group > 1)
$sql1 = "SELECT * FROM tagente WHERE id_grupo = $id_group ORDER BY nombre ";
else
$sql1 = "SELECT * FROM tagente WHERE id_group IN ($grouplist) ORDER BY nombre";
echo '<select name="origen" style="width:200px">';
$result=mysql_query($sql1);
$sql1 = "SELECT * FROM tagente WHERE id_grupo IN ($grouplist) ORDER BY nombre";
echo '<select name="origen" style="width:200px">';
$result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){
if (give_acl ($config["id_user"], $row["id_grupo"], "AR")){
$source = $config["remote_config"]."/". md5($row["nombre"]).".conf";
@ -135,7 +136,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
if ($id_group > 1)
$sql1 = "SELECT * FROM tagente WHERE id_grupo = $id_group ORDER BY nombre ";
else
$sql1 = "SELECT * FROM tagente WHERE id_group IN ($grouplist) ORDER BY nombre";
$sql1 = "SELECT * FROM tagente WHERE id_grupo IN ($grouplist) ORDER BY nombre";
$result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){
@ -152,4 +153,4 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
echo '</table>';
}
?>
?>