diff --git a/includes/config.php b/includes/config.php index 205226d..f5f3522 100755 --- a/includes/config.php +++ b/includes/config.php @@ -33,4 +33,4 @@ define('RASPI_VNSTAT_ENABLED', true ); // Locale settings define('LOCALE_ROOT', 'locale'); -define('LOCALE_DOMAIN', 'messages'); +define('LOCALE_DOMAIN', 'messages'); diff --git a/includes/dashboard.php b/includes/dashboard.php index 2469f01..b2b3a93 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -60,7 +60,7 @@ function DisplayDashboard(){ preg_match('/state (UP|DOWN)/i', $stdoutIpWRepeatedSpaces, $matchesState ) || $matchesState[1] = 'unknown'; $interfaceState = $matchesState[1]; - // Because of table layout used in the ip output we get the interface statistics directly from + // Because of table layout used in the ip output we get the interface statistics directly from // the system. One advantage of this is that it could work when interface is disable. exec('cat /sys/class/net/'.RASPI_WIFI_CLIENT_INTERFACE.'/statistics/rx_packets ', $stdoutCatRxPackets); $strRxPackets = _('No data'); @@ -126,7 +126,7 @@ function DisplayDashboard(){ preg_match('/txpower ([0-9\.]+ dBm)/i', $stdoutIpInfoWRepSpaces, $matchesTxPower ) || $matchesTxPower[1] = ''; $txPower = $matchesTxPower[1]; - // iw does not have the "Link Quality". This is a is an aggregate value, + // iw does not have the "Link Quality". This is a is an aggregate value, // and depends on the driver and hardware. // Display link quality as signal quality for now. $strLinkQuality = 0; @@ -173,7 +173,7 @@ function DisplayDashboard(){ } } else { $status->addMessage(sprintf(_('Interface is %s.'), strtolower($interfaceState)), $classMsgDevicestatus); - } +} ?>
@@ -274,4 +274,3 @@ function getHumanReadableDatasize($numbytes, $precision = 2) return $humanDatasize; } - diff --git a/includes/functions.php b/includes/functions.php index a34bd55..de0321d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -262,7 +262,7 @@ function DisplayOpenVPNConfig() {

Server settings

- +
@@ -350,14 +350,16 @@ function DisplayLokinetConfig(){
-
Configure TOR proxy
+
Configure Lokinet
@@ -368,100 +370,59 @@ function DisplayLokinetConfig(){

Basic settings

-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
-

Relay settings

-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
+
+
+ + +
Contact Loki user groups for the latest bootstrap file location
+ + ' , PHP_EOL; + } else { + echo '' , PHP_EOL; + }; + $filename = '/home/pi/.lokinet/lokinet.ini'; + if (!file_exists($filename)) { + echo '' , PHP_EOL; + } else { + echo '' , PHP_EOL; + }; + ?> +
+
+
+ +
+

Lokient Daemon

+
+
+ +
+
+
+ +
+
+

This is Loki

+
+ +
+
+
+ + + + +
+
+ +
+
+
+ - ' , PHP_EOL; - } else { - echo '' , PHP_EOL; - }; - ?> - - - - - - - -AutomapHostsOnResolve - +
-
+
@@ -588,7 +549,7 @@ function DisplayTorProxyConfig(){
- ' , PHP_EOL; } else { @@ -602,7 +563,7 @@ function DisplayTorProxyConfig(){
-' , PHP_EOL; } - } + } } diff --git a/includes/system.php b/includes/system.php index f5b23ec..8bb5c3a 100755 --- a/includes/system.php +++ b/includes/system.php @@ -64,14 +64,14 @@ function DisplaySystem(){ if (CSRFValidate()) { if(isset($_POST['locale'])) { $_SESSION['locale'] = $_POST['locale']; - $status->addMessage('Language setting saved', 'success'); + $status->addMessage('Language setting saved', 'success'); } } else { error_log('CSRF violation'); } } - // define locales + // define locales $arrLocales = array( 'en_GB.UTF-8' => 'English', 'de_DE.UTF-8' => 'Deutsch', @@ -181,6 +181,9 @@ function DisplaySystem(){ " /> " onclick="document.location.reload(true)" /> +
+
+ @@ -200,7 +203,7 @@ function DisplaySystem(){
-
+
@@ -220,4 +223,3 @@ function DisplaySystem(){
* @author Bill Zimmerman * @license GNU General Public License, version 3 (GPL-3.0) @@ -118,10 +118,10 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
  • - +
  • -
  • +
  • @@ -131,7 +131,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
  • -
  • +
  • @@ -143,7 +143,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
  • - +
  • @@ -171,6 +171,8 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
  • +
    + @@ -187,7 +189,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES); - - + @@ -256,6 +258,9 @@ $extraFooterScripts = array(); + + +