Subversion Repositories ALCASAR

Rev

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

Rev 3026 Rev 3139
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: password.php 3026 2022-06-30 21:53:54Z rexy $
2
# $Id: password.php 3139 2023-07-02 14:22:12Z rexy $
3
#
3
#
4
# change user password on ALCASAR
4
# change user password on ALCASAR
5
# by ANGEL95 & REXY
5
# by ANGEL95 & REXY
6
 
6
 
7
/****************************************************************
7
/****************************************************************
Line 57... Line 57...
57
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
57
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
58
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
58
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
59
}
59
}
60
if ($Language === 'es') {		// Spanish
60
if ($Language === 'es') {		// Spanish
61
	$l_title			= "Gestione su contraseña";
61
	$l_title			= "Gestione su contraseña";
62
	$l_form_l1			= "Usuario";
62
	$l_form_l1			= "Usuario *";
63
	$l_form_l2			= "Contraseña anterior";
63
	$l_form_l2			= "Contraseña anterior *";
64
	$l_form_l3			= "Nueva contraseña";
64
	$l_form_l3			= "Nueva contraseña *";
65
	$l_form_l4			= "Nueva contraseña (verificación)";
65
	$l_form_l4			= "Nueva contraseña (verificación) *";
66
	$l_eval_pass			= "Evaluación :";
66
	$l_eval_pass			= "Evaluación :";
67
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
67
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
-
 
68
	$l_mandatory			= "* Campos requeridos";
68
	$l_form_button_valid		= "Modificar";
69
	$l_form_button_valid		= "Modificar";
69
	$l_form_button_retour		= "Cancelar";
70
	$l_form_button_retour		= "Cancelar";
70
	$l_form_result1			= "Su contraseña ha sido actualizada exitosamente";
71
	$l_form_result1			= "Su contraseña ha sido actualizada exitosamente";
71
	$l_form_result2			= "Error al intentar cambiar la contraseña";	
72
	$l_form_result2			= "Error al intentar cambiar la contraseña";	
72
} else if ($Language === 'pt') {	// Portuguese
73
} else if ($Language === 'pt') {	// Portuguese
73
	$l_title			= "Alteração de senha do usuário";
74
	$l_title			= "Alteração de senha do usuário";
74
	$l_form_l1			= "Usuário";
75
	$l_form_l1			= "Usuário *";
75
	$l_form_l2			= "Senha antiga";
76
	$l_form_l2			= "Senha antiga *";
76
	$l_form_l3			= "Nova senha";
77
	$l_form_l3			= "Nova senha *";
77
	$l_form_l4			= "Nova senha (confirmação)";
78
	$l_form_l4			= "Nova senha (confirmação) *";
78
	$l_eval_pass			= "Resultado:";
79
	$l_eval_pass			= "Resultado:";
79
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
80
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
-
 
81
	$l_mandatory			= "* Campos obrigatórios";
80
	$l_form_button_valid		= "Modificar";
82
	$l_form_button_valid		= "Modificar";
81
	$l_form_button_retour		= "Cancelar";
83
	$l_form_button_retour		= "Cancelar";
82
	$l_form_result1			= "Sua senha foi alterada com sucesso";
84
	$l_form_result1			= "Sua senha foi alterada com sucesso";
83
	$l_form_result2			= "Erro ao tentar alterar a senha";
85
	$l_form_result2			= "Erro ao tentar alterar a senha";
84
} else if ($Language === 'de') {	// German
86
} else if ($Language === 'de') {	// German
85
	$l_title			= "Password ändern";
87
	$l_title			= "Password ändern";
86
	$l_form_l1			= "Benutzername";
88
	$l_form_l1			= "Benutzername *";
87
	$l_form_l2			= "Altes Passwort";
89
	$l_form_l2			= "Altes Passwort *";
88
	$l_form_l3			= "Neues Passwort";
90
	$l_form_l3			= "Neues Passwort *";
89
	$l_form_l4			= "Neues Passwort bestätigen";
91
	$l_form_l4			= "Neues Passwort bestätigen *";
90
	$l_eval_pass			= "Wert :";
92
	$l_eval_pass			= "Wert :";
91
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
93
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
-
 
94
	$l_mandatory			= "* Benötigte Felder";
92
	$l_form_button_valid		= "Bestätigen";
95
	$l_form_button_valid		= "Bestätigen";
93
	$l_form_button_retour		= "Abbrechen";
96
	$l_form_button_retour		= "Abbrechen";
94
	$l_form_result1			= "Ihr Passwort wurde erfolgreich geändert.";
97
	$l_form_result1			= "Ihr Passwort wurde erfolgreich geändert.";
95
	$l_form_result2			= "Fehler beim Ändern des Passworts";
98
	$l_form_result2			= "Fehler beim Ändern des Passworts";
96
} else if ($Language === 'nl') {	// Dutch
99
} else if ($Language === 'nl') {	// Dutch
97
	$l_title			= "User password change";
100
	$l_title			= "User password change";
98
	$l_form_l1			= "User";
101
	$l_form_l1			= "User *";
99
	$l_form_l2			= "Old password";
102
	$l_form_l2			= "Old password *";
100
	$l_form_l3			= "New password";
103
	$l_form_l3			= "New password *";
101
	$l_form_l4			= "New password (confirmation)";
104
	$l_form_l4			= "New password (confirmation) *";
102
	$l_eval_pass			= "Score :";
105
	$l_eval_pass			= "Score :";
103
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
106
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
-
 
107
	$l_mandatory			= "* Verplichte velden";
104
	$l_form_button_valid		= "Modify";
108
	$l_form_button_valid		= "Modify";
105
	$l_form_button_retour		= "Cancel";
109
	$l_form_button_retour		= "Cancel";
106
	$l_form_result1			= "Your password has been successfuly changed";
110
	$l_form_result1			= "Your password has been successfuly changed";
107
	$l_form_result2			= "Error when trying to change password";
111
	$l_form_result2			= "Error when trying to change password";
108
} else if ($Language === 'zh') {	// Chinese
112
} else if ($Language === 'zh') {	// Chinese
109
	$l_title			= "修改用户密码";
113
	$l_title			= "修改用户密码";
110
	$l_form_l1			= "用户";
114
	$l_form_l1			= "用户 *";
111
	$l_form_l2			= "旧密码";
115
	$l_form_l2			= "旧密码 *";
112
	$l_form_l3			= "新密码";
116
	$l_form_l3			= "新密码 *";
113
	$l_form_l4			= "新密码(确认)";
117
	$l_form_l4			= "新密码(确认) *";
114
	$l_eval_pass			= "得分";
118
	$l_eval_pass			= "得分";
115
	$l_passwordmeter		= "技术支持 'Shibbo Password Analyser'";
119
	$l_passwordmeter		= "技术支持 'Shibbo Password Analyser'";
-
 
120
	$l_mandatory			= "* 必须填写";
116
	$l_form_button_valid		= "修改";
121
	$l_form_button_valid		= "修改";
117
	$l_form_button_retour		= "取消";
122
	$l_form_button_retour		= "取消";
118
	$l_form_result1			= "您的密码已成功修改";
123
	$l_form_result1			= "您的密码已成功修改";
119
	$l_form_result2			= "修改密码出错";
124
	$l_form_result2			= "修改密码出错";
120
} else if ($Language === 'ar') {	// Arabic
125
} else if ($Language === 'ar') {	// Arabic
121
	$l_title			= "تغيير كلمة المرور للمستخدم";
126
	$l_title			= "تغيير كلمة المرور للمستخدم";
122
	$l_form_l1			= "المستعمل";
127
	$l_form_l1			= "المستعمل *";
123
	$l_form_l2			= "كلمه السر القديمة";
128
	$l_form_l2			= "كلمه السر القديمة *";
124
	$l_form_l3			= "كلمة السر الجديدة";
129
	$l_form_l3			= "كلمة السر الجديدة *";
125
	$l_form_l4			= "كلمة السر الجديدة (أكد)";
130
	$l_form_l4			= "كلمة السر الجديدة (أكد) *";
126
	$l_eval_pass			= ": أحرز هدفا";
131
	$l_eval_pass			= ": أحرز هدفا";
127
	$l_passwordmeter		= "مشغل بواسطة 'Shibbo Password Analyser'";
132
	$l_passwordmeter		= "مشغل بواسطة 'Shibbo Password Analyser'";
-
 
133
	$l_mandatory			= "* الحقول المطلوبة";
128
	$l_form_button_valid		= "تغيير";
134
	$l_form_button_valid		= "تغيير";
129
	$l_form_button_retour		= "إلغاء";
135
	$l_form_button_retour		= "إلغاء";
130
	$l_form_result1			= "تم تغيير الرقم السري بنجاح";
136
	$l_form_result1			= "تم تغيير الرقم السري بنجاح";
131
	$l_form_result2			= "خطأ عند محاولة تغيير كلمة المرور";
137
	$l_form_result2			= "خطأ عند محاولة تغيير كلمة المرور";
132
} else if ($Language === 'fr') {	// French
138
} else if ($Language === 'fr') {	// French
133
	$l_title			= "Changement de mot de passe";
139
	$l_title			= "Changement de mot de passe";
134
	$l_form_l1			= "Utilisateur :";
140
	$l_form_l1			= "Utilisateur : *";
135
	$l_form_l2			= "Ancien mot de passe :";
141
	$l_form_l2			= "Ancien mot de passe : *";
136
	$l_form_l3			= "Nouveau mot de passe :";
142
	$l_form_l3			= "Nouveau mot de passe : *";
137
	$l_form_l4			= "Nouveau mot de passe (confirmation) :";
143
	$l_form_l4			= "Nouveau mot de passe (confirmation) : *";
138
	$l_eval_pass			= "Score :";
144
	$l_eval_pass			= "Score :";
139
	$l_passwordmeter		= "Propulsé par 'Shibbo Password Analyser'";
145
	$l_passwordmeter		= "Propulsé par 'Shibbo Password Analyser'";
-
 
146
	$l_mandatory			= "* champs requis";
140
	$l_form_button_valid		= "Modifier";
147
	$l_form_button_valid		= "Modifier";
141
	$l_form_button_retour		= "Annuler";
148
	$l_form_button_retour		= "Annuler";
142
	$l_form_result1			= "Votre mot de passe a été modifié avec succès";
149
	$l_form_result1			= "Votre mot de passe a été modifié avec succès";
143
	$l_form_result2			= "Erreur de changement de mot de passe";
150
	$l_form_result2			= "Erreur de changement de mot de passe";
144
} else {				// English
151
} else {				// English
145
	$l_title			= "User password change";
152
	$l_title			= "User password change";
146
	$l_form_l1			= "User";
153
	$l_form_l1			= "User*";
147
	$l_form_l2			= "Old password";
154
	$l_form_l2			= "Old password *";
148
	$l_form_l3			= "New password";
155
	$l_form_l3			= "New password *";
149
	$l_form_l4			= "New password (confirmation)";
156
	$l_form_l4			= "New password (confirmation) *";
150
	$l_eval_pass			= "Score:";
157
	$l_eval_pass			= "Score:";
151
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
158
	$l_passwordmeter		= "Powered by 'Shibbo Password Analyser'";
-
 
159
	$l_mandatory			= "* fields required";
152
	$l_form_button_valid		= "Modify";
160
	$l_form_button_valid		= "Modify";
153
	$l_form_button_retour		= "Cancel";
161
	$l_form_button_retour		= "Cancel";
154
	$l_form_result1			= "Your password has been successfuly changed";
162
	$l_form_result1			= "Your password has been successfuly changed";
155
	$l_form_result2			= "Error when trying to change password";
163
	$l_form_result2			= "Error when trying to change password";
156
}
164
}
Line 191... Line 199...
191
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
199
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
192
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
200
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
193
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
201
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
194
header('Cache-Control: post-check=0, pre-check=0', false);
202
header('Cache-Control: post-check=0, pre-check=0', false);
195
header('Pragma: no-cache');
203
header('Pragma: no-cache');
-
 
204
$ast = "*"
196
?>
205
?>
197
<!DOCTYPE html>
206
<!DOCTYPE html>
198
<html>
207
<html>
199
<head>
208
<head>
200
	<meta charset="UTF-8">
209
	<meta charset="UTF-8">
Line 202... Line 211...
202
	<title>ALCASAR - <?= $l_title ?></title>
211
	<title>ALCASAR - <?= $l_title ?></title>
203
	<link rel="stylesheet" type="text/css" href="/css/pwdmeter.css"> 
212
	<link rel="stylesheet" type="text/css" href="/css/pwdmeter.css"> 
204
	<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
213
	<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
205
	<link rel="stylesheet" type="text/css" href="/css/pass.css">
214
	<link rel="stylesheet" type="text/css" href="/css/pass.css">
206
	<link rel="icon" href="/images/favicon-48.ico" type="image/ico">
215
	<link rel="icon" href="/images/favicon-48.ico" type="image/ico">
207
 
-
 
-
 
216
	<script type="text/javascript" src="js/jquery.min.js"></script>
-
 
217
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
208
	<script src="/js/pwdmeter.js"></script>
218
	<script src="/js/pwdmeter.js"></script>
209
</head>
219
</head>
-
 
220
<script>
-
 
221
	jQuery(document).ready(function($){
-
 
222
		$("#contenu_acces #input_value").focus(function(){
-
 
223
			$("#status").fadeOut(1000);
-
 
224
		});
-
 
225
	});
-
 
226
</script>
210
<body>
227
<body>
211
	<div class="col-12 col-lg-10 offset-lg-1">
228
	<div class="col-12 col-lg-10 offset-lg-1">
212
 
229
 
213
		<?php require_once(__DIR__.'/header.php'); ?>
230
		<?php require_once(__DIR__.'/header.php'); ?>
214
 
231
		
215
		<!-- Main content box -->
232
		<!-- Main content box -->
216
		<div class="row">
233
		<div class="row">
217
			<form name="master" id="contenu_acces" action="<?= $current_page ?>" method="post" class="col-12 offset-lg-1 col-lg-10">
234
			<form name="master" id="contenu_acces" action="<?= $current_page ?>" method="post" class="col-12 offset-lg-1 col-lg-10">
218
				<input class="row" type="hidden" name="action" value="checkpass">
235
				<input class="row" type="hidden" name="action" value="checkpass">
219
 
236
 
Line 258... Line 275...
258
					<div class="label_name col-3 col-lg-4"><?= $l_form_l4 ?></div>
275
					<div class="label_name col-3 col-lg-4"><?= $l_form_l4 ?></div>
259
					<div class="col-6 col-lg-4">
276
					<div class="col-6 col-lg-4">
260
						<input type="password" class="form-control" id="input_value" name="newpasswd2" value="">
277
						<input type="password" class="form-control" id="input_value" name="newpasswd2" value="">
261
					</div>
278
					</div>
262
				</div>
279
				</div>
-
 
280
				<div id="status">
-
 
281
					<?=$l_mandatory?>
263
	
282
				</div>
264
				<div class="row input_row">
283
				<div class="row input_row">
265
					<div class="col-5 offset-sm-1 col-md-4 offset-md-2">
284
					<div class="col-5 offset-sm-1 col-md-4 offset-md-2">
266
						<input id="buttons" class="btn btn-default" value="<?= $l_form_button_retour ?>" onclick="window.location.href = '<?= $homepage ?>';">
285
						<input id="buttons" class="btn btn-default" value="<?= $l_form_button_retour ?>" onclick="window.location.href = '<?= $homepage ?>';">
267
					</div>
286
					</div>
268
					<div class="col-5 col-md-4">
287
					<div class="col-5 col-md-4">
269
						<button type="submit" class="btn btn-primary" id="buttons"><?= $l_form_button_valid ?></button>
288
						<button type="submit" class="btn btn-primary" id="buttons"><?= $l_form_button_valid ?></button>
270
					</div>
289
					</div>
271
				</div>
290
				</div>
272
			</form>
291
			</form>
273
			</div>
292
			</div>
274
<!--			
293
<!--		
275
			<div class="row">
294
			<div class="row">
276
				<div id="boite_logo" class="img_banner col-xs-12 hidden-sm hidden-md hidden-lg">
295
				<div id="boite_logo" class="img_banner col-xs-12 hidden-sm hidden-md hidden-lg">
277
					<img class="img-fluid image" src="images/organisme.png">
296
					<img class="img-fluid image" src="images/organisme.png">
278
				</div>
297
				</div>
279
			</div> -->
298
			</div>-->
280
		</div>
299
		</div>
281
		<div id="info_pass">
300
		<div id="info_pass">
282
			<table id="tablePwdStatus" cellpadding="5" cellspacing="1" border="0">
301
			<table id="tablePwdStatus" cellpadding="5" cellspacing="1" border="0">
283
				<tr>
302
				<tr>
284
					<th colspan="2">Additions</th>
303
					<th colspan="2">Additions</th>