Finished base for about page, fixed height issue on mobile, Improved config and lang utils

Update index.php, config.php, and 8 more files...
This commit is contained in:
2023-11-10 03:24:30 +01:00
parent faf5837650
commit e5429e4484
10 changed files with 295 additions and 102 deletions

View File

@@ -4,6 +4,8 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
header('HTTP/1.1 403 Forbidden');
die();
}
// FIXME: Make a note of which variables are being used from that file !
include_once 'commons/config.php';
// This helper requires PHP 8 or newer !
@@ -61,6 +63,10 @@ if(str_starts_with($_SERVER['REQUEST_URI'], "/en/")) {
}
}
// Preparing other related variables
$lang_number_decimal = $user_language == "en" ? "." : ",";
$lang_number_thousands = $user_language == "en" ? "," : ".";
// Setting headers
header("Content-Language: " . $user_language);