summaryrefslogtreecommitdiff
path: root/Core/Functions/func_language.php
diff options
context:
space:
mode:
authorDebulois <quentin@debulois.fr>2022-03-31 14:56:45 +0200
committerDebulois <quentin@debulois.fr>2022-03-31 14:56:45 +0200
commitb637d625216e50602d0bde8a544c281ca00af5fa (patch)
tree5e44ad1048f8a3583cc854fe3bc21086ede4d88a /Core/Functions/func_language.php
parentc9d4c87b21f1050a780f5296961d24bd17c9cdc8 (diff)
Grosse maj encore avec ajout de fonctionnalités dans l'admin principalement et grosse remise en page / rennomage et preparation pour retravailler le CSS
Diffstat (limited to 'Core/Functions/func_language.php')
-rw-r--r--Core/Functions/func_language.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/Core/Functions/func_language.php b/Core/Functions/func_language.php
new file mode 100644
index 0000000..a1c1498
--- /dev/null
+++ b/Core/Functions/func_language.php
@@ -0,0 +1,22 @@
+<?php
+
+// ############################################################################
+// # #
+// # Description: Modification de la variable lang de la session #
+// # qui sert à définir quel dossier de language importer #
+// # #
+// ############################################################################
+
+function language_set($language) {
+ $_SESSION["lang"] = $language;
+
+ // Redirection vers la page actuelle avec la langue à affiche.
+ if ($_SESSION["src"] == "index") {
+ header("Location: /".$_SESSION["src"].".php");
+ } else {
+ header("Location: /Templates/".$_SESSION["src"].".php");
+ }
+ die();
+}
+
+?> \ No newline at end of file