diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2006-09-26 18:30:20 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2006-09-26 18:30:20 +0000 |
commit | 696837424b0b3d5d3a5ae3883a4165af11bdf0c7 (patch) | |
tree | 6e3e73ce41acacf546c2d9edb6edaea25e48532b /packages/miniupnpd | |
parent | 6c61453229a15793aa9a89a1a2172a6ba66601c7 (diff) | |
download | pfsense-packages-696837424b0b3d5d3a5ae3883a4165af11bdf0c7.tar.gz pfsense-packages-696837424b0b3d5d3a5ae3883a4165af11bdf0c7.tar.bz2 pfsense-packages-696837424b0b3d5d3a5ae3883a4165af11bdf0c7.zip |
We have a clear button.
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r-- | packages/miniupnpd/status_upnp.php | 37 |
1 files changed, 29 insertions, 8 deletions
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"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> <p class="pgtitle"><?=$pgtitle?></font></p> +<?php if ($savemsg) print_info_box($savemsg); ?> + +<div id="mainlevel"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td> - <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> + <tr> + <td class="tabcont" > + <form action="status_upnp.php" method="post"> + <b><input type="submit" name="clear" id="clear" value="Clear" /></b> + </form> + </td> + </tr> + <tr> + <td class="tabcont" > + <table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr> <td width="10%" class="listhdrr"><?=gettext("Port")?></td> <td width="10%" class="listhdrr"><?=gettext("Protocol")?></td> <td width="20%" class="listhdrr"><?=gettext("Internal IP")?></td> @@ -82,9 +102,10 @@ include("head.inc"); </tr> <?php $i++; }?> </table> - </div> - </table> - + </td> + </tr> +</table> +</div> <?php include("fend.inc"); ?> </body> </html> |