From 5d7f486084c50259e5aa091f5e840af26faf4dc9 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 21:58:27 -0400 Subject: [PATCH] tie in start/stop daemon with bash. --- includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 2193b7c..421fa6e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -349,7 +349,7 @@ function DisplayLokinetConfig() $status = '
Lokinet daemon is not running
'; } else { - $status = '
Lokinet is running + $status = '
Lokinet daemon is running
'; } ?>
@@ -387,14 +387,14 @@ function DisplayLokinetConfig() ' , PHP_EOL; + echo '' , PHP_EOL; } else { - echo '' , PHP_EOL; + echo '' , PHP_EOL; } if ($lokinetstatus[0] == 0) { - echo '' , PHP_EOL; + echo '' , PHP_EOL; } else { - echo '' , PHP_EOL; + echo '' , PHP_EOL; } $filename = '/usr/local/bin/lokinet.ini'; @@ -601,7 +601,7 @@ function SaveTORAndVPNConfig() foreach ($return as $line) { echo htmlspecialchars($line, ENT_QUOTES).'
' , PHP_EOL; } - } elseif (isset($_POST['StartLokinet'])) { + } elseif (isset($_POST['StartDaemon'])) { ?>
Starting Lokinet background daemon process. @@ -615,7 +615,7 @@ function SaveTORAndVPNConfig() # sleep(5); # $output = shell_exec('sudo dnsmasq --interface=wlan0 --bind-interfaces --dhcp-range=10.3.141.0,10.3.141.24,12h --conf-file=/etc/resolv.conf'); echo "
$output
"; - } elseif (isset($_POST['StopLokinet'])) { + } elseif (isset($_POST['StopDaemon'])) { ?>
Stopping Lokinet background daemon process.