Subversion Repositories ALCASAR

Rev

Rev 688 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 688 Rev 912
Line 8... Line 8...
8
require('/etc/freeradius-web/config.php');
8
require('/etc/freeradius-web/config.php');
9
 
9
 
10
$current_page = $_SERVER['PHP_SELF'];
10
$current_page = $_SERVER['PHP_SELF'];
11
 
11
 
12
# Choice of language
12
# Choice of language
13
$Language = 'fr';
13
$Language = 'en';
14
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
14
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
15
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
15
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
16
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
16
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
17
if($Language == 'es'){
17
if($Language == 'es'){
18
$R_title = "User password change";
18
$R_title = "User password change";
Line 25... Line 25...
25
$R_form_button_valid = "Modify";
25
$R_form_button_valid = "Modify";
26
$R_form_button_retour = "Cancel";
26
$R_form_button_retour = "Cancel";
27
$R_form_result1 = "Your password has been successfuly changed";
27
$R_form_result1 = "Your password has been successfuly changed";
28
$R_form_result2 = "Error when trying to change password";
28
$R_form_result2 = "Error when trying to change password";
29
$R_retour = "ALCASAR home page";}
29
$R_retour = "ALCASAR home page";}
30
if($Language == 'de'){
30
else if ($Language == 'pt'){
31
$R_title = "User password change";
31
$R_title = "Alteração de senha do usuário";
32
$R_form_l1 = "User";
32
$R_form_l1 = "Usuário";
33
$R_form_l2 = "Old password";
33
$R_form_l2 = "Senha antiga";
34
$R_form_l3 = "New password";
34
$R_form_l3 = "Nova senha";
35
$R_form_l4 = "New password (confirmation)";
35
$R_form_l4 = "Nova senha (confirmação)";
36
$R_eval_pass = "Score :";
36
$R_eval_pass = "Resultado:";
37
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
37
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
38
$R_form_button_valid = "Modify";
38
$R_form_button_valid = "Modificar";
39
$R_form_button_retour = "Cancel";
39
$R_form_button_retour = "Cancelar";
40
$R_form_result1 = "Your password has been successfuly changed";
40
$R_form_result1 = "Sua senha foi alterada com sucesso";
41
$R_form_result2 = "Error when trying to change password";
41
$R_form_result2 = "Erro ao tentar alterar a senha";
42
$R_retour = "ALCASAR home page";}
42
$R_retour = "Home page Alcasar";}
43
if($Language == 'nl'){
43
else if($Language == 'de'){
44
$R_title = "User password change";
44
$R_title = "User password change";
45
$R_form_l1 = "User";
45
$R_form_l1 = "User";
46
$R_form_l2 = "Old password";
46
$R_form_l2 = "Old password";
47
$R_form_l3 = "New password";
47
$R_form_l3 = "New password";
48
$R_form_l4 = "New password (confirmation)";
48
$R_form_l4 = "New password (confirmation)";
Line 51... Line 51...
51
$R_form_button_valid = "Modify";
51
$R_form_button_valid = "Modify";
52
$R_form_button_retour = "Cancel";
52
$R_form_button_retour = "Cancel";
53
$R_form_result1 = "Your password has been successfuly changed";
53
$R_form_result1 = "Your password has been successfuly changed";
54
$R_form_result2 = "Error when trying to change password";
54
$R_form_result2 = "Error when trying to change password";
55
$R_retour = "ALCASAR home page";}
55
$R_retour = "ALCASAR home page";}
56
if($Language == 'en'){
56
else if($Language == 'nl'){
57
$R_title = "User password change";
57
$R_title = "User password change";
58
$R_form_l1 = "User";
58
$R_form_l1 = "User";
59
$R_form_l2 = "Old password";
59
$R_form_l2 = "Old password";
60
$R_form_l3 = "New password";
60
$R_form_l3 = "New password";
61
$R_form_l4 = "New password (confirmation)";
61
$R_form_l4 = "New password (confirmation)";
Line 64... Line 64...
64
$R_form_button_valid = "Modify";
64
$R_form_button_valid = "Modify";
65
$R_form_button_retour = "Cancel";
65
$R_form_button_retour = "Cancel";
66
$R_form_result1 = "Your password has been successfuly changed";
66
$R_form_result1 = "Your password has been successfuly changed";
67
$R_form_result2 = "Error when trying to change password";
67
$R_form_result2 = "Error when trying to change password";
68
$R_retour = "ALCASAR home page";}
68
$R_retour = "ALCASAR home page";}
69
if($Language == 'fr'){
69
else if($Language == 'fr'){
70
$R_title = "Changement de mot de passe utilisateur";
70
$R_title = "Changement de mot de passe utilisateur";
71
$R_form_l1 = "Utilisateur :";
71
$R_form_l1 = "Utilisateur :";
72
$R_form_l2 = "Ancien mot de passe :";
72
$R_form_l2 = "Ancien mot de passe :";
73
$R_form_l3 = "Nouveau mot de passe :";
73
$R_form_l3 = "Nouveau mot de passe :";
74
$R_form_l4 = "Nouveau mot de passe (confirmation) :";
74
$R_form_l4 = "Nouveau mot de passe (confirmation) :";
Line 76... Line 76...
76
$R_passwordmeter = "Propulsé par 'Shibbo Password Analyser'</a>";
76
$R_passwordmeter = "Propulsé par 'Shibbo Password Analyser'</a>";
77
$R_form_button_valid = "Modifier";
77
$R_form_button_valid = "Modifier";
78
$R_form_button_retour = "Annuler";
78
$R_form_button_retour = "Annuler";
79
$R_form_result1 = "Votre mot de passe a &eacute;t&eacute; modifi&eacute; avec succ&egrave;s";
79
$R_form_result1 = "Votre mot de passe a &eacute;t&eacute; modifi&eacute; avec succ&egrave;s";
80
$R_form_result2 = "Erreur de changement de mot de passe";
80
$R_form_result2 = "Erreur de changement de mot de passe";
81
$R_retour = "Retour &agrave; la page d'accueil ALCASAR";
81
$R_retour = "Retour &agrave; la page d'accueil ALCASAR";}
-
 
82
else {
-
 
83
$R_title = "User password change";
-
 
84
$R_form_l1 = "User";
-
 
85
$R_form_l2 = "Old password";
-
 
86
$R_form_l3 = "New password";
-
 
87
$R_form_l4 = "New password (confirmation)";
-
 
88
$R_eval_pass = "Score :";
-
 
89
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
-
 
90
$R_form_button_valid = "Modify";
-
 
91
$R_form_button_retour = "Cancel";
-
 
92
$R_form_result1 = "Your password has been successfuly changed";
-
 
93
$R_form_result2 = "Error when trying to change password";
-
 
94
$R_retour = "ALCASAR home page";
82
}
95
}
83
echo "
96
echo "
84
<html>
97
<html>
85
	<head>
98
	<head>
86
		<title>$R_title</title>
99
		<title>$R_title</title>