Revision c107a2ac
Added by Ermal LUÇI about 15 years ago
usr/local/www/interfaces_ppp_edit.php | ||
---|---|---|
137 | 137 |
$ppp['descr'] = $_POST['descr']; |
138 | 138 |
|
139 | 139 |
|
140 |
$iflist = get_configured_interface_list(); |
|
141 |
foreach ($iflist as $if) { |
|
142 |
if ($config['interfaces'][$if]['if'] == basename($a_ppps[$id]['port'])) { |
|
143 |
$config['interfaces'][$if]['if'] = basename($ppp['port']); |
|
144 |
interface_ppp_configure($if); |
|
145 |
} |
|
146 |
} |
|
147 |
|
|
140 | 148 |
if (isset($id) && $a_ppps[$id]) |
141 | 149 |
$a_ppps[$id] = $ppp; |
142 | 150 |
else |
... | ... | |
144 | 152 |
|
145 | 153 |
write_config(); |
146 | 154 |
|
147 |
$iflist = get_configured_interface_list(); |
|
148 |
foreach ($iflist as $if) { |
|
149 |
if ($config['interfaces'][$if]['if'] == $a_ppps[$num]['port']) |
|
150 |
interface_ppp_configure($if); |
|
151 |
} |
|
152 |
|
|
153 | 155 |
header("Location: interfaces_ppp.php"); |
154 | 156 |
exit; |
155 | 157 |
} |
Also available in: Unified diff
Forgot re-editing.