From 4b47200d1948aa725730fc64d8ae85809e878730 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 31 Mar 2019 15:49:40 -0400 Subject: [PATCH] button logic change --- includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index f38f665..2e3c546 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -370,11 +370,12 @@ function DisplayLokinetConfig(){ ' , PHP_EOL; - } - if( $lokinetstatus[0] != 0 ) { + } else { echo '' , PHP_EOL; } + $filename = '/home/pi/loki-network/lokinet.ini'; + if ( file_exists($filename)) { echo '' , PHP_EOL; } else { @@ -592,7 +593,6 @@ function SaveTORAndVPNConfig(){ } elseif( isset($_POST['StartLokinet']) ) { exec( 'sudo /home/pi/loki-network/lokilaunch.sh "start" > /dev/null &', $return); ?> -
Starting Lokinet background daemon process.