diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 51335058d2..a9751db13d 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1,4 +1,4 @@ -".$lang_label["add_module_no"].""; else echo "

".$lang_label["add_module_ok"]."

"; diff --git a/pandora_console/operation/agentes/estado_grupo.php b/pandora_console/operation/agentes/estado_grupo.php index 76530276c9..81ad59e094 100644 --- a/pandora_console/operation/agentes/estado_grupo.php +++ b/pandora_console/operation/agentes/estado_grupo.php @@ -1,10 +1,21 @@ , 2003-2006 -// Raúl Mateos , 2005-2006 +// Pandora - the Free monitoring system +// ==================================== +// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com +// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es +// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Load global vars require("include/config.php"); @@ -26,7 +37,7 @@ if (comprueba_login() == 0) // Check for Network FLAG change request if (isset($_GET["update_netgroup"])){ if (give_acl($id_user, $_GET["update_netgroup"], "AW")==1){ - $sql = "SELECT * FROM tagente where id_grupo = ".$_GET["update_netgroup"]; + $sql = "SELECT * FROM tagente WHERE id_grupo = ".$_GET["update_netgroup"]; $result=mysql_query($sql); while ($row=mysql_fetch_array($result)){ $id_agente = $row["id_agente"]; @@ -114,7 +125,7 @@ if (comprueba_login() == 0) $ancho = ceil(sqrt($array_index+1)); $real_count =0; // Puedo tener una tabla con mas items en ella que los que realmente debo mostrar, real count cuenta los que voy poniendo hasta llegar a array_index que son los que hay en el array $grupo. echo ""; - for ($table=0;$table < $ancho-1;$table++){ + for ($table=0;$table < $ancho;$table++){ echo ""; for ($table_row=0;$table_row < $ancho;$table_row++){ if ($real_count < $array_index){