From e960b0187cf142c0f9af999589ade8d03e14ac61 Mon Sep 17 00:00:00 2001 From: Ionut Popescu Date: Sat, 18 Feb 2023 16:22:23 +0200 Subject: [PATCH] Update v2.12 --- README.md | 3 ++- include/classes/database.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3111f0d..f30b5ba 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Communication with the database of the cms is done using the PDO extension. Sett LANGUAGES ------------ -The platform is available in 11 languages: +The platform is available in 12 languages: - [en] English - [ro] Română @@ -34,6 +34,7 @@ The platform is available in 11 languages: - [hu] Magyar - [de] Deutsch - [el] Ελληνικά + - [ar] العربية If you want to help, you can translate in your language and send us. diff --git a/include/classes/database.php b/include/classes/database.php index 8a11864..25b9b3b 100644 --- a/include/classes/database.php +++ b/include/classes/database.php @@ -11,7 +11,7 @@ public function dbConnection($host, $db_name, $user, $password, $sqlite=null) try { if($sqlite==null) - $this->conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $user, $password); + $this->conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $user, $password, [PDO::ATTR_TIMEOUT => 5, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"]); else { $this->conn = new PDO("sqlite:include/db/site.db");