diff options
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 { |