From 31879298a03539ce45afb86a8ea50958bd8d4659 Mon Sep 17 00:00:00 2001 From: glen Date: Tue, 20 Oct 2020 18:06:16 -0400 Subject: [PATCH] Update to v2.0 includes WHOIS support --- README.md | 2 +- config/lokilaunch.sh | 5 ++++ includes/config.php | 2 +- includes/functions.php | 54 +++++++++++++++++++++++++++++++++++++++--- index.php | 2 +- 5 files changed, 59 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 82b5804..838dbd8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![](https://i.imgur.com/mXuacOH.jpg) -# `$ Lokiap-webgui` [![Release 1.9](https://img.shields.io/badge/Release-1.9-green.svg)](https://github.com/necro-nemesis/raspap-webgui/releases) +# `$ Lokiap-webgui` [![Release 2.0](https://img.shields.io/badge/Release-2.0-green.svg)](https://github.com/necro-nemesis/raspap-webgui/releases) LokiAP interfaces witht Lokinet daemon to facilitate connections to the Lokinet global privacy network. LokiAP provides a simple, responsive web interface to control wifi, hostapd, Lokinet daemon and related services necessary to access Lokinet on the Raspberry Pi or Orange Pi. diff --git a/config/lokilaunch.sh b/config/lokilaunch.sh index a3a3579..b480bde 100644 --- a/config/lokilaunch.sh +++ b/config/lokilaunch.sh @@ -47,6 +47,11 @@ exitdown) lokinet-vpn --down ;; +whois) + echo -n "LNS Registration Information\n\n" + whois -h public.loki.foundation "$2" + ;; + *) echo "Usage: "$1" {start|stop|gen|bootstrap|exitup|exitdown}" exit 1 diff --git a/includes/config.php b/includes/config.php index cf0e156..17da7f1 100755 --- a/includes/config.php +++ b/includes/config.php @@ -1,6 +1,6 @@
  • Daemon Settings
  • + +
  • WHOIS +
  • +
    @@ -260,6 +264,21 @@ function DisplayLokinetConfig() } ?>
    + + +
    +
    +
    Enter .loki Address:
    + + +
    + ' , PHP_EOL; + ?>
    +
    +
    + +

    Lokient Daemon

    @@ -320,10 +339,12 @@ function ActivateLokinetConfig() //START if (isset($_POST['StartDaemon'])) { exec('sudo /var/lib/lokinet/lokilaunch.sh start'); + DisplayLokinetConfig(); //STOP } elseif (isset($_POST['StopDaemon'])) { exec('sudo /var/lib/lokinet/lokilaunch.sh stop'); + DisplayLokinetConfig(); //START EXIT } elseif (isset($_POST['StartExit'])) { @@ -335,12 +356,17 @@ function ActivateLokinetConfig() echo "
    $output
    "; GLOBAL $exitstatus; $exitstatus = TRUE; + ?>' , PHP_EOL; + echo "\n"; + ?>
    $output"; + ?>' , PHP_EOL; + echo "\n"; + ?>
    $output"; + ?>' , PHP_EOL; + echo "\n"; + ?>
    $output"; - } + ?>' , PHP_EOL; + echo "\n"; + ?>
    $output"; + ?>' , PHP_EOL; + echo "\n"; + ?>
    diff --git a/index.php b/index.php index a43c2b6..a349773 100755 --- a/index.php +++ b/index.php @@ -12,7 +12,7 @@ * * @author TechnicalTumbleweed (Loki->Discord/Telegram) * @license GNU General Public License, version 3 (GPL-3.0) - * @version 1.9 + * @version 2.0 * @link https://github.com/necro-nemesis/Lokiap-webgui */