forked from antux18/ChasseTresorPange
antux18
66956c55c4
Changement du nom en chasse au code. Amélioration affichage de la fenêtre de capture du code. Fix cookie langue.
32 lines
593 B
PHP
32 lines
593 B
PHP
<?php
|
|
require_once "database.php";
|
|
|
|
$rq_path = "require/";
|
|
|
|
$lg = "fr";
|
|
|
|
if (isset($_GET["lg"])) {
|
|
if (htmlspecialchars($_GET["lg"]) == "en") {
|
|
$lg = "en";
|
|
}
|
|
}
|
|
else {
|
|
if (isset($_COOKIE["language"])) {
|
|
if (htmlspecialchars($_COOKIE["language"]) == "en") {
|
|
$lg = "en";
|
|
}
|
|
}
|
|
}
|
|
|
|
setcookie(
|
|
"language",
|
|
$lg,
|
|
time() + (365 * 24 * 60 * 60),
|
|
"/",
|
|
"",
|
|
false,
|
|
false
|
|
);
|
|
|
|
require_once __DIR__ . "/locales/" . $lg . ".php";
|
|
?>
|