diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index d748cf1d4a..b408ea2a3c 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -140,6 +140,7 @@ if ($disk_conf_delete) { echo '
'; +$table = new StdClass; $table->width = '98%'; $table->class = "databox_color"; @@ -274,6 +275,7 @@ $table->data[7][1] = html_print_input_text ('comentarios', $comentarios, html_print_table ($table); unset($table); +$table = new StdClass; $table->width = '98%'; $table->class = "databox_color"; @@ -388,6 +390,7 @@ $table->data[7][1] = html_print_checkbox('quiet', 1, $quiet, true); ui_toggle(html_print_table ($table, true), __('Advanced options')); unset($table); +$table = new StdClass; $table->width = '98%'; $table->class = "databox_color"; diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 21cd5860e6..4dc3707758 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -494,6 +494,7 @@ if ($paginate_module) { ui_pagination($total_modules, $url); } +$table = new StdClass; $table->width = '98%'; $table->head = array (); $table->head[0] = __('Name') . ' ' . diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 2b22296896..1c6b867322 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -113,6 +113,7 @@ if (strstr($page, "policy_modules") === false && $id_agent_module) { $update_module_id = (int) get_parameter_get ('update_module'); +$table_simple = new StdClass; $table_simple->id = 'simple'; $table_simple->width = '98%'; $table_simple->class = 'databox_color'; @@ -297,6 +298,7 @@ else { } /* Advanced form part */ +$table_advanced = new StdClass; $table_advanced->id = 'advanced'; $table_advanced->width = '98%'; $table_advanced->class = 'databox_color'; diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 794df41252..54bb76e492 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -137,6 +137,7 @@ if ($copy_layout) { } +$table = new StdClass; $table->width = '98%'; $table->data = array (); $table->head = array (); diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index d889559e67..e5e5a049eb 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -763,6 +763,7 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret echo '
' . __('No events') . '
'; } else { + $table = new StdClass; $table->id = 'latest_events_table'; $table->cellpadding = 4; $table->cellspacing = 4; diff --git a/pandora_console/include/functions_snmp_browser.php b/pandora_console/include/functions_snmp_browser.php index 6888d58ac7..464263c092 100644 --- a/pandora_console/include/functions_snmp_browser.php +++ b/pandora_console/include/functions_snmp_browser.php @@ -487,6 +487,7 @@ function snmp_browser_print_oid ($oid = array(), $custom_action = '', function snmp_browser_print_container ($return = false, $width = '95%', $height = '500px', $display = '') { // Target selection + $table = new StdClass; $table->width = '100%'; $table->size = array (); $table->data = array (); @@ -511,6 +512,7 @@ function snmp_browser_print_container ($return = false, $width = '95%', $height $table->cellstyle[0][4] = 'vertical-align: bottom;'; // SNMP v3 options + $table3 = new StdClass; $table3->width = '98%'; $table3->valign[0] = 'top'; @@ -534,6 +536,7 @@ function snmp_browser_print_container ($return = false, $width = '95%', $height 'authNoPriv' => __('Auth and not privacy method'), 'authPriv' => __('Auth and privacy method')), 'snmp3_browser_security_level', '', '', '', '', true); // Search tools + $table2 = new StdClass; $table2->width = '100%'; $table2->size = array (); $table2->data = array (); diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php index 812f5b7347..5be1d26145 100644 --- a/pandora_console/operation/agentes/alerts_status.php +++ b/pandora_console/operation/agentes/alerts_status.php @@ -340,6 +340,7 @@ if ($print_agent) { ui_toggle(printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_standby, true),__('Alert control filter'), __('Toggle filter(s)')); } +$table = new StdClass; $table->width = '100%'; $table->class = "databox"; diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index b49cd7621f..4d96597c6a 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -403,6 +403,7 @@ ui_pagination ($total_agents, ui_get_url_refresh (array ('group_id' => $group_id, 'recursion' => $recursion, 'search' => $search, 'sort_field' => $sortField, 'sort' => $sort, 'status' => $status))); // Show data. +$table = new StdClass; $table->cellpadding = 4; $table->cellspacing = 4; $table->width = "98%"; diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php index b96fc13080..68695d387e 100644 --- a/pandora_console/operation/agentes/estado_generalagente.php +++ b/pandora_console/operation/agentes/estado_generalagente.php @@ -58,6 +58,7 @@ if (! check_acl ($config["id_user"], $agent["id_grupo"], "AR") && !$is_extra) { } // START: TABLE AGENT BUILD +$table_agent = new StdClass; $table_agent->id = 'agent_details_main'; $table_agent->width = '100%'; $table_agent->cellspacing = 4; @@ -176,6 +177,7 @@ $table_agent->rowclass[] = ''; // END: TABLE AGENT BUILD // START: TABLE CONTACT BUILD +$table_contact = new StdClass; $table_contact->id = 'agent_contact_main'; $table_contact->width = '100%'; $table_contact->cellspacing = 4; @@ -219,6 +221,7 @@ $table_contact->data[] = $data; // END: TABLE CONTACT BUILD // START: TABLE DATA BUILD +$table_data = new StdClass; $table_data->id = 'agent_data_main'; $table_data->width = '100%'; $table_data->cellspacing = 4; @@ -347,6 +350,7 @@ $last_incident = db_get_row_sql(" if ($last_incident != false) { + $table_incident = new StdClass; $table_incident->id = 'agent_incident_main'; $table_incident->width = '100%'; $table_incident->cellspacing = 4; @@ -391,6 +395,7 @@ if (!empty($network_interfaces_by_agents) && !empty($network_interfaces_by_agent } if (!empty($network_interfaces)) { + $table_interface = new stdClass(); $table_interface->id = 'agent_interface_info'; $table_interface->class = 'databox'; @@ -459,7 +464,7 @@ if (!empty($network_interfaces)) { // END: TABLE INTERFACES -$table = null; +$table = new StdClass; $table->id = 'agent_details'; $table->width = '98%'; $table->cellspacing = 4; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index 44e19ca3a1..fe83c6acaf 100644 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -60,6 +60,7 @@ echo 'class = ""; $table->cellpadding = 2; diff --git a/pandora_console/operation/search_agents.php b/pandora_console/operation/search_agents.php index e1b7afafd4..9478c44e42 100755 --- a/pandora_console/operation/search_agents.php +++ b/pandora_console/operation/search_agents.php @@ -34,6 +34,7 @@ if (!$agents || !$searchAgents) { } } else { + $table = new StdClass; $table->cellpadding = 4; $table->cellspacing = 4; $table->width = "98%"; diff --git a/pandora_console/operation/search_main.php b/pandora_console/operation/search_main.php index 32248844a2..c2b83bfbcb 100644 --- a/pandora_console/operation/search_main.php +++ b/pandora_console/operation/search_main.php @@ -29,6 +29,7 @@ echo '
' $anyfound = false; +$table = new StdClass; $table->id = 'summary'; $table->width = '98%'; diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index eeb64f5351..f448367177 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -178,6 +178,7 @@ if ($status != -1) { __('Error updating user info')); } +$table = new StdClass; $table->id = 'user_form'; $table->width = '98%'; $table->cellspacing = 4; diff --git a/pandora_console/operation/visual_console/render_view.php b/pandora_console/operation/visual_console/render_view.php index 180faca54d..a56249baea 100644 --- a/pandora_console/operation/visual_console/render_view.php +++ b/pandora_console/operation/visual_console/render_view.php @@ -148,6 +148,7 @@ if ($config["pure"]) { $values[SECONDS_10MINUTES] = human_time_description_raw(SECONDS_10MINUTES); $values[SECONDS_30MINUTES] = human_time_description_raw(SECONDS_30MINUTES); + $table = new StdClass; $table->width = '90%'; $table->data = array (); $table->style = array ();