From d2253debd34c2cea5cf2614b6908a6453f804c13 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Tue, 30 Apr 2019 22:25:45 -0400 Subject: [PATCH] beutify code --- includes/functions.php | 69 +++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index c8485b2..f3f7efd 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -359,6 +359,7 @@ function DisplayLokinetConfig() $status = '
Successfully Connected to Lokinet
'; } + ?>
@@ -378,27 +379,16 @@ function DisplayLokinetConfig()

-
All 4 buttons below must be active (green) to connect to Lokinet. If there isn't a current lokinet.ini file found on the system the "Generate.ini" button will be red. The .ini file must be generated first by pressing the button. Similarly the absense of a valid bootstrap will be indicated by the red "Bootstrap" button. Applying a bootstrap by pressing the apply button without submitting a valid URL in the textbox area will apply the original default bootstrap in place of one being provided. Stopping the daemon also exits Lokinet. If you simply exit Lokinet the daemon is left running in the background. So in summary if necessary generate the .ini and bootstrap then you are able to connect to lokinet and the daemon will be started. -
- - - - -
+
All 4 buttons below must be active (green) to connect to Lokinet. If there isn't a current lokinet.ini file found on the system the "Generate.ini" button will be red. The .ini file must be generated first by pressing the button. Similarly the absense of a valid bootstrap will be indicated by the red "Bootstrap" button. Applying a bootstrap by pressing the apply button without submitting a valid URL in the textbox area will apply the original default bootstrap in place of one being provided. Stopping the daemon also exits Lokinet. If you simply exit Lokinet the daemon is left running in the background. So in summary if necessary generate the .ini and bootstrap then you are able to connect to lokinet and the daemon will be started. +
+ +
+
+
Enter a valid bootstrap url below and apply to overwrite the current bootstrap:
+ + + -
- -
Enter a valid bootstrap url below and apply to overwrite the current bootstrap:
- - - - - ' , PHP_EOL; } else { @@ -408,15 +398,17 @@ function DisplayLokinetConfig() echo '' , PHP_EOL; } else { echo '' , PHP_EOL; - } + } $filename = '/usr/local/bin/lokinet.ini'; - if (file_exists($filename)) { - echo '' , PHP_EOL; - } else { - echo '' , PHP_EOL; - } ?> + if (file_exists($filename)) { + echo '' , PHP_EOL; + } else { + echo '' , PHP_EOL; + } + ?> +
@@ -429,21 +421,16 @@ function DisplayLokinetConfig()
- - - -
-
-
- - - -
-
- -
- - + + + + + + + + + +