aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-28 20:55:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-28 20:55:34 +0000
commit1625b7f8f93489329b4c1366598b9e4adc57befc (patch)
tree2744cc246266620f307be1ccfc602a623bc49ccf /packages/miniupnpd
parent7bea6c3c60bb2a90eb897e7732b02f088ed93a40 (diff)
downloadpfsense-packages-1625b7f8f93489329b4c1366598b9e4adc57befc.tar.gz
pfsense-packages-1625b7f8f93489329b4c1366598b9e4adc57befc.tar.bz2
pfsense-packages-1625b7f8f93489329b4c1366598b9e4adc57befc.zip
* Default to status page
* If miniupnpd has not been setup prior, redirect to Settings tab
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r--packages/miniupnpd/miniupnpd.xml6
-rw-r--r--packages/miniupnpd/status_upnp.php4
2 files changed, 4 insertions, 6 deletions
diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml
index f786f754..ffd87871 100644
--- a/packages/miniupnpd/miniupnpd.xml
+++ b/packages/miniupnpd/miniupnpd.xml
@@ -10,12 +10,6 @@
<name>Miniupnpd</name>
<tooltiptext>Set miniupnpd settings such as interfaces to listen on.</tooltiptext>
<section>Services</section>
- <url>/pkg_edit.php?xml=miniupnpd.xml&amp;id=0</url>
- </menu>
- <menu>
- <name>Miniupnpd</name>
- <tooltiptext>List current upnp mappings.</tooltiptext>
- <section>Status</section>
<url>/status_upnp.php</url>
</menu>
<additional_files_needed>
diff --git a/packages/miniupnpd/status_upnp.php b/packages/miniupnpd/status_upnp.php
index 37e9df62..23bcc8ea 100644
--- a/packages/miniupnpd/status_upnp.php
+++ b/packages/miniupnpd/status_upnp.php
@@ -31,6 +31,10 @@
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&amp;id=0");
+
if ($_POST) {
if ($_POST['clear'] == "Clear") {
// stop