function PHYINF_getruntimephymac($inf) { $phyp = PHYINF_getruntimephypath($inf); if ($phyp == "") { return ""; } if (query($phyp . "/valid") == "1") { return query($phyp . "/macaddr"); } return ""; }
return true; }, PreSubmit: function() { if (this.activewan==="") { BODY.ShowAlert("<?php echo I18N("j", "There is no interface can access the Internet! Please check the cable, and the Internet settings!"); ?> "); return null; } <?php $linkstatus = get("", PHYINF_getruntimephypath("WAN-1") . "/linkstatus"); if ($linkstatus == "10F") { $max_wan_port_speed = 10240; } else { if ($linkstatus == "100F") { $max_wan_port_speed = 102400; } else { if ($linkstatus == "1000F") { $max_wan_port_speed = 1024000; } else { $max_wan_port_speed = 1024000; } } } ?> var max_wan_port_speed = <?php