From 578874e9a23f00efe1b9094088517a7dc37798a9 Mon Sep 17 00:00:00 2001 From: esanchezm Date: Thu, 22 Feb 2007 16:45:10 +0000 Subject: [PATCH] 2007-02-22 Esteban Sanchez * pandoradb.sql: Changed a 'utimestamp' field from mediumint to integer. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@382 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_db.php | 7 +++---- pandora_console/operation/agentes/estado_agente.php | 5 +++-- pandora_console/pandoradb.sql | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) 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 "