Revision bd413d76
Added by Renato Botelho almost 15 years ago
usr/local/www/firewall_aliases_edit.php | ||
---|---|---|
130 | 130 |
/* input validation */ |
131 | 131 |
|
132 | 132 |
$reqdfields = explode(" ", "name"); |
133 |
$reqdfieldsn = array(",", gettext("Name"));
|
|
133 |
$reqdfieldsn = array(gettext("Name")); |
|
134 | 134 |
|
135 | 135 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); |
136 | 136 |
|
... | ... | |
138 | 138 |
if (!isset($x)) { |
139 | 139 |
$input_errors[] = gettext("Reserved word used for alias name."); |
140 | 140 |
} else if ($_POST['type'] == "port" && (getservbyname($_POST['name'], "tcp") || getservbyname($_POST['name'], "udp"))) { |
141 |
$input_errors[] = gettext("Reserved word used for alias name.)";
|
|
141 |
$input_errors[] = gettext("Reserved word used for alias name.");
|
|
142 | 142 |
} else { |
143 | 143 |
if (is_validaliasname($_POST['name']) == false) |
144 |
$input_errors[] = gettext("The alias name may only consist of the characters a-z, A-Z, 0-9, _.");
|
|
144 |
$input_errors[] = gettext("The alias name may only consist of the characters") . " a-z, A-Z, 0-9, _.";
|
|
145 | 145 |
} |
146 | 146 |
/* check for name conflicts */ |
147 | 147 |
if (empty($a_aliases[$id])) { |
... | ... | |
450 | 450 |
$openvpn_str = gettext("Username"); |
451 | 451 |
$openvpn_user_str = gettext("OpenVPN Users"); |
452 | 452 |
$openvpn_help = gettext("Enter as many usernames as you wish."); |
453 |
$openvpn_freq = gettext("");
|
|
453 |
$openvpn_freq = "";
|
|
454 | 454 |
|
455 | 455 |
$jscriptstr .= <<<EOD |
456 | 456 |
|
... | ... | |
561 | 561 |
<?php endif; ?> |
562 | 562 |
<br /> |
563 | 563 |
<span class="vexpl"> |
564 |
<?=gettext("The name of the alias may only consist of the characters a-z, A-Z and 0-9."); ?>
|
|
564 |
<?=gettext("The name of the alias may only consist of the characters") . " a-z, A-Z and 0-9."; ?>
|
|
565 | 565 |
</span> |
566 | 566 |
</td> |
567 | 567 |
</tr> |
... | ... | |
583 | 583 |
<option value="network" <?php if ($pconfig['type'] == "network") echo "selected"; ?>><?=gettext("Network(s)"); ?></option> |
584 | 584 |
<option value="port" <?php if ($pconfig['type'] == "port") echo "selected"; ?>><?=gettext("Port(s)"); ?></option> |
585 | 585 |
<option value="openvpn" <?php if ($pconfig['type'] == "openvpn") echo "selected"; ?>><?=gettext("OpenVPN Users"); ?></option> |
586 |
<option value="url" <?php if ($pconfig['type'] == "url") echo "selected"; ?>>URL</option>
|
|
586 |
<option value="url" <?php if ($pconfig['type'] == "url") echo "selected"; ?>><?=gettext("URL");?></option>
|
|
587 | 587 |
<option value="urltable" <?php if ($pconfig['type'] == "urltable") echo "selected"; ?>><?=gettext("URL Table"); ?></option> |
588 | 588 |
</select> |
589 | 589 |
</td> |
Also available in: Unified diff
Review firewall_aliases_edit.php