From 20e44a0f1f431bebb2482f09c68f2f4aefa13862 Mon Sep 17 00:00:00 2001 From: hael Date: Mon, 9 Sep 2024 15:33:41 +0000 Subject: [PATCH] VPN_KEY to VPN_PASS --- functions.php | 2 +- install.html | 4 ++-- install.php | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/functions.php b/functions.php index 4261f85..9984c08 100644 --- a/functions.php +++ b/functions.php @@ -171,7 +171,7 @@ function put_install_envs() { putenv('VPN_PROXY='.$_POST["vpn"]); if ($_POST["vpn"]=="yes") { putenv('VPN_DOMAIN='.$_POST["vpn_domain"]); - putenv('VPN_KEY='.$_POST["vpn_key"]); + putenv('VPN_PASS='.$_POST["vpn_pass"]); putenv('LETSENCRYPT_MAIL='.$_POST["letsencrypt_mail"]); putenv('LETSENCRYPT_SERVERNAME='.$_POST["letsencrypt_servername"]); diff --git a/install.html b/install.html index b3e139c..3bc9a08 100644 --- a/install.html +++ b/install.html @@ -78,8 +78,8 @@
- - + +
diff --git a/install.php b/install.php index 6e1b199..dbc7623 100644 --- a/install.php +++ b/install.php @@ -12,14 +12,13 @@ if ($_POST["SMARTHOST_PROXY"]=="Y") { } +/* if ($_POST["VPN_PROXY"]=="Y") { - $vpnkey_url = get_vpn_url($_POST["VPN_DOMAIN"],$_POST["VPN_KEY"]); + $vpnkey_url = get_vpn_url($_POST["VPN_DOMAIN"],$_POST["VPN_PASS"]); // DEBUG - echo $vpnkey_url; - echo "
"; - echo file_get_contents($vpnkey_url); } +*/ if ($_POST["DISCOVERY"]=="yes") { if ($_POST["DISCOVERY_DIR"] == "" ) $_POST["DISCOVERY_DIR"]="/usr/local/bin/";