Revision 611ae852
Added by Ermal LUÇI over 15 years ago
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
1116 | 1116 |
// add dynamic gateways to list |
1117 | 1117 |
$iflist = get_configured_interface_with_descr(); |
1118 | 1118 |
foreach ($iflist as $ifent => $ifdesc) { |
1119 |
if (in_array($config['interfaces'][$ifent]['ipaddr'], array("dhcp", "pppoe", "pptp"))) { |
|
1119 |
if (in_array($config['interfaces'][$ifent]['ipaddr'], array("dhcp", "pppoe", "pptp", "ppp"))) {
|
|
1120 | 1120 |
if ($pconfig['gateway'] == $ifent) { |
1121 | 1121 |
$selected = " SELECTED"; |
1122 | 1122 |
} else { |
... | ... | |
1124 | 1124 |
} |
1125 | 1125 |
if($ifdesc <> "") |
1126 | 1126 |
echo "<option value=\"{$ifent}\" {$selected}>".strtoupper($ifent)." - {$ifdesc}</option>\n"; |
1127 |
} else if ($config['interfaces'][$ifent]['serialport'] <> "") { |
|
1128 |
if ($pconfig['gateway'] == $ifent) { |
|
1129 |
$selected = " SELECTED"; |
|
1130 |
} else { |
|
1131 |
$selected = ""; |
|
1132 |
} |
|
1133 |
if($ifdesc <> "") |
|
1134 |
echo "<option value=\"{$ifent}\" {$selected}>".strtoupper($ifent)." - {$ifdesc}</option>\n"; |
|
1135 | 1127 |
} |
1136 | 1128 |
} |
1137 | 1129 |
/* add gateway groups to the list */ |
Also available in: Unified diff
Redo most of the ppp interface handling to be consistent with the other mpd5 configurations. This way there is no more special handling for ppp around.