From 97a3aa106b18ba4efcc5fb2996295cd0acf63164 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 14 Sep 2019 09:25:34 -0400 Subject: [PATCH] Clean up bootstrap PHP. --- includes/functions.php | 68 +++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 47278fd..78d3f72 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -596,64 +596,70 @@ function SaveTORAndVPNConfig() foreach ($return as $line) { echo htmlspecialchars($line, ENT_QUOTES).'
' , PHP_EOL; } +/* Lokinet script commands start HERE +//// +//// LOKINET +//// +//*/ + + //START } elseif (isset($_POST['StartDaemon'])) { - ?> + ?>
- Launching Lokinet. + Launching Lokinet.
$output"; + echo "
$output
"; + + //STOP } elseif (isset($_POST['StopDaemon'])) { - ?> + ?>
- Exiting Lokinet. + Exiting Lokinet.
- Stopping Lokinet background daemon process. + Stopping Lokinet background daemon process.
$output"; + echo "
$output
"; + + //GENERATE LOKINET.INI } elseif (isset($_POST['GenerateLokinet'])) { - ?> + ?>
- Generating Lokinet Configuration + Generating Lokinet Configuration
$output"; + echo "
$output
"; + + //REGENERATE LOKINET.INI } elseif (isset($_POST['ReGenerateLokinet'])) { - ?> + ?>
- Regenerating Lokinet Configuration + Regenerating Lokinet Configuration
$output"; + echo "
$output
"; + + //APPLY LOKINET-BOOTSTRAP } elseif (isset($_POST['ApplyLokinetSettings'])) { - ?> -
- Exiting Lokinet. -
- -
+ ?> +
Stopping Lokinet background daemon process. -
- $output"; - $bootstrap = $_POST['lokinetbootstrap']; - ?> -
+
+
Applying Bootstrap -
- + $output"; } }