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