Revision 422e039b
Added by Scott Ullrich over 18 years ago
usr/local/www/status_upnp.php | ||
---|---|---|
32 | 32 |
require("guiconfig.inc"); |
33 | 33 |
|
34 | 34 |
/* Defaults to this page but if no settings are present, redirect to setup page */ |
35 |
if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array']) |
|
35 |
if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array'] || |
|
36 |
!$config['installedpackages']['miniupnpd']['config'][0]['enable']) |
|
36 | 37 |
Header("Location: /pkg_edit.php?xml=miniupnpd.xml&id=0"); |
37 | 38 |
|
38 | 39 |
if ($_POST) { |
... | ... | |
65 | 66 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
66 | 67 |
<?php |
67 | 68 |
$tab_array = array(); |
68 |
$tab_array[] = array(gettext("UPNP Status "), true, "/status_upnp.php");
|
|
69 |
$tab_array[] = array(gettext("miniupnpd Settings "), false, "/pkg_edit.php?xml=miniupnpd.xml&id=0");
|
|
69 |
$tab_array[] = array(gettext("UPnP Status "), true, "/status_upnp.php");
|
|
70 |
$tab_array[] = array(gettext("MiniUPnPd Settings "), false, "/pkg_edit.php?xml=miniupnpd.xml&id=0");
|
|
70 | 71 |
display_top_tabs($tab_array); |
71 | 72 |
?> |
72 | 73 |
</table> |
... | ... | |
88 | 89 |
<td width="60%" class="listhdr"><?=gettext("Description")?></td> |
89 | 90 |
</tr> |
90 | 91 |
<?php $i = 0; foreach ($rdr_entries as $rdr_entry) { |
91 |
if (preg_match("/rdr on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" -> (.*) port (.*)/", $rdr_entry, $matches))
|
|
92 |
if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" -> (.*) port (.*)/", $rdr_entry, $matches)) |
|
92 | 93 |
$rdr_proto = $matches[2]; |
93 | 94 |
$rdr_port = $matches[3]; |
94 | 95 |
$rdr_ip = $matches[5]; |
Also available in: Unified diff
MFC miniupnpd changes from Ryan Wagoner