diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index aa938d78de..eee6f4fa65 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2007-02-22 Esteban Sanchez + + * pandoradb.sql: Changed a 'utimestamp' field from mediumint to + integer. + 2007-02-22 Sancho Lerena * pandoradb.sql: Fixed some problems in last commit. diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index cf7278a369..d36c9dea01 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -592,17 +592,16 @@ function give_agentmodule_flag($id_agent_module){ // Returns a combo with the groups and defines an array // to put all groups with Agent Read permission // ---------------------------------------------------------------------- - function list_group ($id_user){ - $mis_grupos[]=""; // Define array mis_grupos to put here all groups with Agent Read permission + $mis_grupos=array (); // Define array mis_grupos to put here all groups with Agent Read permission $sql='SELECT id_grupo FROM tgrupo'; $result=mysql_query($sql); while ($row=mysql_fetch_array($result)){ if ($row["id_grupo"] != 1){ if (give_acl($id_user,$row["id_grupo"], "AR") == 1){ + array_push ($mis_grupos, $row["id_grupo"]); //Put in an array all the groups the user belongs echo ""; - $mis_grupos[]=$row["id_grupo"]; //Put in an array all the groups the user belongs } } } @@ -656,4 +655,4 @@ function show_icon_type($id_tipo){ return $pro; } -?> \ No newline at end of file +?> diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index db69630cb8..1bab642b22 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -64,6 +64,7 @@ if (comprueba_login() == 0) { } echo ""; // Group all is always active $mis_grupos=list_group ($id_user); //Print combo for groups and set an array with all groups + echo ""; echo "