Fixed warnings of php

This commit is contained in:
m-lopez-f 2015-09-04 11:42:34 +02:00
parent b040fb9107
commit 55abd5a5c3
14 changed files with 24 additions and 1 deletions

View File

@ -140,6 +140,7 @@ if ($disk_conf_delete) {
echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&amp;sec2=godmode/agentes/configurar_agente">';
$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";

View File

@ -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') . ' ' .

View File

@ -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';

View File

@ -137,6 +137,7 @@ if ($copy_layout) {
}
$table = new StdClass;
$table->width = '98%';
$table->data = array ();
$table->head = array ();

View File

@ -763,6 +763,7 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
echo '<div class="nf">' . __('No events') . '</div>';
}
else {
$table = new StdClass;
$table->id = 'latest_events_table';
$table->cellpadding = 4;
$table->cellspacing = 4;

View File

@ -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 ();

View File

@ -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";

View File

@ -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%";

View File

@ -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;

View File

@ -60,6 +60,7 @@ echo '<td style="vertical-align: top; min-width: 180px; width:25%; padding-right
// ---------------------------------------------------------------------
// The status horizontal bars (Global health, Monitor sanity...
// ---------------------------------------------------------------------
$table = new StdClass;
$table->width = "100%";
$table->class = "";
$table->cellpadding = 2;

View File

@ -34,6 +34,7 @@ if (!$agents || !$searchAgents) {
}
}
else {
$table = new StdClass;
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->width = "98%";

View File

@ -29,6 +29,7 @@ echo '<br><div style="margin:auto; width:90%; padding: 10px; background: #fff">'
$anyfound = false;
$table = new StdClass;
$table->id = 'summary';
$table->width = '98%';

View File

@ -178,6 +178,7 @@ if ($status != -1) {
__('Error updating user info'));
}
$table = new StdClass;
$table->id = 'user_form';
$table->width = '98%';
$table->cellspacing = 4;

View File

@ -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 ();