diff options
Diffstat (limited to 'includes/language.inc')
-rw-r--r-- | includes/language.inc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/language.inc b/includes/language.inc deleted file mode 100644 index 424af3b..0000000 --- a/includes/language.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -$default = "en"; - -$lf = $_COOKIE['PEH2_LANGUAGE'] ?? $default; - -if (str_contains("/", $lf)) $lf = "en"; -if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/i18n/" . $lf . ".json")) $lf = "en"; - -$lang = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/i18n/" . $lf . ".json"), true);
\ No newline at end of file |