Add include wifi_functions getWifiInterface()

This commit is contained in:
billz
2020-06-07 17:17:16 +01:00
parent a1940ae8f2
commit a6a92235f9
4 changed files with 10 additions and 15 deletions

View File

@@ -1,14 +1,14 @@
<?php
require_once 'config.php';
require_once 'hostapd.php';
require_once 'includes/config.php';
require_once 'includes/wifi_functions.php';
/**
* Show dashboard page.
*/
function DisplayDashboard(&$extraFooterScripts)
{
getWifiInterface();
$status = new StatusMessages();
// Need this check interface name for proper shell execution.
if (!preg_match('/^([a-zA-Z0-9]+)$/', $_SESSION['client_iface'])) {