Subversion Repositories ALCASAR

Rev

Rev 3009 | Rev 3026 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3009 Rev 3011
Line 2... Line 2...
2
 
2
 
3
/********************************************************************
3
/********************************************************************
4
*																	*
4
*																	*
5
*			ALCASAR EMAIL INSCRIPTION								*
5
*			ALCASAR EMAIL INSCRIPTION								*
6
*																	*
6
*																	*
7
*	By K@M3L 1101130512.1901090409 & T3RRY @ La Plateforme_			*
7
*	By K@M3L & T3RRY @ La Plateforme_								*
8
*	V 1.0 June 2021.												*
-
 
9
*																	*
8
*																	*
10
*	Partie front de la page d'inscription des utilisateurs			*
9
*	Partie front de la page d'inscription des utilisateurs			*
11
*	elle envoi les infos à traiter à la page de traitement			*
10
*	elle envoi les infos à traiter à la page de traitement			*
12
*	via AJAX (email_registration_back)								*
11
*	via AJAX (email_registration_back)								*
13
*																	*
12
*																	*
Line 16... Line 15...
16
$Language = 'en';
15
$Language = 'en';
17
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
16
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
18
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
17
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
19
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
18
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
20
}
19
}
21
if ($Language === 'fr') {		// French
20
if ($Language === 'fr') {
22
	$l_home = " Accueil";
21
	$l_home = " Accueil";
23
	$l_title = "Inscription par Email";
22
	$l_title = "Inscription par Email";
24
	$l_login = "Connexion";
23
	$l_login = "Connexion";
25
	$l_Email = "Adresse électronique: *";
24
	$l_Email = "Adresse électronique: *";
26
	$l_mandatory = "* Remplir tous les champs obligatoires";
25
	$l_mandatory = "* Remplir tous les champs obligatoires";
27
} else {	// English
26
} else {
28
	$l_home = " Home";
27
	$l_home = " Home";
29
	$l_title = "Email inscription";
28
	$l_title = "Email inscription";
30
	$l_login = "Login";
29
	$l_login = "Login";
31
	$l_Email = "Email address: *";
30
	$l_Email = "Email address: *";
32
	$l_mandatory = "* Fill in all mandatory fields";
31
	$l_mandatory = "* Fill in all mandatory fields";