From 198a88a6305a2b0fc62f17fbe08a5a809f669481 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 31 Mar 2019 13:32:49 -0400 Subject: [PATCH] formatting --- includes/functions.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index c4a5eda..311721d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -336,14 +336,6 @@ function DisplayLokinetConfig(){ } else { $status = '
Lokinet is running
'; -/* } - $arrConfig = array(); - foreach( $return as $a ) { - if( $a[0] != "#" ) { - $arrLine = explode( " ",$a) ; - $arrConfig[$arrLine[0]]=$arrLine[1]; - } - */ } ?>
@@ -379,7 +371,7 @@ function DisplayLokinetConfig(){ if( $lokinetstatus[0] == 0 ) { echo '' , PHP_EOL; } - if ($lokinetstatus[0] != 0 ) { + if($lokinetstatus[0] != 0 ) { echo '' , PHP_EOL; } $filename = '/root/.lokinet/lokinet.ini'; @@ -597,42 +589,35 @@ function SaveTORAndVPNConfig(){ foreach( $return as $line ) { echo htmlspecialchars($line, ENT_QUOTES).'
' , PHP_EOL; } - } elseif( isset($_POST['StartLokinet']) ) { exec( 'sudo /home/pi/loki-network/lokilaunch.sh "start" > /dev/null &', $return); ?>
Starting Lokinet background daemon process. -
+
/dev/null &', $return); ?> -
Stopping Lokinet background daemon process.
/dev/null &', $return); ?> -
Generating Lokinet Configuration
/dev/null &', $return); ?> -
Regenerating Lokinet Configuration