From f3638c58aa61419adad8043fa72a18f95bd1e136 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 25 Jul 2024 15:54:09 +0200 Subject: [PATCH] get rid of flag cdn --- install/assets/css/installer.css | 5 +++++ install/includes/install_config/install_lib.php | 11 +++++++++++ install/includes/interface_assets/footer.php | 6 ++++++ install/index.php | 3 +-- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/install/assets/css/installer.css b/install/assets/css/installer.css index 8ff7b4eee..c7a420abe 100644 --- a/install/assets/css/installer.css +++ b/install/assets/css/installer.css @@ -1,6 +1,11 @@ /*! * No overrides for the default theme as it aligns with general.css */ + +body { + font-family: "Twemoji Country Flags", "Helvetica", "Comic Sans", serif; +} + :root { --cl-border-btn-pwd: var(--bs-body-bg); } diff --git a/install/includes/install_config/install_lib.php b/install/includes/install_config/install_lib.php index deedccd2e..2afe5f829 100644 --- a/install/includes/install_config/install_lib.php +++ b/install/includes/install_config/install_lib.php @@ -77,6 +77,17 @@ function verify_log() { } } +function country2flag($code) { + $code = strtoupper($code); + + $offset = 0x1F1E6; + $code_p1 = $offset + ord($code[0]) - ord('A'); + $code_p2 = $offset + ord($code[1]) - ord('A'); + + $flag = mb_chr($code_p1, 'UTF-8') . mb_chr($code_p2, 'UTF-8'); + return $flag; +} + // Function to read the debug logfile function read_logfile() { if (verify_log()) { diff --git a/install/includes/interface_assets/footer.php b/install/includes/interface_assets/footer.php index a434886a3..91db2f5e5 100644 --- a/install/includes/interface_assets/footer.php +++ b/install/includes/interface_assets/footer.php @@ -32,6 +32,12 @@ location.reload(); }); +
  • - - +