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);
|
connectedWifiStations($networks);
|
||||||
|
|
||||||
echo renderTemplate("configure_client", compact("status"));
|
echo renderTemplate("configure_client", compact("status"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -173,12 +173,21 @@ function DisplayDashboard()
|
|||||||
|
|
||||||
echo renderTemplate("dashboard", compact(
|
echo renderTemplate("dashboard", compact(
|
||||||
"status",
|
"status",
|
||||||
"ipv4Addrs", "ipv4Netmasks",
|
"ipv4Addrs",
|
||||||
"ipv6Addrs", "macAddr",
|
"ipv4Netmasks",
|
||||||
"strRxPackets", "strRxBytes",
|
"ipv6Addrs",
|
||||||
"strTxPackets", "strTxBytes",
|
"macAddr",
|
||||||
"connectedSSID", "connectedBSSID",
|
"strRxPackets",
|
||||||
"bitrate", "signalLevel", "txPower", "frequency", "strLinkQuality",
|
"strRxBytes",
|
||||||
|
"strTxPackets",
|
||||||
|
"strTxBytes",
|
||||||
|
"connectedSSID",
|
||||||
|
"connectedBSSID",
|
||||||
|
"bitrate",
|
||||||
|
"signalLevel",
|
||||||
|
"txPower",
|
||||||
|
"frequency",
|
||||||
|
"strLinkQuality",
|
||||||
"wlan0up"
|
"wlan0up"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -213,4 +222,3 @@ function getHumanReadableDatasize($numbytes, $precision = 2)
|
|||||||
|
|
||||||
return $humanDatasize;
|
return $humanDatasize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,10 +138,17 @@ function DisplayDHCPConfig()
|
|||||||
echo renderTemplate("dhcp", compact(
|
echo renderTemplate("dhcp", compact(
|
||||||
"status",
|
"status",
|
||||||
"serviceStatus",
|
"serviceStatus",
|
||||||
"RangeStart", "RangeEnd",
|
"RangeStart",
|
||||||
|
"RangeEnd",
|
||||||
"arrRangeLeaseTime",
|
"arrRangeLeaseTime",
|
||||||
"mselected", "hselected", "dselected", "infiniteselected",
|
"mselected",
|
||||||
"dnsmasq_state", "conf", "dhcpHost",
|
"hselected",
|
||||||
"interfaces", "leases"
|
"dselected",
|
||||||
|
"infiniteselected",
|
||||||
|
"dnsmasq_state",
|
||||||
|
"conf",
|
||||||
|
"dhcpHost",
|
||||||
|
"interfaces",
|
||||||
|
"leases"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -194,7 +194,9 @@ function ParseConfig($arrConfig)
|
|||||||
$config = array();
|
$config = array();
|
||||||
foreach ($arrConfig as $line) {
|
foreach ($arrConfig as $line) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
if ($line == "" || $line[0] == "#") { continue; }
|
if ($line == "" || $line[0] == "#") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
list($option, $value) = array_map("trim", explode("=", $line, 2));
|
list($option, $value) = array_map("trim", explode("=", $line, 2));
|
||||||
|
|
||||||
|
@ -59,10 +59,15 @@ function DisplayHostAPDConfig()
|
|||||||
|
|
||||||
echo renderTemplate("hostapd", compact(
|
echo renderTemplate("hostapd", compact(
|
||||||
"status",
|
"status",
|
||||||
"serviceStatus", "hostapdstatus",
|
"serviceStatus",
|
||||||
"interfaces", "arrConfig",
|
"hostapdstatus",
|
||||||
"arr80211Standard", "selectedHwMode",
|
"interfaces",
|
||||||
"arrSecurity", "arrEncType", "arrHostapdConf"
|
"arrConfig",
|
||||||
|
"arr80211Standard",
|
||||||
|
"selectedHwMode",
|
||||||
|
"arrSecurity",
|
||||||
|
"arrEncType",
|
||||||
|
"arrHostapdConf"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,4 +265,3 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,4 +102,3 @@ function DisplaySystem()
|
|||||||
|
|
||||||
echo renderTemplate("system", compact("arrLocales", "status", "system"));
|
echo renderTemplate("system", compact("arrLocales", "status", "system"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user