diff options
Diffstat (limited to 'usr/local/www/interfaces_mlppp.php')
-rw-r--r-- | usr/local/www/interfaces_mlppp.php | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/usr/local/www/interfaces_mlppp.php b/usr/local/www/interfaces_mlppp.php index a5e5ba4..b3990d3 100644 --- a/usr/local/www/interfaces_mlppp.php +++ b/usr/local/www/interfaces_mlppp.php @@ -34,25 +34,25 @@ */ ##|+PRIV -##|*IDENT=page-interfaces-vlan -##|*NAME=Interfaces: VLAN page -##|*DESCR=Allow access to the 'Interfaces: VLAN' page. -##|*MATCH=interfaces_vlan.php* +##|*IDENT=page-interfaces-mlppp +##|*NAME=Interfaces: mlppp page +##|*DESCR=Allow access to the 'Interfaces: mlppp' page. +##|*MATCH=interfaces_mlppp.php* ##|-PRIV require("guiconfig.inc"); -if (!is_array($config['vlans']['vlan'])) - $config['vlans']['vlan'] = array(); +if (!is_array($config['mlppps']['mlppp'])) + $config['mlppps']['mlppp'] = array(); -$a_vlans = &$config['vlans']['vlan'] ; +$a_mlppps = &$config['mlppps']['mlppp'] ; -function vlan_inuse($num) { - global $config, $a_vlans; +function mlppp_inuse($num) { + global $config, $a_mlppps; $iflist = get_configured_interface_list(false, true); foreach ($iflist as $if) { - if ($config['interfaces'][$if]['if'] == $a_vlans[$num]['vlanif']) + if ($config['interfaces'][$if]['if'] == $a_mlppps[$num]['mlpppif']) return true; } @@ -61,21 +61,21 @@ function vlan_inuse($num) { if ($_GET['act'] == "del") { /* check if still in use */ - if (vlan_inuse($_GET['id'])) { - $input_errors[] = "This VLAN cannot be deleted because it is still being used as an interface."; + if (mlppp_inuse($_GET['id'])) { + $input_errors[] = "This interface cannot be deleted because it is still being used as an interface."; } else { - mwexec("/sbin/ifconfig " . $a_vlans[$_GET['id']]['vlanif'] . " destroy"); - unset($a_vlans[$_GET['id']]); + mwexec("/sbin/ifconfig " . $a_mlppps[$_GET['id']]['mlpppif'] . " destroy"); + unset($a_mlppps[$_GET['id']]); write_config(); - header("Location: interfaces_vlan.php"); + header("Location: interfaces_mlppp.php"); exit; } } -$pgtitle = array("Interfaces","VLAN"); +$pgtitle = array("Interfaces","MLPPP"); include("head.inc"); ?> @@ -90,14 +90,14 @@ include("head.inc"); $tab_array[0] = array("Interface assignments", false, "interfaces_assign.php"); $tab_array[1] = array("Interface Groups", false, "interfaces_groups.php"); $tab_array[2] = array("Wireless", false, "interfaces_wireless.php"); - $tab_array[3] = array("VLANs", true, "interfaces_vlan.php"); + $tab_array[3] = array("VLANs", false, "interfaces_vlan.php"); $tab_array[4] = array("QinQs", false, "interfaces_qinq.php"); $tab_array[5] = array("PPP", false, "interfaces_ppp.php"); - $tab_array[5] = array("MLPPP", false, "interfaces_mlppp.php"); - $tab_array[6] = array("GRE", false, "interfaces_gre.php"); - $tab_array[7] = array("GIF", false, "interfaces_gif.php"); - $tab_array[8] = array("Bridges", false, "interfaces_bridge.php"); - $tab_array[9] = array("LAGG", false, "interfaces_lagg.php"); + $tab_array[6] = array("MLPPP", true, "interfaces_mlppp.php"); + $tab_array[7] = array("GRE", false, "interfaces_gre.php"); + $tab_array[8] = array("GIF", false, "interfaces_gif.php"); + $tab_array[9] = array("Bridges", false, "interfaces_bridge.php"); + $tab_array[10] = array("LAGG", false, "interfaces_lagg.php"); display_top_tabs($tab_array); ?> </td></tr> @@ -107,34 +107,34 @@ include("head.inc"); <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" class="listhdrr">Interface</td> - <td width="20%" class="listhdrr">VLAN tag</td> + <td width="20%" class="listhdrr">mlppp tag</td> <td width="50%" class="listhdr">Description</td> <td width="10%" class="list"></td> </tr> - <?php $i = 0; foreach ($a_vlans as $vlan): ?> - <tr ondblclick="document.location='interfaces_vlan_edit.php?id=<?=$i;?>'"> + <?php $i = 0; foreach ($a_mlppps as $mlppp): ?> + <tr ondblclick="document.location='interfaces_mlppp_edit.php?id=<?=$i;?>'"> <td class="listlr"> - <?=htmlspecialchars($vlan['if']);?> + <?=htmlspecialchars($mlppp['if']);?> </td> <td class="listr"> - <?=htmlspecialchars($vlan['tag']);?> + <?=htmlspecialchars($mlppp['tag']);?> </td> <td class="listbg"> - <?=htmlspecialchars($vlan['descr']);?> + <?=htmlspecialchars($mlppp['descr']);?> </td> - <td valign="middle" nowrap class="list"> <a href="interfaces_vlan_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> - <a href="interfaces_vlan.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this VLAN?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <td valign="middle" nowrap class="list"> <a href="interfaces_mlppp_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> + <a href="interfaces_mlppp.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this mlppp?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> </tr> <?php $i++; endforeach; ?> <tr> <td class="list" colspan="3"> </td> - <td class="list"> <a href="interfaces_vlan_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> + <td class="list"> <a href="interfaces_mlppp_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> </tr> <tr> <td colspan="3" class="list"><p class="vexpl"><span class="red"><strong> Note:<br> </strong></span> - Not all drivers/NICs support 802.1Q VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems. See the <?=$g['product_name']?> handbook for information on supported cards. </p> + Not all drivers/NICs support 802.1Q mlppp tagging properly. On cards that do not explicitly support it, mlppp tagging will still work, but the reduced MTU may cause problems. See the <?=$g['product_name']?> handbook for information on supported cards. </p> </td> <td class="list"> </td> </tr> |