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(); } ?>