2019-08-08 02:10:40 +02:00
|
|
|
<?php
|
|
|
|
|
2020-02-15 18:57:46 +01:00
|
|
|
require '../../includes/csrf.php';
|
|
|
|
require_once '../../includes/config.php';
|
|
|
|
require_once '../../includes/defaults.php';
|
|
|
|
require_once '../../includes/functions.php';
|
|
|
|
require_once '../../includes/wifi_functions.php';
|
2019-08-08 02:10:40 +02:00
|
|
|
|
2019-08-19 17:27:17 +02:00
|
|
|
$networks = [];
|
|
|
|
$network = null;
|
|
|
|
$ssid = null;
|
2019-08-08 02:10:40 +02:00
|
|
|
|
2019-08-19 17:27:17 +02:00
|
|
|
knownWifiStations($networks);
|
|
|
|
nearbyWifiStations($networks, !isset($_REQUEST["refresh"]));
|
|
|
|
connectedWifiStations($networks);
|
2020-05-24 09:14:07 +02:00
|
|
|
sortNetworksByRSSI($networks);
|
2019-08-08 02:10:40 +02:00
|
|
|
|
2021-02-02 13:26:14 +01:00
|
|
|
echo renderTemplate('wifi_stations', compact('networks'), true);
|