From 513b762e7ab6cebf58b8334677687b368bb7e4d2 Mon Sep 17 00:00:00 2001 From: gnhb Date: Tue, 8 Jun 2010 22:39:03 +0700 Subject: [PATCH] Add check for required fields for PPP connections. --- usr/local/www/interfaces.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 4d6c4c4674..dfff30de9d 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -371,6 +371,11 @@ if ($_POST) { $reqdfieldsn = explode(",", "IP address,Subnet bit count,Gateway"); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); break; + case "ppp": + $reqdfields = explode(" ", "port phone"); + $reqdfieldsn = explode(",", "Modem Port,Phone Number"); + do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); + break; case "PPPoE": if ($_POST['pppoe_dialondemand']) { $reqdfields = explode(" ", "pppoe_username pppoe_password pppoe_dialondemand pppoe_idletimeout"); @@ -1096,7 +1101,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "ppp" =
Enter a description (name) for the interface here. - Type @@ -1113,7 +1117,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "ppp" = - MAC address