From 3e035d68d217db30d715cbcb1ace8e1d2172c7e5 Mon Sep 17 00:00:00 2001 From: Majesty <32709570+majestyotbr@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:01:54 -0300 Subject: [PATCH 1/2] feat: database encryption and port (#116) --- config.php | 1 + system/database.php | 1 + 2 files changed, 2 insertions(+) diff --git a/config.php b/config.php index 0b2196a59..8c95d3079 100644 --- a/config.php +++ b/config.php @@ -78,6 +78,7 @@ 'database_log' => false, // should database queries be logged and and saved into system/logs/database.log? 'database_socket' => '', // set if you want to connect to database through socket (example: /var/run/mysqld/mysqld.sock) 'database_persistent' => false, // use database permanent connection (like server), may speed up your site + 'database_encryption' => 'sha1', // multiworld system (only TFS 0.3) 'multiworld' => false, // use multiworld system? diff --git a/system/database.php b/system/database.php index b6232fd0e..7ef2261aa 100644 --- a/system/database.php +++ b/system/database.php @@ -103,6 +103,7 @@ try { $ots->connect([ 'host' => $config['database_host'], + 'port' => $config['database_port'], 'user' => $config['database_user'], 'password' => $config['database_password'], 'database' => $config['database_name'], From 3e23cb0ccc9ef4e0fc194b47f229462f120b4ae3 Mon Sep 17 00:00:00 2001 From: Majesty <32709570+majestyotbr@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:03:16 -0300 Subject: [PATCH 2/2] fix: player name in forum post (#118) --- system/templates/forum.show_thread.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/templates/forum.show_thread.html.twig b/system/templates/forum.show_thread.html.twig index 33e9e9001..86fcf5cc6 100644 --- a/system/templates/forum.show_thread.html.twig +++ b/system/templates/forum.show_thread.html.twig @@ -79,7 +79,7 @@
-
{{ author_link|raw }}
+
{{ post.player_link|raw }}
{% if post.outfit is defined %}