work on ui-libification

This commit is contained in:
Jamie Cameron
2013-07-10 19:27:15 -07:00
parent 9e19ff2404
commit 2019da842d
2 changed files with 6 additions and 9 deletions

View File

@@ -38,3 +38,5 @@ Better handle the case where a rule has a --comment format description, but # fo
Added support for physdev module options, for matching based on the bridged interface.
---- Changes since 1.550 ----
Added the open-ports.pl command which can be run from the shell to open ports on the firewall.
---- Changes since 1.630 ----
Updated all screens to use Webmin's new user interface library, for a more consistent look.

View File

@@ -75,15 +75,10 @@ if (!$config{'direct'} &&
}
print "</center></form><p>\n";
print "<table border width=100%>\n";
print "<tr $tb><td><b>$text{'index_headerex'}</b></td></tr>\n";
print "<tr $cb> <td><pre>";
open(OUT, "iptables-save 2>/dev/null |");
while(<OUT>) {
print &html_escape($_);
}
close(OUT);
print "</pre></td> </tr></table>\n";
print &ui_table_start($text{'index_headerex'}, "width=100%", 2);
$out = &backquote_command("iptables-save 2>/dev/null");
print &ui_table_row(undef, "<pre>".&html_escape($out)."</pre>", 2);
print &ui_table_end();
}
else {
# Offer to set up a firewall