diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3bd34ede1d..2b5f9b19ea 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2011-04-13 Miguel de Dios + + * include/functions_graph.php, godmode/db/db_info.php, + godmode/db/db_purge.php: added functions "grafico_db_agentes_purge2", + "grafico_db_agentes_paquetes2", "graph_db_agentes_modulos2", and changed + in the code for this functions. + + * include/graphs/functions_pchart.php: in function "pch_bar_graph" fixed + when pass a empty array as color. + 2011-04-13 Sancho Lerena * operation/servers/view_server_detail.php, diff --git a/pandora_console/godmode/db/db_info.php b/pandora_console/godmode/db/db_info.php index 1df99dcb35..5316612325 100644 --- a/pandora_console/godmode/db/db_info.php +++ b/pandora_console/godmode/db/db_info.php @@ -18,6 +18,8 @@ // Load global vars global $config; +require_once ($config["homedir"] . '/include/functions_graph.php'); + if ($config['flash_charts']) { require('include/fgraph.php'); } @@ -42,34 +44,21 @@ if (! check_acl ($config['id_user'], 0, "DM")) { - A more powerful selection (by Agent, by Module, etc). */ - -if ($config['flash_charts']) { - $id_agente=0; - $width=600; - $height=400; - echo grafico_db_agentes_purge ($id_agente, $width, $height); -} else { - echo ''; -} - +echo grafico_db_agentes_purge2(0, 600, 400); echo '
'; echo ''; echo ''; echo '
'; echo '

'.__('Modules per agent').'

'; -if ($config['flash_charts']) { - echo graph_db_agentes_modulos ($width, $height); -} else { - echo '
'; -} + +echo graph_db_agentes_modulos2(600, 250); + echo '

'; echo '

'.__('Packets per agent').'

'; -if ($config['flash_charts']) { - echo grafico_db_agentes_paquetes ($width, $height); -} else { - echo '
'; -} + +echo grafico_db_agentes_paquetes2(700, 300); + echo '
'; echo ''.__('Press here to get database information as text').' ' . print_image("images/down.png", true, array("alt" => "down", "title" => "down")) . '
'; echo '