diff options
author | Bill Marquette <billm@pfsense.org> | 2006-10-22 00:48:50 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2006-10-22 00:48:50 +0000 |
commit | 1f55d5f6265e1d5499249494e89f59d193af019f (patch) | |
tree | 8d1fabae0ca593a6779aa8c7830f3fd5ffe4d971 /packages/miniupnpd/status_upnp.php | |
parent | 47e7d03cba5db507c081921d2c4f5a208b9c0460 (diff) | |
download | pfsense-packages-1f55d5f6265e1d5499249494e89f59d193af019f.tar.gz pfsense-packages-1f55d5f6265e1d5499249494e89f59d193af019f.tar.bz2 pfsense-packages-1f55d5f6265e1d5499249494e89f59d193af019f.zip |
package fixed by: rsw686 via forums
Diffstat (limited to 'packages/miniupnpd/status_upnp.php')
-rw-r--r-- | packages/miniupnpd/status_upnp.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/miniupnpd/status_upnp.php b/packages/miniupnpd/status_upnp.php index 23bcc8ea..d1928ee0 100644 --- a/packages/miniupnpd/status_upnp.php +++ b/packages/miniupnpd/status_upnp.php @@ -32,16 +32,12 @@ require("guiconfig.inc"); /* Defaults to this page but if no settings are present, redirect to setup page */ -if(!is_array($config['installedpackages']['miniupnpd']['config'][0]['interface_array'])) - Header("Location: /pkg_edit.php?xml=miniupnpd.xml&id=0"); +if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array']) + Header("Location: /pkg_edit.php?xml=miniupnpd.xml&id=0"); 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"); + mwexec("/bin/sh /usr/local/etc/rc.d/miniupnpd.sh restart"); $savemsg = "Rules have been cleared and the daemon restarted"; } } |