From d5ad9faad8a0ae63a00dfec761b32775aa43f83a Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 30 Mar 2019 20:40:15 -0400 Subject: [PATCH] Use status --- includes/functions.php | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 43631a4..b65801e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -599,11 +599,13 @@ function SaveTORAndVPNConfig(){ } elseif( isset($_POST['StartLokinet']) ) { exec( 'sudo /home/pi/loki-network/lokilaunch.sh "start" > /dev/null &', $return ); - ?> -
- Starting Lokinet -
- + //
+ // Starting Lokinet + //
+ // Lokinet is starting + '; } elseif( isset($_POST['StopLokinet']) ) { exec( 'sudo /home/pi/loki-network/lokilaunch.sh "stop" > /dev/null &', $return ); @@ -630,17 +632,5 @@ function SaveTORAndVPNConfig(){ Lokinet daemon is not running - '; -} else { - $status = '
Lokinet is running -
'; } -sleep (5); -echo $status; ?>