Revision 55344749
Added by Rafael Lucas about 15 years ago
usr/local/www/interfaces_wireless.php | ||
---|---|---|
60 | 60 |
if ($_GET['act'] == "del") { |
61 | 61 |
/* check if still in use */ |
62 | 62 |
if (clone_inuse($_GET['id'])) { |
63 |
$input_errors[] = "This wireless clone cannot be deleted because it is assigned as an interface.";
|
|
63 |
$input_errors[] = gettext("This wireless clone cannot be deleted because it is assigned as an interface.");
|
|
64 | 64 |
} else { |
65 | 65 |
mwexec("/sbin/ifconfig " . $a_clones[$_GET['id']]['cloneif'] . " destroy"); |
66 | 66 |
unset($a_clones[$_GET['id']]); |
... | ... | |
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
|
76 |
$pgtitle = array("Interfaces","Wireless");
|
|
76 |
$pgtitle = array(gettext("Interfaces"),("Wireless"));
|
|
77 | 77 |
include("head.inc"); |
78 | 78 |
|
79 | 79 |
?> |
... | ... | |
85 | 85 |
<tr><td> |
86 | 86 |
<?php |
87 | 87 |
$tab_array = array(); |
88 |
$tab_array[0] = array("Interface assignments", false, "interfaces_assign.php");
|
|
89 |
$tab_array[1] = array("Interface Groups", false, "interfaces_groups.php");
|
|
90 |
$tab_array[2] = array("Wireless", true, "interfaces_wireless.php");
|
|
91 |
$tab_array[3] = array("VLANs", false, "interfaces_vlan.php");
|
|
92 |
$tab_array[4] = array("QinQs", false, "interfaces_qinq.php");
|
|
93 |
$tab_array[5] = array("PPPs", false, "interfaces_ppps.php");
|
|
94 |
$tab_array[6] = array("GRE", false, "interfaces_gre.php");
|
|
95 |
$tab_array[7] = array("GIF", false, "interfaces_gif.php");
|
|
96 |
$tab_array[8] = array("Bridges", false, "interfaces_bridge.php");
|
|
97 |
$tab_array[9] = array("LAGG", false, "interfaces_lagg.php");
|
|
88 |
$tab_array[0] = array(gettext("Interface assignments"), false, "interfaces_assign.php");
|
|
89 |
$tab_array[1] = array(gettext("Interface Groups"), false, "interfaces_groups.php");
|
|
90 |
$tab_array[2] = array(gettext("Wireless"), true, "interfaces_wireless.php");
|
|
91 |
$tab_array[3] = array(gettext("VLANs"), false, "interfaces_vlan.php");
|
|
92 |
$tab_array[4] = array(gettext("QinQs"), false, "interfaces_qinq.php");
|
|
93 |
$tab_array[5] = array(gettext("PPPs"), false, "interfaces_ppps.php");
|
|
94 |
$tab_array[6] = array(gettext("GRE"), false, "interfaces_gre.php");
|
|
95 |
$tab_array[7] = array(gettext("GIF"), false, "interfaces_gif.php");
|
|
96 |
$tab_array[8] = array(gettext("Bridges"), false, "interfaces_bridge.php");
|
|
97 |
$tab_array[9] = array(gettext("LAGG"), false, "interfaces_lagg.php");
|
|
98 | 98 |
display_top_tabs($tab_array); |
99 | 99 |
?> |
100 | 100 |
</td></tr> |
... | ... | |
103 | 103 |
<div id="mainarea"> |
104 | 104 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> |
105 | 105 |
<tr> |
106 |
<td width="20%" class="listhdrr">Interface</td>
|
|
107 |
<td width="20%" class="listhdrr">Mode</td>
|
|
108 |
<td width="50%" class="listhdr">Description</td>
|
|
106 |
<td width="20%" class="listhdrr"><?=gettext("Interface");?></td>
|
|
107 |
<td width="20%" class="listhdrr"><?=gettext("Mode");?></td>
|
|
108 |
<td width="50%" class="listhdr"><?=gettext("Description");?></td>
|
|
109 | 109 |
<td width="10%" class="list"></td> |
110 | 110 |
</tr> |
111 | 111 |
<?php $i = 0; |
... | ... | |
121 | 121 |
<?=htmlspecialchars($clone['descr']);?> |
122 | 122 |
</td> |
123 | 123 |
<td valign="middle" nowrap class="list"> <a href="interfaces_wireless_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> |
124 |
<a href="interfaces_wireless.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this wireless clone?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
|
|
124 |
<a href="interfaces_wireless.php?act=del&id=<?=$i;?>" onclick="return confirm(<?=gettext("Do you really want to delete this wireless clone?");?>)"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
|
|
125 | 125 |
</tr> |
126 | 126 |
<?php $i++; endforeach; ?> |
127 | 127 |
<tr> |
... | ... | |
130 | 130 |
</tr> |
131 | 131 |
<tr> |
132 | 132 |
<td colspan="3" class="list"><p class="vexpl"><span class="red"><strong> |
133 |
Note:<br>
|
|
133 |
<?=gettext("Note:");?><br>
|
|
134 | 134 |
</strong></span> |
135 |
Here you can configure clones of wireless interfaces, which can be assigned as separate independent interfaces. Only available on wireless chipsets that support this, with limitations on the number that can be created in each mode.
|
|
135 |
<?=gettext("Here you can configure clones of wireless interfaces, which can be assigned as separate independent interfaces. Only available on wireless chipsets that support this, with limitations on the number that can be created in each mode.");?>
|
|
136 | 136 |
</td> |
137 | 137 |
<td class="list"> </td> |
138 | 138 |
</tr> |
Also available in: Unified diff
Implement gettext() calls