diff options
author | Minteck <contact@minteck.org> | 2022-06-04 16:28:14 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-06-04 16:28:14 +0200 |
commit | ca19a2bf2916a555f96ea7ab4791267dd5601c72 (patch) | |
tree | 94a717378715891956c2bc10a52c0202fad1c748 | |
parent | 53d1dc7f09490227cd1905b420153d512ac0927a (diff) | |
download | cdn-ca19a2bf2916a555f96ea7ab4791267dd5601c72.tar.gz cdn-ca19a2bf2916a555f96ea7ab4791267dd5601c72.tar.bz2 cdn-ca19a2bf2916a555f96ea7ab4791267dd5601c72.zip |
Commit
-rw-r--r-- | statusbar.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/statusbar.php b/statusbar.php index 9300121..cf94cb5 100644 --- a/statusbar.php +++ b/statusbar.php @@ -15,6 +15,7 @@ if (isset($_COOKIE['FL_SESSION_TOKEN'])) { $_USER = $_PROFILE['login']; $_SUID = $_PROFILE['login']; $_FULLNAME = $_PROFILE['name']; + $_FRENCH = $_PROFILE['locale']['name'] === "fr"; } else { header("Location: https://" . $_CONFIG["Global"]["domain"] . "/login/?r=" . urlencode("https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]")); die(); @@ -30,6 +31,16 @@ if (isset($_PROFILE["projectRoles"]) && is_array($_PROFILE["projectRoles"]) && i $_ADMIN = false; } +function l($fr, $en) { + global $_FRENCH; + + if ($_FRENCH) { + return $fr; + } else { + return $en; + } +} + ?> <!DOCTYPE html> |