diff --git a/lang/en_US.ini b/lang/en_US.ini index 5a66510..4e496f8 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -301,4 +301,6 @@ login_protect_system = "Login protection system" cloudflare_info = "Review Cloudflare's Turnstile documentation: " mfa_config = "Multi Factor Authentication (MFA)" set_mfa_globally = "Set the status of MFA" -explain_mfa = "When enabled, MFA is optional for all users. When disabled, no users can use it and it hides the field on the login page." \ No newline at end of file +explain_mfa = "When enabled, MFA is optional for all users. When disabled, no users can use it and it hides the field on the login page." +set_version_publicly = "HTMLy Version Visibility" +explain_version = "By default the version of HTMLy is visible publicly in the source code, some bots and bad actors can use this information for bad reasons so some admins may prefer to hide this." \ No newline at end of file diff --git a/system/admin/views/config.html.php b/system/admin/views/config.html.php index d106af0..afd2ae2 100644 --- a/system/admin/views/config.html.php +++ b/system/admin/views/config.html.php @@ -140,6 +140,27 @@ Please install and enable the INTL extension to format the date format to your l +
+ +
+
+
+ checked> + +
+
+ checked> + +
+
+ +
+
+
diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index 9f28b5f..192e82d 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -328,7 +328,7 @@ if (isset($_GET['search'])) { AdminLTE
- HTMLy +
diff --git a/system/configList.json b/system/configList.json index 0296c09..0f041c4 100644 --- a/system/configList.json +++ b/system/configList.json @@ -88,5 +88,6 @@ "views.root", "views.layout", "autosave.enable", - "mfa.state" + "mfa.state", + "show.version" ] \ No newline at end of file diff --git a/system/includes/functions.php b/system/includes/functions.php index 5ab35c6..2330990 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -3440,7 +3440,9 @@ function head_contents() $output .= '' . "\n"; $output .= '' . "\n"; $output .= '' . "\n"; - $output .= '' . "\n"; + if (config('show.version') == 'true') { + $output .= '' . "\n"; + } $output .= $favicon; $output .= '' . "\n"; $output .= '' . "\n";