Project

General

Profile

« Previous | Next » 

Revision ce968051

Added by Ermal LUÇI almost 15 years ago

Upgrade user data too for new pppoe world.

View differences:

etc/inc/upgrade_config.inc
2163 2163
		$config['pppoes'] = array();
2164 2164
		$config['pppoes']['pppoe'] = array();
2165 2165
		$config['pppoes']['pppoe'][] = $config['pppoe'][0];
2166

  
2167
		if (is_array($config['pppoe']['user'])) {
2168
			$username = array(); 
2169
			foreach ($config['pppoe']['user'] as $user) {
2170
				$usr = "{$user['name']}:{$user['password']}";
2171
				if ($user['ip'])
2172
					$usr .= ":{$user['ip']}";
2173
				$username[] = $usr;
2174
			}
2175
			$config['pppoes']['pppoe'][0]['username'] = implode(" ", $username);
2176
		}
2166 2177
		unset($config['pppoe']);
2167 2178
	}
2168 2179
}

Also available in: Unified diff