Instantiated an object (table) to avoid PHP warnings

This commit is contained in:
Alejandro Gallardo Escobar 2015-06-03 15:56:25 +02:00
parent 9bba19235e
commit 33129d89ce
9 changed files with 11 additions and 4 deletions

View File

@ -247,6 +247,7 @@ else {
}
$color=1;
if ($result !== false) {
$table = new StdClass();
$table->head = array (__('Name'), __('Network'), __('Mode'), __('Group'), __('Incident'), __('OS'), __('Interval'), __('Ports'), __('Action'));
$table->align = array ("","","","center","","","center","center");
$table->width = "99%";

View File

@ -168,6 +168,7 @@ if ($is_windows) {
echo '</div>';
}
$table = new StdClass();
$table->id = 'table_recon';
$table->width = '98%';
$table->cellspacing = 4;

View File

@ -37,6 +37,7 @@ if ($servers === false) {
return;
}
$table = new StdClass();
$table->width = '100%';
$table->class = 'databox data';
$table->size = array ();

View File

@ -35,7 +35,7 @@ enterprise_include_once ('godmode/setup/setup.php');
to add it there.
*/
$table = new StdClass();
$table->width = '98%';
$table->data = array ();
@ -66,7 +66,7 @@ $table->data[7][1] = html_print_input_text ('days_compact', $config["days_compac
$table->data[8][0] = __('Max. days before delete unknown modules');
$table->data[8][1] = html_print_input_text ('days_delete_unknown', $config["days_delete_unknown"], '', 5, 5, true);
$table_other = new StdClass();
$table_other->width = '98%';
$table_other->data = array ();

View File

@ -29,7 +29,7 @@ include_once($config['homedir'] . "/include/functions_profile.php");
// Load enterprise extensions
enterprise_include ('godmode/setup/setup_auth.php');
$table = new StdClass();
$table->data = array ();
$table->width = '98%';
$table->size[0] = '30%';

View File

@ -18,6 +18,7 @@ global $config;
check_login ();
$table = new StdClass();
$table->width = '100%';
$table->data = array ();
$table->size = array();

View File

@ -45,6 +45,7 @@ enterprise_include ('godmode/setup/setup_visuals.php');
require_once ('include/functions_themes.php');
require_once ('include/functions_gis.php');
$table = new StdClass();
$table->width = '98%';
$table->data = array ();

View File

@ -435,6 +435,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 = 0;
$table->cellspacing = 0;
$table->width = "100%";

View File

@ -73,7 +73,8 @@ else{
if ($recon_tasks === false) {
$recon_tasks = array ();
}
$table = new StdClass();
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->width = "99%";