Revision a8826fb4
Added by Scott Ullrich almost 20 years ago
usr/local/www/status_interfaces.php | ||
---|---|---|
38 | 38 |
|
39 | 39 |
if ($_POST) { |
40 | 40 |
if ($_POST['submit'] == "Disconnect" || $_POST['submit'] == "Release") { |
41 |
$interface = $_POST['interface']; |
|
41 | 42 |
if ($wancfg['ipaddr'] == "dhcp") |
42 |
interfaces_dhcp_down($_POST['interface']);
|
|
43 |
interfaces_dhcp_down($interface);
|
|
43 | 44 |
else if ($wancfg['ipaddr'] == "pppoe") |
44 | 45 |
interfaces_wan_pppoe_down(); |
45 | 46 |
else if ($wancfg['ipaddr'] == "pptp") |
46 | 47 |
interfaces_wan_pptp_down(); |
47 | 48 |
} else if ($_POST['submit'] == "Connect" || $_POST['submit'] == "Renew") { |
49 |
$interface = $_POST['interface']; |
|
48 | 50 |
if ($wancfg['ipaddr'] == "dhcp") |
49 |
interfaces_dhcp_up($_POST['interface']);
|
|
51 |
interfaces_dhcp_up($interface);
|
|
50 | 52 |
else if ($wancfg['ipaddr'] == "pppoe") |
51 | 53 |
interfaces_wan_pppoe_up(); |
52 | 54 |
else if ($wancfg['ipaddr'] == "pptp") |
... | ... | |
292 | 294 |
<td width="78%" class="listr"> |
293 | 295 |
<?=htmlspecialchars($ifinfo['macaddr']);?> |
294 | 296 |
</td> |
295 |
</tr><?php endif; if ($ifinfo['status'] != "down"): ?> |
|
297 |
</tr> |
|
298 |
</form> |
|
299 |
<?php endif; if ($ifinfo['status'] != "down"): ?> |
|
296 | 300 |
<?php if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down"): ?> |
297 | 301 |
<?php if ($ifinfo['ipaddr']): ?> |
298 | 302 |
<tr> |
... | ... | |
360 | 364 |
<?=htmlspecialchars($ifinfo['collisions']);?> |
361 | 365 |
</td> |
362 | 366 |
</tr><?php endif; ?> |
363 |
</form> |
|
364 | 367 |
<?php endif; ?> |
365 | 368 |
<?php $i++; endforeach; ?> |
366 | 369 |
</table> |
367 |
</form> |
|
368 | 370 |
<br> |
369 | 371 |
<strong class="red">Note:<br> |
370 | 372 |
</strong>Using dial-on-demand will bring the connection up again if any packet |
Also available in: Unified diff
More fixes from databeestje