89) { $loading = false; } sleep(1); } if ($maxtimetowait < 90) { $savemsg = sprintf(gettext("The %s file contents have been updated."), $db_name); } } exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T show", $entries); exec("/sbin/pfctl -sT", $tables); include("head.inc"); if ($savemsg) { print_info_box($savemsg, 'success'); } if ($tablename == "webConfiguratorlockout") { $displayname = gettext("webConfigurator Lockout Table"); } else { $displayname = sprintf(gettext("%s Table"), ucfirst($tablename)); } $form = new Form(false); $section = new Form_Section('Table to Display'); $group = new Form_Group("Table"); $group->add(new Form_Select( 'type', null, $tablename, array_combine($tables, $tables) ))->setHelp('Select a user-defined alias name or system table name to view its contents.

' . 'Aliases become Tables when loaded into the active firewall ruleset. ' . 'The contents displayed on this page reflect the current addresses inside tables used by the firewall.'); if ($bogons || $urltable || !empty($entries)) { if ($bogons || $urltable) { $group->add(new Form_Button( 'Download', 'Update', null, 'fa-refresh' ))->addClass('btn-success btn-sm'); } elseif (!empty($entries)) { $group->add(new Form_Button( 'clearall', 'Empty Table', null, 'fa-trash' ))->addClass('btn-danger btn-sm'); } } $section->add($group); $form->add($section); print $form; if ($bogons || $urltable || !empty($entries)) { ?>
"; } if ($table_comments) { print_info_box($last_update_msg . "     " . $records_count_msg . "
" . '' . '' . '' , 'info', false); } else { print_info_box($last_update_msg . "    " . $records_count_msg, 'info', false); } ?>

3000) { print ""; } else { ?>
";
			foreach ($entries as $entry) {
				$entry = trim($entry);
					print $entry . "\n";
			}
			print "
">