diff options
Diffstat (limited to 'Core/Functions/func_language.php')
| -rw-r--r-- | Core/Functions/func_language.php | 22 |
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 |
