Add certificate option to openvpn GUI

add JS code to display options and selected ovpn file
This commit is contained in:
Christian Zeitnitz
2021-03-27 10:29:09 +01:00
parent b2b19cd159
commit 720e6c3e77
4 changed files with 77 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ function DisplayOpenVPNConfig()
$authUser = current($auth);
$authPassword = next($auth);
}
$clients = preg_grep('~\login.(conf)$~', scandir(pathinfo(RASPI_OPENVPN_CLIENT_LOGIN, PATHINFO_DIRNAME)));
$clients = preg_grep('/client.(conf)$/', scandir(pathinfo(RASPI_OPENVPN_CLIENT_CONFIG, PATHINFO_DIRNAME)));
$logEnable = 0;
if (!empty($_POST) && !isset($_POST['log-openvpn'])) {