From 8c26c305e4ae03926d9c035e82c237b273e77727 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Tue, 27 Jul 2010 17:15:06 -0300 Subject: Implement gettext() calls on vpn_pppoe.php --- usr/local/www/vpn_pppoe.php | 110 ++++++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php index 931d15d..ef3c294 100755 --- a/usr/local/www/vpn_pppoe.php +++ b/usr/local/www/vpn_pppoe.php @@ -76,24 +76,24 @@ if ($_POST) { /* input validation */ if ($_POST['mode'] == "server") { $reqdfields = explode(" ", "localip remoteip"); - $reqdfieldsn = explode(",", "Server address,Remote start address"); + $reqdfieldsn = array(gettext("Server address"),gettext("Remote start address")); if ($_POST['radiusenable']) { $reqdfields = array_merge($reqdfields, explode(" ", "radiusserver radiussecret")); $reqdfieldsn = array_merge($reqdfieldsn, - explode(",", "RADIUS server address,RADIUS shared secret")); + array(gettext("RADIUS server address"),gettext("RADIUS shared secret")); } do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if (($_POST['localip'] && !is_ipaddr($_POST['localip']))) { - $input_errors[] = "A valid server address must be specified."; + $input_errors[] = gettext("A valid server address must be specified."); } if (($_POST['pppoe_subnet'] && !is_ipaddr($_POST['remoteip']))) { - $input_errors[] = "A valid remote start address must be specified."; + $input_errors[] = gettext("A valid remote start address must be specified."); } if (($_POST['radiusserver'] && !is_ipaddr($_POST['radiusserver']))) { - $input_errors[] = "A valid RADIUS server address must be specified."; + $input_errors[] = gettext("A valid RADIUS server address must be specified."); } if (!$input_errors) { @@ -103,10 +103,10 @@ if ($_POST) { if ((ip2ulong($_POST['localip']) >= $subnet_start) && (ip2ulong($_POST['localip']) <= $subnet_end)) { - $input_errors[] = "The specified server address lies in the remote subnet."; + $input_errors[] = gettext("The specified server address lies in the remote subnet."); } if ($_POST['localip'] == get_interface_ip("lan")) { - $input_errors[] = "The specified server address is equal to the LAN interface address."; + $input_errors[] = gettext("The specified server address is equal to the LAN interface address."); } } } else { @@ -176,7 +176,7 @@ if ($_POST) { } } -$pgtitle = array("Services","PPPoE Server"); +$pgtitle = array(gettext("Services"),gettext("PPPoE Server")); include("head.inc"); ?> @@ -272,8 +272,8 @@ function enable_change(enable_over) { @@ -286,17 +286,17 @@ function enable_change(enable_over) { > - Off +   > - Enable PPPoE server + - Interface + -
Hint: 24 is 255.255.255.0 +
: 24 255.255.255.0 - No. PPPoE users + -
Hint: 10 is TEN pppoe clients +
- Server address +
- Enter the IP address the PPPoE server should use on its side - for all clients. + . - Remote address range +
- Specify the starting address for the client IP address subnet.
+ .
- DNS servers +

- If entered they will be given to all PPPoE clients, else LAN DNS and one WAN DNS will go to all clients
+
- RADIUS + > - Use a RADIUS server for authentication
-
When set, all users will be authenticated using - the RADIUS server specified below. The local user database - will not be used.
+
+
.

> - Enable RADIUS accounting
+

-
Sends accounting packets to the RADIUS server.
+
.
> - Use Backup Radius Server
- When set, if primary server fails all requests will be sent via backup server +
+ - NAS IP Address + -
radius server NAS ip Address
+

- RADIUS Accounting Update + -
Radius accounting update period in seconds +
- RADIUS issued IPs + > -
Issue IP Addresses via RADIUS server. +
. - RADIUS server Primary + -
Enter the IP address and port of the RADIUS server. Format ip auth_port acct_port
-
standard port 1812 and 1813 accounting +

+
- RADIUS primary shared secret + -
Enter the shared secret that will be used to authenticate - to the RADIUS server. +
. - RADIUS server Secondary + -
Enter the IP address and port of the BACKUP RADIUS server. Format ip auth_port acct_port
-
standard port 1812 and 1813 accounting +

+
- RADIUS secondary shared secret +
- Enter the shared secret that will be used to authenticate - to the RADIUS server. + . @@ -449,14 +449,14 @@ function enable_change(enable_over) {   - + " onclick="enable_change(true)">   - Note:
-
don't forget to add a firewall rule to permit - traffic from PPPoE clients!
+ :
+
!
-- cgit v1.1