158 |
158 |
}
|
159 |
159 |
}
|
160 |
160 |
|
161 |
|
$pgtitle = array("Firewall","NAT","Port Forward");
|
|
161 |
$pgtitle = array(gettext("Firewall","NAT","Port Forward"));
|
162 |
162 |
include("head.inc");
|
163 |
163 |
|
164 |
164 |
echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript/domTT/domLib.js\"></script>";
|
... | ... | |
174 |
174 |
<?php if (is_subsystem_dirty('natconf')): ?><p>
|
175 |
175 |
<?php
|
176 |
176 |
if($savemsg)
|
177 |
|
print_info_box_np("{$savemsg}<br>The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");
|
|
177 |
print_info_box_np("{$savemsg}<br>gettext("The NAT configuration has been changed.")<br>gettext ("You must apply the changes in order for them to take effect.");
|
178 |
178 |
else
|
179 |
|
print_info_box_np("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");
|
|
179 |
print_info_box_np(gettext("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect."));
|
180 |
180 |
?>
|
181 |
181 |
<?php endif; ?>
|
182 |
182 |
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
183 |
183 |
<tr><td>
|
184 |
184 |
<?php
|
185 |
185 |
$tab_array = array();
|
186 |
|
$tab_array[] = array("Port Forward", true, "firewall_nat.php");
|
|
186 |
$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
|
187 |
187 |
$tab_array[] = array("1:1", false, "firewall_nat_1to1.php");
|
188 |
|
$tab_array[] = array("Outbound", false, "firewall_nat_out.php");
|
|
188 |
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
|
189 |
189 |
display_top_tabs($tab_array);
|
190 |
190 |
?>
|
191 |
191 |
</td></tr>
|
... | ... | |
210 |
210 |
<tr>
|
211 |
211 |
<td width="17">
|
212 |
212 |
<?php if (count($a_nat) == 0): ?>
|
213 |
|
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="delete selected rules" border="0">
|
|
213 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title=gettext("delete selected rules") border="0">
|
214 |
214 |
<?php else: ?>
|
215 |
215 |
<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="delete selected rules" onclick="return confirm('Do you really want to delete the selected rules?')">
|
216 |
216 |
<?php endif; ?>
|
... | ... | |
312 |
312 |
<td valign="middle" class="list" nowrap>
|
313 |
313 |
<table border="0" cellspacing="0" cellpadding="1">
|
314 |
314 |
<tr>
|
315 |
|
<td><input onmouseover="fr_insline(<?=$nnats;?>, true)" onmouseout="fr_insline(<?=$nnats;?>, false)" name="move_<?=$i;?>" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" title="move selected rules before this rule" height="17" type="image" width="17" border="0"></td>
|
|
315 |
<td><input onmouseover="fr_insline(<?=$nnats;?>, true)" onmouseout="fr_insline(<?=$nnats;?>, false)" name="move_<?=$i;?>" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" title=gettext("move selected rules before this rule") height="17" type="image" width="17" border="0"></td>
|
316 |
316 |
<td><a href="firewall_nat_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="edit rule"></a></td>
|
317 |
317 |
</tr>
|
318 |
318 |
<tr>
|
319 |
|
<td align="center" valign="middle"><a href="firewall_nat.php?act=del&id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="delete rule" onclick="return confirm('Do you really want to delete this rule?')"></a></td>
|
320 |
|
<td><a href="firewall_nat_edit.php?dup=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add a new nat based on this one" width="17" height="17" border="0"></a></td>
|
|
319 |
<td align="center" valign="middle"><a href="firewall_nat.php?act=del&id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title=gettext("delete rule") onclick="return confirm(gettext('Do you really want to delete this rule?'))"></a></td>
|
|
320 |
<td><a href="firewall_nat_edit.php?dup=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title=gettext("add a new nat based on this one") width="17" height="17" border="0"></a></td>
|
321 |
321 |
</tr>
|
322 |
322 |
</table>
|
323 |
323 |
</tr>
|
... | ... | |
330 |
330 |
<td class="list" valign="middle" nowrap>
|
331 |
331 |
<table border="0" cellspacing="0" cellpadding="1">
|
332 |
332 |
<tr>
|
333 |
|
<td><?php if ($nnats == 0): ?><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="move selected rules to end" border="0"><?php else: ?><input name="move_<?=$i;?>" type="image" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" width="17" height="17" title="move selected rules to end" border="0"><?php endif; ?></td>
|
|
333 |
<td><?php if ($nnats == 0): ?><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="move selected rules to end" border="0"><?php else: ?><input name="move_<?=$i;?>" type="image" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" width="17" height="17" title=gettext("move selected rules to end") border="0"><?php endif; ?></td>
|
334 |
334 |
</tr>
|
335 |
335 |
<tr>
|
336 |
336 |
<td width="17">
|
337 |
337 |
<?php if (count($a_nat) == 0): ?>
|
338 |
|
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="delete selected rules" border="0">
|
|
338 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title=gettext("delete selected rules") border="0">
|
339 |
339 |
<?php else: ?>
|
340 |
|
<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="delete selected rules" onclick="return confirm('Do you really want to delete the selected rules?')">
|
|
340 |
<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="delete selected rules" onclick="return confirm(gettext('Do you really want to delete the selected rules?'))">
|
341 |
341 |
<?php endif; ?>
|
342 |
342 |
</td>
|
343 |
343 |
<td><a href="firewall_nat_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
|
... | ... | |
352 |
352 |
</tr>
|
353 |
353 |
<tr>
|
354 |
354 |
<td width="14"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_chain.png" width="11" height="11"></td>
|
355 |
|
<td colspan="3">linked rule</td>
|
|
355 |
<td colspan="3">gettext("linked rule")</td>
|
356 |
356 |
</tr>
|
357 |
357 |
</table>
|
358 |
358 |
</div>
|
gettext on archives firewall_aliases.php e firewall_nat.php