From a83030b0f036c0f9776d2b8407eba24eae0cb3db Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 29 Mar 2011 15:22:02 +0000 Subject: [PATCH] 2011-03-29 Miguel de Dios * operation/agentes/stat_win.php, godmode/servers/plugin.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 ++++ pandora_console/godmode/servers/plugin.php | 5 ++-- .../operation/agentes/stat_win.php | 27 ++++++++++--------- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 66c4d37ba9..507af9b7b9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-03-29 Miguel de Dios + + * operation/agentes/stat_win.php, godmode/servers/plugin.php: cleaned source + code style. + 2011-03-29 Raul Mateos * pandora_console_upgrade: Use PI_VERSION variable. diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 36a1008ce3..3078902466 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -238,7 +238,7 @@ else { if ($color == 1){ $tdcolor = "datos"; $color = 0; - } + } else { $tdcolor = "datos2"; $color = 1; @@ -260,7 +260,8 @@ else { echo ""; } echo ""; - } else { + } + else { echo '
'. __('There are no plugins in the system'); echo "
"; } diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index fe6492136b..0114bc760e 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -138,22 +138,25 @@ else // if ($config['flash_charts'] && $graph_type != "log4x") { switch ($graph_type) { - case 'sparse': echo grafico_modulo_sparse ($id, $period, $draw_events, $width, $height, - $label, $unit_name, $draw_alerts, $avg_only, $pure, $date, $baseline); - break; + case 'sparse': + echo grafico_modulo_sparse ($id, $period, $draw_events, $width, $height, + $label, $unit_name, $draw_alerts, $avg_only, $pure, $date, $baseline); + break; case 'boolean': echo grafico_modulo_boolean ($id, $period, $draw_events, $width, $height, $label, $unit_name, $draw_alerts, 1, $pure, $date); break; - case 'string': echo grafico_modulo_string ($id, $period, $draw_events, $width, $height, - $label, $unit_name, $draw_alerts, 1, $pure, $date, 1); - break; - - case 'log4x': echo grafico_modulo_log4x ($id, $period, $draw_events, $width, $height, - $label, $unit_name, $draw_alerts, 1, $pure, $date, 1); - break; - - default: echo fs_error_image ('../images'); + case 'string': + echo grafico_modulo_string ($id, $period, $draw_events, $width, $height, + $label, $unit_name, $draw_alerts, 1, $pure, $date, 1); + break; + case 'log4x': + echo grafico_modulo_log4x ($id, $period, $draw_events, $width, $height, + $label, $unit_name, $draw_alerts, 1, $pure, $date, 1); + break; + default: + echo fs_error_image ('../images'); + break; } } else {