From 696837424b0b3d5d3a5ae3883a4165af11bdf0c7 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 26 Sep 2006 18:30:20 +0000 Subject: We have a clear button. --- packages/miniupnpd/status_upnp.php | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) (limited to 'packages') diff --git a/packages/miniupnpd/status_upnp.php b/packages/miniupnpd/status_upnp.php index 591bc25f..ca6590e5 100644 --- a/packages/miniupnpd/status_upnp.php +++ b/packages/miniupnpd/status_upnp.php @@ -31,6 +31,17 @@ require("guiconfig.inc"); +if ($_POST) { + if ($_POST['clear'] == "Clear") { + // stop + mwexec("/bin/sh /usr/local/etc/rc.d/miniupnpd.sh stop"); + usleep(300); + // start + mwexec("/bin/sh /usr/local/etc/rc.d/miniupnpd.sh start"); + $savemsg = "Rules have been cleared and the daemon restarted"; + } +} + $rdr_entries = array(); exec("/sbin/pfctl -aminiupnpd -sn", $rdr_entries, $pf_ret); @@ -48,12 +59,21 @@ include("head.inc");

+ + +
- - + +
-
- - + + + + +
+
+ +
+
+ + @@ -82,9 +102,10 @@ include("head.inc");
- -
- +
+
-- cgit v1.2.3