From be58daab97be9bb46496d3c0a40b7241327e309d Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 15 Sep 2019 15:55:23 -0400 Subject: [PATCH] Clean up reporting of start/stop Lokinet. --- includes/functions.php | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 82fa73b..3b12d55 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -604,30 +604,11 @@ function SaveTORAndVPNConfig() //START } elseif (isset($_POST['StartDaemon'])) { - /*?> -
- Launching Lokinet. -
- $output"; - */ + exec('sudo /var/lib/lokinet/lokilaunch.sh start'); //STOP } elseif (isset($_POST['StopDaemon'])) { - ?> -
- Exiting Lokinet. -
- -
- Stopping Lokinet background daemon process. -
- $output"; + exec('sudo /var/lib/lokinet/lokilaunch.sh stop'); //GENERATE LOKINET.INI } elseif (isset($_POST['GenerateLokinet'])) { @@ -664,5 +645,7 @@ function SaveTORAndVPNConfig() $output = shell_exec('sudo /var/lib/lokinet/lokilaunch.sh bootstrap '.$bootstrap.''); echo "
$output
"; } + + DisplayLokinetConfig(); } ?>