From 30ade8461e65922c8d8a22d3b9ba5b07bb2912e0 Mon Sep 17 00:00:00 2001 From: gnhb Date: Fri, 21 May 2010 06:09:25 +0700 Subject: Fixing whitespace so this file is more readable. And comment out extra html tags at the end of the file. This file was in bad shape wrt tab spaces lining up. It should be more readable now. --- usr/local/www/interfaces.php | 1590 +++++++++++++++++++++--------------------- 1 file changed, 803 insertions(+), 787 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 637d244..b496d45 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -95,13 +95,14 @@ $a_gateways = &$config['gateways']['gateway_item']; $wancfg = &$config['interfaces'][$if]; if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) { - foreach ($a_ppps as $pppid => $ppp) { - if ($wancfg['ptpid'] == $ppp['ptpid']) - break; - } + foreach ($a_ppps as $pppid => $ppp) { + if ($wancfg['ptpid'] == $ppp['ptpid']) + break; } +} + if ($wancfg['ptpid'] == $a_ppps[$pppid]['ptpid']) { - + $pconfig['pppid'] = $pppid; if (isset($a_ppps[$pppid]['defaultgw'])) $pconfig['defaultgw'] = true; else @@ -959,892 +960,907 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" - -
-
- - - - - - - - -
General configuration
Enable - onClick="show_allcfg(this);"> - Enable Interface -
-