diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 03a31a51ce..40e4f3a707 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2008-09-17 Evi Vanoost + + * operation/visual_console/render_view.php: Removed short tags. + Used new functions for login check. Removed unnecessary global + + * operation/agentes/estado_alertas.php: Fixed a minor bug + + * godmode/reporting/map_builder.php: Removed short tags + 2008-09-16 Evi Vanoost * operation/agentes/estado_alertas.php: Fixed a few bugs and made it diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index bcb643578f..4a6f6b8cc1 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -451,7 +451,7 @@ function agent_changed (event, id_agent, selected) { id_agent = this.value; $('#form_layout_data_editor #module').attr ('disabled', 1); $('#form_layout_data_editor #module').empty (); - $('#form_layout_data_editor #module').append (new Option ("...", 0)); + $('#form_layout_data_editor #module').append (new Option ("...", 0)); jQuery.post ('ajax.php', {page: "operation/agentes/ver_agente", get_agent_modules_json: 1, @@ -554,7 +554,7 @@ $(document).ready (function () { $("#form_layout_data_editor #hidden-update_layout_data").attr ('value', 1); $("#form_layout_data_editor #hidden-create_layout_data").attr ('value', 0); $("#form_layout_data_editor #hidden-id_layout_data").attr ('value', id); - $("#form_layout_data_editor #submit-create_layout_data_button").attr ('value', "").removeClass ('wand').addClass ('upd'); + $("#form_layout_data_editor #submit-create_layout_data_button").attr ('value', "").removeClass ('wand').addClass ('upd'); $("#form_layout_data_editor #text-label_color").attr ('value', data['label_color']); $(".ColorPickerDivSample").css ('background-color', data['label_color']); agent_changed (null, data['id_agent'], data['id_agente_modulo']); diff --git a/pandora_console/operation/agentes/estado_alertas.php b/pandora_console/operation/agentes/estado_alertas.php index 214dac2ffa..f12caa2ec2 100644 --- a/pandora_console/operation/agentes/estado_alertas.php +++ b/pandora_console/operation/agentes/estado_alertas.php @@ -201,7 +201,7 @@ if (isset($_GET["id_agente"])){ $table->data[$idx][4] = human_time_comparation ($data["last_fired"]); } $table->data[$idx][5] = $data["times_fired"]; - $tbl_idx++; //increment the index counter + $idx++; //increment the index counter } //end foreach (data) } //end foreach (agent) if (!empty ($result) && !empty ($table->data)) { diff --git a/pandora_console/operation/visual_console/render_view.php b/pandora_console/operation/visual_console/render_view.php index 62b72fb414..765ab2b9f6 100644 --- a/pandora_console/operation/visual_console/render_view.php +++ b/pandora_console/operation/visual_console/render_view.php @@ -16,15 +16,10 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - // Login check -global $config; -global $REMOTE_ADDR; - require ('include/functions_visual_map.php'); -if (comprueba_login () != 0) { +if (check_login () != 0) { audit_db ($config["id_user"],$REMOTE_ADDR, "ACL Violation","Trying to access graph builder"); include ("general/noaccess.php"); exit; @@ -111,15 +106,15 @@ echo ""; - +