From 872f6a0c9ca1b5c08eff1e74ae7ecbe5a65b85f1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 21 Nov 2008 21:15:44 +0000 Subject: wancfg is a global --- usr/local/www/interfaces.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 455ec4e..2cd152e 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -85,7 +85,7 @@ $a_gateways = &$config['gateways']['gateway_item']; $wancfg = &$config['interfaces'][$if]; -$pconfig['pppoe_username'] = $wancfg['pppoe_username']; +$pconfig['_username'] = $wancfg['pppoe_username']; $pconfig['pppoe_password'] = $wancfg['pppoe_password']; $pconfig['provider'] = $wancfg['provider']; $pconfig['pppoe_dialondemand'] = isset($wancfg['ondemand']); @@ -497,7 +497,7 @@ if ($_POST) { } } // end if($_POST) -function handle_pppoe_reset($wancfg) { +function handle_pppoe_reset() { global $_POST, $config, $g, $wancfg; /* perform a periodic reset? */ if(!isset($_POST['pppoe_preset'])) { -- cgit v1.1