mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Processed with phpcbf for PSR-2 coding standard
This commit is contained in:
parent
ef406edc61
commit
8be24381a8
@ -96,5 +96,4 @@ function DisplayWPAConfig()
|
||||
connectedWifiStations($networks);
|
||||
|
||||
echo renderTemplate("configure_client", compact("status"));
|
||||
|
||||
}
|
||||
|
@ -173,12 +173,21 @@ function DisplayDashboard()
|
||||
|
||||
echo renderTemplate("dashboard", compact(
|
||||
"status",
|
||||
"ipv4Addrs", "ipv4Netmasks",
|
||||
"ipv6Addrs", "macAddr",
|
||||
"strRxPackets", "strRxBytes",
|
||||
"strTxPackets", "strTxBytes",
|
||||
"connectedSSID", "connectedBSSID",
|
||||
"bitrate", "signalLevel", "txPower", "frequency", "strLinkQuality",
|
||||
"ipv4Addrs",
|
||||
"ipv4Netmasks",
|
||||
"ipv6Addrs",
|
||||
"macAddr",
|
||||
"strRxPackets",
|
||||
"strRxBytes",
|
||||
"strTxPackets",
|
||||
"strTxBytes",
|
||||
"connectedSSID",
|
||||
"connectedBSSID",
|
||||
"bitrate",
|
||||
"signalLevel",
|
||||
"txPower",
|
||||
"frequency",
|
||||
"strLinkQuality",
|
||||
"wlan0up"
|
||||
));
|
||||
}
|
||||
@ -213,4 +222,3 @@ function getHumanReadableDatasize($numbytes, $precision = 2)
|
||||
|
||||
return $humanDatasize;
|
||||
}
|
||||
|
||||
|
@ -138,10 +138,17 @@ function DisplayDHCPConfig()
|
||||
echo renderTemplate("dhcp", compact(
|
||||
"status",
|
||||
"serviceStatus",
|
||||
"RangeStart", "RangeEnd",
|
||||
"RangeStart",
|
||||
"RangeEnd",
|
||||
"arrRangeLeaseTime",
|
||||
"mselected", "hselected", "dselected", "infiniteselected",
|
||||
"dnsmasq_state", "conf", "dhcpHost",
|
||||
"interfaces", "leases"
|
||||
"mselected",
|
||||
"hselected",
|
||||
"dselected",
|
||||
"infiniteselected",
|
||||
"dnsmasq_state",
|
||||
"conf",
|
||||
"dhcpHost",
|
||||
"interfaces",
|
||||
"leases"
|
||||
));
|
||||
}
|
||||
|
@ -194,7 +194,9 @@ function ParseConfig($arrConfig)
|
||||
$config = array();
|
||||
foreach ($arrConfig as $line) {
|
||||
$line = trim($line);
|
||||
if ($line == "" || $line[0] == "#") { continue; }
|
||||
if ($line == "" || $line[0] == "#") {
|
||||
continue;
|
||||
}
|
||||
|
||||
list($option, $value) = array_map("trim", explode("=", $line, 2));
|
||||
|
||||
|
@ -59,10 +59,15 @@ function DisplayHostAPDConfig()
|
||||
|
||||
echo renderTemplate("hostapd", compact(
|
||||
"status",
|
||||
"serviceStatus", "hostapdstatus",
|
||||
"interfaces", "arrConfig",
|
||||
"arr80211Standard", "selectedHwMode",
|
||||
"arrSecurity", "arrEncType", "arrHostapdConf"
|
||||
"serviceStatus",
|
||||
"hostapdstatus",
|
||||
"interfaces",
|
||||
"arrConfig",
|
||||
"arr80211Standard",
|
||||
"selectedHwMode",
|
||||
"arrSecurity",
|
||||
"arrEncType",
|
||||
"arrHostapdConf"
|
||||
));
|
||||
}
|
||||
|
||||
@ -260,4 +265,3 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -102,4 +102,3 @@ function DisplaySystem()
|
||||
|
||||
echo renderTemplate("system", compact("arrLocales", "status", "system"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user