diff options
author | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
commit | 209356b8ade1920b50d1d3a1a5e121c6623d167b (patch) | |
tree | 5301396987d1510f715a0b1c24754873af19e1dc /app.php | |
parent | 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff) | |
download | pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2 pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip |
Update
Diffstat (limited to 'app.php')
-rw-r--r-- | app.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ <?php +if (!isset($_COOKIE["PEH2_LANGUAGE"])) { + $_COOKIE["PEH2_LANGUAGE"] = "en"; + setcookie("PEH2_LANGUAGE", "en", time() + (86400 * 365), "/"); +} + if (str_ends_with($_GET['_'], "/")) { $pagename = substr($_GET['_'], 0, strlen($_GET['_']) - 1); } else { |