25 require_once(
"../class/config.php");
26 include_once(
"head.php");
28 if (!$admin->enabled) {
29 __(
"This page is restricted to authorized staff");
33 $r=$upnp->get_forward_list();
35 $aaction=array(
"CREATE" => _(
"Creation in progress"),
36 "DELETE" => _(
"Deletion in progress"),
37 "DELETING" => _(
"Deletion in progress"),
38 "DISABLE" => _(
"Will be disabled soon"),
39 "ENABLE" => _(
"Will be enabled soon"),
44 <h3><?php
__(
"UPnP port forwarding list"); ?></h3>
49 echo
"<p class=\"error\">$error</p>";
53 <?php
__(
"Here is the list of the requested port forward for AlternC's services, and their status. You can enable or disable some of them."); ?>
58 <th><?php
__(
"Name"); ?></th>
59 <th><?php
__(
"Class"); ?></th>
60 <th><?php
__(
"Protocol/Port") ?></th>
61 <th><?php
__(
"Mandatory") ?></th>
62 <th><?php
__(
"Enabled") ?></th>
63 <th><?php
__(
"Last Check"); ?></th>
64 <th><?php
__(
"Last Update"); ?></th>
65 <th><?php
__(
"Status"); ?></th>
75 <tr
class=
"lst<?php echo $col; ?>">
78 if (
$val[
"mandatory"]) { ?>
81 <td><?php
if (
$val[
"enabled"]) { ?><a href=
"upnp_change.php?action=disable&id=<?php echo $val["id"]; ?>"><?php
__(
"Disable"); ?></a><?php }
else { ?><a href=
"upnp_change.php?action=enable&id=<?php echo $val["id"]; ?>"><?php
__(
"Enable"); ?></a><?php } ?></td>
83 <td><?php echo
$val[
"class"] ?></td>
84 <td><?php echo
$val[
"protocol"].
"/".
$val[
"port"] ?></td>
85 <td><?php
if (
$val[
"mandatory"])
__(
"Yes");
else __(
"No"); ?></td>
86 <td><?php
if (
$val[
"enabled"])
__(
"Yes");
else __(
"No"); ?></td>
87 <td><?php echo
$val[
"lastcheck"] ?></td>
88 <td><?php echo
$val[
"lastupdate"] ?></td>
89 <td><?php echo
$aaction[
$val[
"status"]]; ?><br /><?php echo $val[
"result"]; ?></td>
96 <?php include_once(
"foot.php"); ?>