2019-08-08 02:10:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require('../../includes/csrf.php');
|
|
|
|
include_once('../../includes/config.php');
|
2020-01-29 10:58:36 +01:00
|
|
|
include_once('../../includes/defaults.php');
|
2019-08-08 02:10:40 +02:00
|
|
|
include_once('../../includes/functions.php');
|
2019-08-19 17:27:17 +02:00
|
|
|
include_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);
|
2019-08-08 02:10:40 +02:00
|
|
|
|
2019-08-19 17:27:17 +02:00
|
|
|
echo renderTemplate('wifi_stations', compact('networks'));
|