1 |
<?php
|
1 |
<?php
|
2 |
# change user password on ALACASAR NAC
|
2 |
# change user password on ALACASAR NAC
|
3 |
# Copyright (C) 2003, 2004 Mondru AB.
|
3 |
# Copyright (C) 2003, 2004 Mondru AB.
|
4 |
# Copyright (C) 2008-20017 ANGEL95 & REXY
|
4 |
# Copyright (C) 2008-20017 ANGEL95 & REXY
|
5 |
|
5 |
|
6 |
|
- |
|
7 |
|
- |
|
8 |
require('/etc/freeradius-web/config.php');
|
6 |
require('/etc/freeradius-web/config.php');
|
9 |
|
7 |
|
10 |
$current_page = $_SERVER['PHP_SELF'];
|
8 |
$current_page = $_SERVER['PHP_SELF'];
|
11 |
|
9 |
|
12 |
# Choice of language
|
10 |
# Choice of language
|
13 |
$Language = 'en';
|
11 |
$Language = 'en';
|
14 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
12 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
15 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
13 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
16 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
14 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
17 |
if($Language == 'es'){
|
15 |
if($Language == 'es'){
|
18 |
$R_title = "User password change";
|
16 |
$R_title = "User password change";
|
19 |
$R_form_l1 = "User";
|
17 |
$R_form_l1 = "User";
|
20 |
$R_form_l2 = "Old password";
|
18 |
$R_form_l2 = "Old password";
|
21 |
$R_form_l3 = "New password";
|
19 |
$R_form_l3 = "New password";
|
22 |
$R_form_l4 = "New password (confirmation)";
|
20 |
$R_form_l4 = "New password (confirmation)";
|
23 |
$R_eval_pass = "Score :";
|
21 |
$R_eval_pass = "Score :";
|
24 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
22 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
25 |
$R_form_button_valid = "Modify";
|
23 |
$R_form_button_valid = "Modify";
|
26 |
$R_form_button_retour = "Cancel";
|
24 |
$R_form_button_retour = "Cancel";
|
27 |
$R_form_result1 = "Your password has been successfuly changed";
|
25 |
$R_form_result1 = "Your password has been successfuly changed";
|
28 |
$R_form_result2 = "Error when trying to change password";
|
26 |
$R_form_result2 = "Error when trying to change password";
|
29 |
$R_retour = "ALCASAR home page";}
|
27 |
$R_retour = "ALCASAR home page";}
|
30 |
else if ($Language == 'pt'){
|
28 |
else if ($Language == 'pt'){
|
31 |
$R_title = "Alteração de senha do usuário";
|
29 |
$R_title = "Alteração de senha do usuário";
|
32 |
$R_form_l1 = "Usuário";
|
30 |
$R_form_l1 = "Usuário";
|
33 |
$R_form_l2 = "Senha antiga";
|
31 |
$R_form_l2 = "Senha antiga";
|
34 |
$R_form_l3 = "Nova senha";
|
32 |
$R_form_l3 = "Nova senha";
|
35 |
$R_form_l4 = "Nova senha (confirmação)";
|
33 |
$R_form_l4 = "Nova senha (confirmação)";
|
36 |
$R_eval_pass = "Resultado:";
|
34 |
$R_eval_pass = "Resultado:";
|
37 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
35 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
38 |
$R_form_button_valid = "Modificar";
|
36 |
$R_form_button_valid = "Modificar";
|
39 |
$R_form_button_retour = "Cancelar";
|
37 |
$R_form_button_retour = "Cancelar";
|
40 |
$R_form_result1 = "Sua senha foi alterada com sucesso";
|
38 |
$R_form_result1 = "Sua senha foi alterada com sucesso";
|
41 |
$R_form_result2 = "Erro ao tentar alterar a senha";
|
39 |
$R_form_result2 = "Erro ao tentar alterar a senha";
|
42 |
$R_retour = "Home page Alcasar";}
|
40 |
$R_retour = "Home page Alcasar";}
|
43 |
else if($Language == 'de'){
|
41 |
else if($Language == 'de'){
|
44 |
$R_title = "User password change";
|
42 |
$R_title = "User password change";
|
45 |
$R_form_l1 = "User";
|
43 |
$R_form_l1 = "User";
|
46 |
$R_form_l2 = "Old password";
|
44 |
$R_form_l2 = "Old password";
|
47 |
$R_form_l3 = "New password";
|
45 |
$R_form_l3 = "New password";
|
48 |
$R_form_l4 = "New password (confirmation)";
|
46 |
$R_form_l4 = "New password (confirmation)";
|
49 |
$R_eval_pass = "Score :";
|
47 |
$R_eval_pass = "Score :";
|
50 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
48 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
51 |
$R_form_button_valid = "Modify";
|
49 |
$R_form_button_valid = "Modify";
|
52 |
$R_form_button_retour = "Cancel";
|
50 |
$R_form_button_retour = "Cancel";
|
53 |
$R_form_result1 = "Your password has been successfuly changed";
|
51 |
$R_form_result1 = "Your password has been successfuly changed";
|
54 |
$R_form_result2 = "Error when trying to change password";
|
52 |
$R_form_result2 = "Error when trying to change password";
|
55 |
$R_retour = "ALCASAR home page";}
|
53 |
$R_retour = "ALCASAR home page";}
|
56 |
else if($Language == 'nl'){
|
54 |
else if($Language == 'nl'){
|
57 |
$R_title = "User password change";
|
55 |
$R_title = "User password change";
|
58 |
$R_form_l1 = "User";
|
56 |
$R_form_l1 = "User";
|
59 |
$R_form_l2 = "Old password";
|
57 |
$R_form_l2 = "Old password";
|
60 |
$R_form_l3 = "New password";
|
58 |
$R_form_l3 = "New password";
|
61 |
$R_form_l4 = "New password (confirmation)";
|
59 |
$R_form_l4 = "New password (confirmation)";
|
62 |
$R_eval_pass = "Score :";
|
60 |
$R_eval_pass = "Score :";
|
63 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
61 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
64 |
$R_form_button_valid = "Modify";
|
62 |
$R_form_button_valid = "Modify";
|
65 |
$R_form_button_retour = "Cancel";
|
63 |
$R_form_button_retour = "Cancel";
|
66 |
$R_form_result1 = "Your password has been successfuly changed";
|
64 |
$R_form_result1 = "Your password has been successfuly changed";
|
67 |
$R_form_result2 = "Error when trying to change password";
|
65 |
$R_form_result2 = "Error when trying to change password";
|
68 |
$R_retour = "ALCASAR home page";}
|
66 |
$R_retour = "ALCASAR home page";}
|
69 |
else if($Language == 'zh'){
|
67 |
else if($Language == 'zh'){
|
70 |
$R_title = "修改用户密码";
|
68 |
$R_title = "修改用户密码";
|
71 |
$R_form_l1 = "用户";
|
69 |
$R_form_l1 = "用户";
|
72 |
$R_form_l2 = "旧密码";
|
70 |
$R_form_l2 = "旧密码";
|
73 |
$R_form_l3 = "新密码";
|
71 |
$R_form_l3 = "新密码";
|
74 |
$R_form_l4 = "新密码(确认)";
|
72 |
$R_form_l4 = "新密码(确认)";
|
75 |
$R_eval_pass = "";
|
73 |
$R_eval_pass = "";
|
76 |
$R_passwordmeter = "技术支持 'Shibbo Password Analyser'</a>";
|
74 |
$R_passwordmeter = "技术支持 'Shibbo Password Analyser'</a>";
|
77 |
$R_form_button_valid = "修改";
|
75 |
$R_form_button_valid = "修改";
|
78 |
$R_form_button_retour = "取消";
|
76 |
$R_form_button_retour = "取消";
|
79 |
$R_form_result1 = "您的密码已成功修改";
|
77 |
$R_form_result1 = "您的密码已成功修改";
|
80 |
$R_form_result2 = "修改密码出错";
|
78 |
$R_form_result2 = "修改密码出错";
|
81 |
$R_retour = "返回首页";}
|
79 |
$R_retour = "返回首页";}
|
82 |
else if ($Language == 'ar'){
|
80 |
else if ($Language == 'ar'){
|
83 |
$R_title = "تغيير كلمة المرور للمستخدم";
|
81 |
$R_title = "تغيير كلمة المرور للمستخدم";
|
84 |
$R_form_l1 = "المستعمل";
|
82 |
$R_form_l1 = "المستعمل";
|
85 |
$R_form_l2 = "كلمه السر القديمة";
|
83 |
$R_form_l2 = "كلمه السر القديمة";
|
86 |
$R_form_l3 = "كلمة السر الجديدة";
|
84 |
$R_form_l3 = "كلمة السر الجديدة";
|
87 |
$R_form_l4 = "كلمة السر الجديدة (أكد)";
|
85 |
$R_form_l4 = "كلمة السر الجديدة (أكد)";
|
88 |
$R_eval_pass = "";
|
86 |
$R_eval_pass = "";
|
89 |
$R_passwordmeter = "مشغل بواسطة 'Shibbo Password Analyser'" . "</a>";
|
87 |
$R_passwordmeter = "مشغل بواسطة 'Shibbo Password Analyser'" . "</a>";
|
90 |
$R_form_button_valid = "تغيير";
|
88 |
$R_form_button_valid = "تغيير";
|
91 |
$R_form_button_retour = "إلغاء";
|
89 |
$R_form_button_retour = "إلغاء";
|
92 |
$R_form_result1 = "تم تغيير الرقم السري بنجاح";
|
90 |
$R_form_result1 = "تم تغيير الرقم السري بنجاح";
|
93 |
$R_form_result2 = "خطأ عند محاولة تغيير كلمة المرور";
|
91 |
$R_form_result2 = "خطأ عند محاولة تغيير كلمة المرور";
|
94 |
$R_retour = "رجوع إلى الصفحة الرئيسية ALCASAR";
|
92 |
$R_retour = "رجوع إلى الصفحة الرئيسية ALCASAR";
|
95 |
}
|
93 |
}
|
96 |
else if($Language == 'fr'){
|
94 |
else if($Language == 'fr'){
|
97 |
$R_title = "Changement de mot de passe utilisateur";
|
95 |
$R_title = "Changement de mot de passe utilisateur";
|
98 |
$R_form_l1 = "Utilisateur :";
|
96 |
$R_form_l1 = "Utilisateur :";
|
99 |
$R_form_l2 = "Ancien mot de passe :";
|
97 |
$R_form_l2 = "Ancien mot de passe :";
|
100 |
$R_form_l3 = "Nouveau mot de passe :";
|
98 |
$R_form_l3 = "Nouveau mot de passe :";
|
101 |
$R_form_l4 = "Nouveau mot de passe (confirmation) :";
|
99 |
$R_form_l4 = "Nouveau mot de passe (confirmation) :";
|
102 |
$R_eval_pass = "";
|
100 |
$R_eval_pass = "";
|
103 |
$R_passwordmeter = "Propulsé par 'Shibbo Password Analyser'</a>";
|
101 |
$R_passwordmeter = "Propulsé par 'Shibbo Password Analyser'</a>";
|
104 |
$R_form_button_valid = "Modifier";
|
102 |
$R_form_button_valid = "Modifier";
|
105 |
$R_form_button_retour = "Annuler";
|
103 |
$R_form_button_retour = "Annuler";
|
106 |
$R_form_result1 = "Votre mot de passe a été modifié avec succès";
|
104 |
$R_form_result1 = "Votre mot de passe a été modifié avec succès";
|
107 |
$R_form_result2 = "Erreur de changement de mot de passe";
|
105 |
$R_form_result2 = "Erreur de changement de mot de passe";
|
108 |
$R_retour = "Retour à la page d'accueil ALCASAR";}
|
106 |
$R_retour = "Retour à la page d'accueil ALCASAR";}
|
109 |
else {
|
107 |
else {
|
110 |
$R_title = "User password change";
|
108 |
$R_title = "User password change";
|
111 |
$R_form_l1 = "User";
|
109 |
$R_form_l1 = "User";
|
112 |
$R_form_l2 = "Old password";
|
110 |
$R_form_l2 = "Old password";
|
113 |
$R_form_l3 = "New password";
|
111 |
$R_form_l3 = "New password";
|
114 |
$R_form_l4 = "New password (confirmation)";
|
112 |
$R_form_l4 = "New password (confirmation)";
|
115 |
$R_eval_pass = "Score :";
|
113 |
$R_eval_pass = "Score :";
|
116 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
114 |
$R_passwordmeter = "Powered by 'Shibbo Password Analyser'</a>";
|
117 |
$R_form_button_valid = "Modify";
|
115 |
$R_form_button_valid = "Modify";
|
118 |
$R_form_button_retour = "Cancel";
|
116 |
$R_form_button_retour = "Cancel";
|
119 |
$R_form_result1 = "Your password has been successfuly changed";
|
117 |
$R_form_result1 = "Your password has been successfuly changed";
|
120 |
$R_form_result2 = "Error when trying to change password";
|
118 |
$R_form_result2 = "Error when trying to change password";
|
121 |
$R_retour = "ALCASAR home page";
|
119 |
$R_retour = "ALCASAR home page";
|
122 |
}
|
120 |
}
|
123 |
echo "
|
121 |
echo "
|
- |
|
122 |
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
124 |
<html>
|
123 |
<html>
|
125 |
<head>
|
124 |
<head>
|
126 |
<title>$R_title</title>
|
125 |
<title>$R_title</title>
|
127 |
<meta http-equiv=\"Cache-control\" content=\"no-cache\">
|
126 |
<meta http-equiv=\"Cache-control\" content=\"no-cache\">
|
128 |
<meta http-equiv=\"Pragma\" content=\"no-cache\">
|
127 |
<meta http-equiv=\"Pragma\" content=\"no-cache\">
|
129 |
<link rel=\"stylesheet\" href=\"../css/pass.css\" type=\"text/css\">
|
128 |
<link rel=\"stylesheet\" href=\"../css/pass.css\" type=\"text/css\">
|
130 |
<link rel=\"stylesheet\" href=\"../css/style_intercept.css\" type=\"text/css\">
|
129 |
<link rel=\"stylesheet\" href=\"../css/style_intercept.css\" type=\"text/css\">
|
131 |
<link type=\"text/css\" href=\"../css/pwdmeter.css\" media=\"screen\" rel=\"stylesheet\" />
|
130 |
<link type=\"text/css\" href=\"../css/pwdmeter.css\" media=\"screen\" rel=\"stylesheet\" />
|
132 |
<!--[if lt IE 7]>
|
131 |
<!--[if lt IE 7]>
|
133 |
<link type=\"text/css\" href=\"../css/ie.css\" media=\"screen\" rel=\"stylesheet\" />
|
132 |
<link type=\"text/css\" href=\"../css/ie.css\" media=\"screen\" rel=\"stylesheet\" />
|
134 |
<![endif]-->
|
133 |
<![endif]-->
|
135 |
<script type=\"text/javascript\" src=\"js/pwdmeter.js\" language=\"javascript\"></script>
|
134 |
<script type=\"text/javascript\" src=\"js/pwdmeter.js\" language=\"javascript\"></script>
|
136 |
</head>
|
- |
|
137 |
<script type=\"text/javascript\">
|
135 |
<script type=\"text/javascript\">
|
138 |
function valoriserDiv5(param){
|
136 |
function valoriserDiv5(param){
|
139 |
document.getElementById(\"box_info\").innerHTML = param.innerHTML;
|
137 |
document.getElementById(\"box_info\").innerHTML = param.innerHTML;
|
140 |
}
|
138 |
}
|
141 |
</script>
|
139 |
</script>
|
- |
|
140 |
</head>
|
142 |
<body onload=\"valoriserDiv5(text_conn);\">
|
141 |
<body onload=\"valoriserDiv5(text_conn);\">
|
143 |
|
- |
|
144 |
<div id=\"cadre_titre\" class=\"titre_controle\">
|
142 |
<div id=\"cadre_titre\" class=\"titre_controle\">
|
145 |
<p id=\"acces_controle\" class=\"titre_controle\">$R_title</p>
|
143 |
<p id=\"acces_controle\" class=\"titre_controle\">$R_title</p>
|
146 |
<div id=\"boite_logo\">
|
144 |
<div id=\"boite_logo\">
|
147 |
<img src=\"/images/organisme.png\">
|
145 |
<img src=\"/images/organisme.png\">
|
148 |
</div>
|
146 |
</div>
|
149 |
</div>
|
147 |
</div>
|
150 |
<div id=\"contenu_acces\">
|
148 |
<div id=\"contenu_acces\">
|
151 |
<form name=\"master\" action=\"$current_page\" method=\"post\">
|
149 |
<form name=\"master\" action=\"$current_page\" method=\"post\">
|
152 |
<input type=hidden name=action value=checkpass>
|
150 |
<input type=hidden name=action value=checkpass>
|
153 |
<table id=\"champs_pass\">
|
151 |
<table id=\"champs_pass\" border=\"1\">
|
154 |
<tr>
|
152 |
<tr>
|
155 |
<td class=\"first_item\">$R_form_l1</td>
|
153 |
<td class=\"first_item\">$R_form_l1</td>
|
156 |
<td><input type=\"text\" name=\"login\" value=\"\" label=\"test\"></td>
|
154 |
<td><input type=\"text\" name=\"login\" value=\"\" label=\"test\"></td>
|
157 |
</tr>
|
155 |
</tr>
|
158 |
<tr>
|
156 |
<tr>
|
159 |
<td class=\"first_item\">$R_form_l2</td>
|
157 |
<td class=\"first_item\">$R_form_l2</td>
|
160 |
<td><input type=\"password\" name=\"passwd\" value=\"\"></td>
|
158 |
<td><input type=\"password\" name=\"passwd\" value=\"\"></td>
|
161 |
</tr>
|
159 |
</tr>
|
162 |
<tr>
|
160 |
<tr>
|
163 |
<td class=\"first_item\">$R_form_l3</td>
|
161 |
<td class=\"first_item\">$R_form_l3</td>
|
164 |
<td>
|
162 |
<td>
|
165 |
<input type=\"password\" name=\"newpasswd\" id=\"passwordPwd\" value=\"\" autocomplete=\"off\" onkeyup=\"chkPass(this.value);\" />
|
163 |
<input type=\"password\" name=\"newpasswd\" id=\"passwordPwd\" value=\"\" autocomplete=\"off\" onkeyup=\"chkPass(this.value);\" />
|
166 |
<input type=\"text\" id=\"passwordTxt\" name=\"passwordTxt\" autocomplete=\"off\" onkeyup=\"chkPass(this.value);\" class=\"hide\" />
|
164 |
<input type=\"text\" id=\"passwordTxt\" name=\"passwordTxt\" autocomplete=\"off\" onkeyup=\"chkPass(this.value);\" class=\"hide\" />
|
167 |
</td>
|
165 |
</td>
|
168 |
</tr>
|
166 |
</tr>
|
169 |
<tr>
|
167 |
<tr>
|
170 |
<td class=\"first_item\">$R_eval_pass</td>
|
168 |
<td class=\"first_item\">$R_eval_pass</td>
|
171 |
<td>
|
169 |
<td>
|
172 |
<div id=\"scorebarBorder\">
|
170 |
<div id=\"scorebarBorder\">
|
173 |
<div id=\"score\">0%</div>
|
171 |
<div id=\"score\">0%</div>
|
174 |
<div id=\"scorebar\"> </div>
|
172 |
<div id=\"scorebar\"> </div>
|
175 |
</div>
|
173 |
</div>
|
176 |
<div id=\"complexity\"></div>
|
174 |
<div id=\"complexity\"></div>
|
177 |
</td>
|
175 |
</td>
|
178 |
</tr>
|
176 |
</tr>
|
179 |
<tr>
|
177 |
<tr>
|
180 |
<td colspan=\"2\" id=\"lien_pass\">$R_passwordmeter</td>
|
178 |
<td colspan=\"2\" id=\"lien_pass\">$R_passwordmeter</td>
|
181 |
</tr>
|
179 |
</tr>
|
182 |
<tr>
|
180 |
<tr>
|
183 |
<td class=\"first_item\">$R_form_l4</td>
|
181 |
<td class=\"first_item\">$R_form_l4</td>
|
184 |
<td><input type=\"password\" name=\"newpasswd2\" value=\"\"></td>
|
182 |
<td><input type=\"password\" name=\"newpasswd2\" value=\"\"></td>
|
185 |
</tr>
|
183 |
</tr>
|
- |
|
184 |
<tr>
|
- |
|
185 |
<td colspan=\"2\" id=\"lien_pass\">
|
- |
|
186 |
<input type=\"submit\" class=\"btn_form\" id=\"btn_pass\" value=\"$R_form_button_valid\">
|
- |
|
187 |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('http://alcasar');\">
|
- |
|
188 |
</td>
|
- |
|
189 |
</tr>
|
186 |
</table>
|
190 |
</table>
|
187 |
<input type=\"submit\" class=\"btn_form\" id=\"btn_pass\" value=\"$R_form_button_valid\">
|
- |
|
188 |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('http://alcasar');\">
|
- |
|
189 |
</div>
|
191 |
</div>
|
190 |
</div>
|
192 |
</div>
|
191 |
<div id=\"info_pass\">
|
193 |
<div id=\"info_pass\">
|
192 |
<table id=\"tablePwdStatus\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
194 |
<table id=\"tablePwdStatus\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
193 |
<tr>
|
195 |
<tr>
|
194 |
<th colspan=\"2\">Additions</th>
|
196 |
<th colspan=\"2\">Additions</th>
|
195 |
<th class=\"txtCenter\">Type</th>
|
197 |
<th class=\"txtCenter\">Type</th>
|
196 |
<th class=\"txtCenter\">Rate</th>
|
198 |
<th class=\"txtCenter\">Rate</th>
|
197 |
<th class=\"txtCenter\">Count</th>
|
199 |
<th class=\"txtCenter\">Count</th>
|
198 |
<th class=\"txtCenter\">Bonus</th>
|
200 |
<th class=\"txtCenter\">Bonus</th>
|
199 |
</tr>
|
201 |
</tr>
|
200 |
<tr>
|
202 |
<tr>
|
201 |
<td width=\"1%\"><div id=\"div_nLength\" class=\"fail\"> </div></td>
|
203 |
<td width=\"1%\"><div id=\"div_nLength\" class=\"fail\"> </div></td>
|
202 |
<td width=\"94%\">Number of Characters</td>
|
204 |
<td width=\"94%\">Number of Characters</td>
|
203 |
<td width=\"1%\" class=\"txtCenter\">Flat</td>
|
205 |
<td width=\"1%\" class=\"txtCenter\">Flat</td>
|
204 |
<td width=\"1%\" class=\"txtCenter italic\">+(n*4)</td>
|
206 |
<td width=\"1%\" class=\"txtCenter italic\">+(n*4)</td>
|
205 |
<td width=\"1%\"><div id=\"nLength\" class=\"box\"> </div></td>
|
207 |
<td width=\"1%\"><div id=\"nLength\" class=\"box\"> </div></td>
|
206 |
<td width=\"1%\"><div id=\"nLengthBonus\" class=\"boxPlus\"> </div></td>
|
208 |
<td width=\"1%\"><div id=\"nLengthBonus\" class=\"boxPlus\"> </div></td>
|
207 |
</tr>
|
209 |
</tr>
|
208 |
<tr>
|
210 |
<tr>
|
209 |
<td><div id=\"div_nAlphaUC\" class=\"fail\"> </div></td>
|
211 |
<td><div id=\"div_nAlphaUC\" class=\"fail\"> </div></td>
|
210 |
<td>Uppercase Letters</td>
|
212 |
<td>Uppercase Letters</td>
|
211 |
<td class=\"txtCenter\">Cond/Incr</td>
|
213 |
<td class=\"txtCenter\">Cond/Incr</td>
|
212 |
<td nowrap=\"nowrap\" class=\"txtCenter italic\">+((len-n)*2)</td>
|
214 |
<td nowrap=\"nowrap\" class=\"txtCenter italic\">+((len-n)*2)</td>
|
213 |
<td><div id=\"nAlphaUC\" class=\"box\"> </div></td>
|
215 |
<td><div id=\"nAlphaUC\" class=\"box\"> </div></td>
|
214 |
<td><div id=\"nAlphaUCBonus\" class=\"boxPlus\"> </div></td>
|
216 |
<td><div id=\"nAlphaUCBonus\" class=\"boxPlus\"> </div></td>
|
215 |
</tr>
|
217 |
</tr>
|
216 |
<tr>
|
218 |
<tr>
|
217 |
<td><div id=\"div_nAlphaLC\" class=\"fail\"> </div></td>
|
219 |
<td><div id=\"div_nAlphaLC\" class=\"fail\"> </div></td>
|
218 |
<td>Lowercase Letters</td>
|
220 |
<td>Lowercase Letters</td>
|
219 |
<td class=\"txtCenter\">Cond/Incr</td>
|
221 |
<td class=\"txtCenter\">Cond/Incr</td>
|
220 |
<td class=\"txtCenter italic\">+((len-n)*2)</td>
|
222 |
<td class=\"txtCenter italic\">+((len-n)*2)</td>
|
221 |
<td><div id=\"nAlphaLC\" class=\"box\"> </div></td>
|
223 |
<td><div id=\"nAlphaLC\" class=\"box\"> </div></td>
|
222 |
<td><div id=\"nAlphaLCBonus\" class=\"boxPlus\"> </div></td>
|
224 |
<td><div id=\"nAlphaLCBonus\" class=\"boxPlus\"> </div></td>
|
223 |
</tr>
|
225 |
</tr>
|
224 |
<tr>
|
226 |
<tr>
|
225 |
<td><div id=\"div_nNumber\" class=\"fail\"> </div></td>
|
227 |
<td><div id=\"div_nNumber\" class=\"fail\"> </div></td>
|
226 |
<td>Numbers</td>
|
228 |
<td>Numbers</td>
|
227 |
<td class=\"txtCenter\">Cond</td>
|
229 |
<td class=\"txtCenter\">Cond</td>
|
228 |
<td class=\"txtCenter italic\">+(n*4)</td>
|
230 |
<td class=\"txtCenter italic\">+(n*4)</td>
|
229 |
<td><div id=\"nNumber\" class=\"box\"> </div></td>
|
231 |
<td><div id=\"nNumber\" class=\"box\"> </div></td>
|
230 |
<td><div id=\"nNumberBonus\" class=\"boxPlus\"> </div></td>
|
232 |
<td><div id=\"nNumberBonus\" class=\"boxPlus\"> </div></td>
|
231 |
</tr>
|
233 |
</tr>
|
232 |
<tr>
|
234 |
<tr>
|
233 |
<td><div id=\"div_nSymbol\" class=\"fail\"> </div></td>
|
235 |
<td><div id=\"div_nSymbol\" class=\"fail\"> </div></td>
|
234 |
<td>Symbols</td>
|
236 |
<td>Symbols</td>
|
235 |
<td class=\"txtCenter\">Flat</td>
|
237 |
<td class=\"txtCenter\">Flat</td>
|
236 |
<td class=\"txtCenter italic\">+(n*6)</td>
|
238 |
<td class=\"txtCenter italic\">+(n*6)</td>
|
237 |
<td><div id=\"nSymbol\" class=\"box\"> </div></td>
|
239 |
<td><div id=\"nSymbol\" class=\"box\"> </div></td>
|
238 |
<td><div id=\"nSymbolBonus\" class=\"boxPlus\"> </div></td>
|
240 |
<td><div id=\"nSymbolBonus\" class=\"boxPlus\"> </div></td>
|
239 |
</tr>
|
241 |
</tr>
|
240 |
<tr>
|
242 |
<tr>
|
241 |
<td><div id=\"div_nMidChar\" class=\"fail\"> </div></td>
|
243 |
<td><div id=\"div_nMidChar\" class=\"fail\"> </div></td>
|
242 |
<td>Middle Numbers or Symbols</td>
|
244 |
<td>Middle Numbers or Symbols</td>
|
243 |
<td class=\"txtCenter\">Flat</td>
|
245 |
<td class=\"txtCenter\">Flat</td>
|
244 |
<td class=\"txtCenter italic\">+(n*2)</td>
|
246 |
<td class=\"txtCenter italic\">+(n*2)</td>
|
245 |
<td><div id=\"nMidChar\" class=\"box\"> </div></td>
|
247 |
<td><div id=\"nMidChar\" class=\"box\"> </div></td>
|
246 |
<td><div id=\"nMidCharBonus\" class=\"boxPlus\"> </div></td>
|
248 |
<td><div id=\"nMidCharBonus\" class=\"boxPlus\"> </div></td>
|
247 |
</tr>
|
249 |
</tr>
|
248 |
<tr>
|
250 |
<tr>
|
249 |
<td><div id=\"div_nRequirements\" class=\"fail\"> </div></td>
|
251 |
<td><div id=\"div_nRequirements\" class=\"fail\"> </div></td>
|
250 |
<td>Requirements</td>
|
252 |
<td>Requirements</td>
|
251 |
<td class=\"txtCenter\">Flat</td>
|
253 |
<td class=\"txtCenter\">Flat</td>
|
252 |
<td class=\"txtCenter italic\">+(n*2)</td>
|
254 |
<td class=\"txtCenter italic\">+(n*2)</td>
|
253 |
<td><div id=\"nRequirements\" class=\"box\"> </div></td>
|
255 |
<td><div id=\"nRequirements\" class=\"box\"> </div></td>
|
254 |
<td><div id=\"nRequirementsBonus\" class=\"boxPlus\"> </div></td>
|
256 |
<td><div id=\"nRequirementsBonus\" class=\"boxPlus\"> </div></td>
|
255 |
</tr>
|
257 |
</tr>
|
256 |
<tr>
|
258 |
<tr>
|
257 |
<th colspan=\"6\">Deductions</th>
|
259 |
<th colspan=\"6\">Deductions</th>
|
258 |
</tr>
|
260 |
</tr>
|
259 |
<tr>
|
261 |
<tr>
|
260 |
<td width=\"1%\"><div id=\"div_nAlphasOnly\" class=\"pass\"> </div></td>
|
262 |
<td width=\"1%\"><div id=\"div_nAlphasOnly\" class=\"pass\"> </div></td>
|
261 |
<td width=\"94%\">Letters Only</td>
|
263 |
<td width=\"94%\">Letters Only</td>
|
262 |
<td width=\"1%\" class=\"txtCenter\">Flat</td>
|
264 |
<td width=\"1%\" class=\"txtCenter\">Flat</td>
|
263 |
<td width=\"1%\" class=\"txtCenter italic\">-n</td>
|
265 |
<td width=\"1%\" class=\"txtCenter italic\">-n</td>
|
264 |
<td width=\"1%\"><div id=\"nAlphasOnly\" class=\"box\"> </div></td>
|
266 |
<td width=\"1%\"><div id=\"nAlphasOnly\" class=\"box\"> </div></td>
|
265 |
<td width=\"1%\"><div id=\"nAlphasOnlyBonus\" class=\"boxMinus\"> </div></td>
|
267 |
<td width=\"1%\"><div id=\"nAlphasOnlyBonus\" class=\"boxMinus\"> </div></td>
|
266 |
</tr>
|
268 |
</tr>
|
267 |
<tr>
|
269 |
<tr>
|
268 |
<td><div id=\"div_nNumbersOnly\" class=\"pass\"> </div></td>
|
270 |
<td><div id=\"div_nNumbersOnly\" class=\"pass\"> </div></td>
|
269 |
<td>Numbers Only</td>
|
271 |
<td>Numbers Only</td>
|
270 |
<td class=\"txtCenter\">Flat</td>
|
272 |
<td class=\"txtCenter\">Flat</td>
|
271 |
<td class=\"txtCenter italic\">-n</td>
|
273 |
<td class=\"txtCenter italic\">-n</td>
|
272 |
<td><div id=\"nNumbersOnly\" class=\"box\"> </div></td>
|
274 |
<td><div id=\"nNumbersOnly\" class=\"box\"> </div></td>
|
273 |
<td><div id=\"nNumbersOnlyBonus\" class=\"boxMinus\"> </div></td>
|
275 |
<td><div id=\"nNumbersOnlyBonus\" class=\"boxMinus\"> </div></td>
|
274 |
</tr>
|
276 |
</tr>
|
275 |
<tr>
|
277 |
<tr>
|
276 |
<td><div id=\"div_nRepChar\" class=\"pass\"> </div></td>
|
278 |
<td><div id=\"div_nRepChar\" class=\"pass\"> </div></td>
|
277 |
<td>Repeat Characters (Case Insensitive)</td>
|
279 |
<td>Repeat Characters (Case Insensitive)</td>
|
278 |
<td class=\"txtCenter\">Comp</td>
|
280 |
<td class=\"txtCenter\">Comp</td>
|
279 |
<td nowrap=\"nowrap\" class=\"txtCenter italic\"> - </td>
|
281 |
<td nowrap=\"nowrap\" class=\"txtCenter italic\"> - </td>
|
280 |
<td><div id=\"nRepChar\" class=\"box\"> </div></td>
|
282 |
<td><div id=\"nRepChar\" class=\"box\"> </div></td>
|
281 |
<td><div id=\"nRepCharBonus\" class=\"boxMinus\"> </div></td>
|
283 |
<td><div id=\"nRepCharBonus\" class=\"boxMinus\"> </div></td>
|
282 |
</tr>
|
284 |
</tr>
|
283 |
<tr>
|
285 |
<tr>
|
284 |
<td><div id=\"div_nConsecAlphaUC\" class=\"pass\"> </div></td>
|
286 |
<td><div id=\"div_nConsecAlphaUC\" class=\"pass\"> </div></td>
|
285 |
<td>Consecutive Uppercase Letters</td>
|
287 |
<td>Consecutive Uppercase Letters</td>
|
286 |
<td class=\"txtCenter\">Flat</td>
|
288 |
<td class=\"txtCenter\">Flat</td>
|
287 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
289 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
288 |
<td><div id=\"nConsecAlphaUC\" class=\"box\"> </div></td>
|
290 |
<td><div id=\"nConsecAlphaUC\" class=\"box\"> </div></td>
|
289 |
<td><div id=\"nConsecAlphaUCBonus\" class=\"boxMinus\"> </div></td>
|
291 |
<td><div id=\"nConsecAlphaUCBonus\" class=\"boxMinus\"> </div></td>
|
290 |
</tr>
|
292 |
</tr>
|
291 |
<tr>
|
293 |
<tr>
|
292 |
<td><div id=\"div_nConsecAlphaLC\" class=\"pass\"> </div></td>
|
294 |
<td><div id=\"div_nConsecAlphaLC\" class=\"pass\"> </div></td>
|
293 |
<td>Consecutive Lowercase Letters</td>
|
295 |
<td>Consecutive Lowercase Letters</td>
|
294 |
<td class=\"txtCenter\">Flat</td>
|
296 |
<td class=\"txtCenter\">Flat</td>
|
295 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
297 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
296 |
<td><div id=\"nConsecAlphaLC\" class=\"box\"> </div></td>
|
298 |
<td><div id=\"nConsecAlphaLC\" class=\"box\"> </div></td>
|
297 |
<td><div id=\"nConsecAlphaLCBonus\" class=\"boxMinus\"> </div></td>
|
299 |
<td><div id=\"nConsecAlphaLCBonus\" class=\"boxMinus\"> </div></td>
|
298 |
</tr>
|
300 |
</tr>
|
299 |
<tr>
|
301 |
<tr>
|
300 |
<td><div id=\"div_nConsecNumber\" class=\"pass\"> </div></td>
|
302 |
<td><div id=\"div_nConsecNumber\" class=\"pass\"> </div></td>
|
301 |
<td>Consecutive Numbers</td>
|
303 |
<td>Consecutive Numbers</td>
|
302 |
<td class=\"txtCenter\">Flat</td>
|
304 |
<td class=\"txtCenter\">Flat</td>
|
303 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
305 |
<td class=\"txtCenter italic\">-(n*2)</td>
|
304 |
<td><div id=\"nConsecNumber\" class=\"box\"> </div></td>
|
306 |
<td><div id=\"nConsecNumber\" class=\"box\"> </div></td>
|
305 |
<td><div id=\"nConsecNumberBonus\" class=\"boxMinus\"> </div></td>
|
307 |
<td><div id=\"nConsecNumberBonus\" class=\"boxMinus\"> </div></td>
|
306 |
</tr>
|
308 |
</tr>
|
307 |
<tr>
|
309 |
<tr>
|
308 |
<td><div id=\"div_nSeqAlpha\" class=\"pass\"> </div></td>
|
310 |
<td><div id=\"div_nSeqAlpha\" class=\"pass\"> </div></td>
|
309 |
<td>Sequential Letters (3+)</td>
|
311 |
<td>Sequential Letters (3+)</td>
|
310 |
<td class=\"txtCenter\">Flat</td>
|
312 |
<td class=\"txtCenter\">Flat</td>
|
311 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
313 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
312 |
<td><div id=\"nSeqAlpha\" class=\"box\"> </div></td>
|
314 |
<td><div id=\"nSeqAlpha\" class=\"box\"> </div></td>
|
313 |
<td><div id=\"nSeqAlphaBonus\" class=\"boxMinus\"> </div></td>
|
315 |
<td><div id=\"nSeqAlphaBonus\" class=\"boxMinus\"> </div></td>
|
314 |
</tr>
|
316 |
</tr>
|
315 |
<tr>
|
317 |
<tr>
|
316 |
<td><div id=\"div_nSeqNumber\" class=\"pass\"> </div></td>
|
318 |
<td><div id=\"div_nSeqNumber\" class=\"pass\"> </div></td>
|
317 |
<td>Sequential Numbers (3+)</td>
|
319 |
<td>Sequential Numbers (3+)</td>
|
318 |
<td class=\"txtCenter\">Flat</td>
|
320 |
<td class=\"txtCenter\">Flat</td>
|
319 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
321 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
320 |
<td><div id=\"nSeqNumber\" class=\"box\"> </div></td>
|
322 |
<td><div id=\"nSeqNumber\" class=\"box\"> </div></td>
|
321 |
<td><div id=\"nSeqNumberBonus\" class=\"boxMinus\"> </div></td>
|
323 |
<td><div id=\"nSeqNumberBonus\" class=\"boxMinus\"> </div></td>
|
322 |
</tr>
|
324 |
</tr>
|
323 |
<tr>
|
325 |
<tr>
|
324 |
<td><div id=\"div_nSeqSymbol\" class=\"pass\"> </div></td>
|
326 |
<td><div id=\"div_nSeqSymbol\" class=\"pass\"> </div></td>
|
325 |
<td>Sequential Symbols (3+)</td>
|
327 |
<td>Sequential Symbols (3+)</td>
|
326 |
<td class=\"txtCenter\">Flat</td>
|
328 |
<td class=\"txtCenter\">Flat</td>
|
327 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
329 |
<td class=\"txtCenter italic\">-(n*3)</td>
|
328 |
<td><div id=\"nSeqSymbol\" class=\"box\"> </div></td>
|
330 |
<td><div id=\"nSeqSymbol\" class=\"box\"> </div></td>
|
329 |
<td><div id=\"nSeqSymbolBonus\" class=\"boxMinus\"> </div></td>
|
331 |
<td><div id=\"nSeqSymbolBonus\" class=\"boxMinus\"> </div></td>
|
330 |
</tr>
|
332 |
</tr>
|
331 |
<tr>
|
333 |
<tr>
|
332 |
<th colspan=\"6\">Legend</th>
|
334 |
<th colspan=\"6\">Legend</th>
|
333 |
</tr>
|
335 |
</tr>
|
334 |
<tr>
|
336 |
<tr>
|
335 |
<td colspan=\"6\">
|
337 |
<td colspan=\"6\">
|
336 |
<ul id=\"listLegend\">
|
338 |
<ul id=\"listLegend\">
|
337 |
<li><div class=\"exceed imgLegend\"> </div> <span class=\"bold\">Exceptional:</span> Exceeds minimum standards. Additional bonuses are applied.</li>
|
339 |
<li><div class=\"exceed imgLegend\"> </div> <span class=\"bold\">Exceptional:</span> Exceeds minimum standards. Additional bonuses are applied.</li>
|
338 |
<li><div class=\"pass imgLegend\"> </div> <span class=\"bold\">Sufficient:</span> Meets minimum standards. Additional bonuses are applied.</li>
|
340 |
<li><div class=\"pass imgLegend\"> </div> <span class=\"bold\">Sufficient:</span> Meets minimum standards. Additional bonuses are applied.</li>
|
339 |
<li><div class=\"warn imgLegend\"> </div> <span class=\"bold\">Warning:</span> Advisory against employing bad practices. Overall score is reduced.</li>
|
341 |
<li><div class=\"warn imgLegend\"> </div> <span class=\"bold\">Warning:</span> Advisory against employing bad practices. Overall score is reduced.</li>
|
340 |
<li><div class=\"fail imgLegend\"> </div> <span class=\"bold\">Failure:</span> Does not meet the minimum standards. Overall score is reduced.</li>
|
342 |
<li><div class=\"fail imgLegend\"> </div> <span class=\"bold\">Failure:</span> Does not meet the minimum standards. Overall score is reduced.</li>
|
341 |
</ul>
|
343 |
</ul>
|
342 |
</td>
|
344 |
</td>
|
343 |
</tr>
|
345 |
</tr>
|
344 |
</table>
|
346 |
</table>
|
345 |
<table id=\"tablePwdNotes\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
347 |
<table id=\"tablePwdNotes\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
346 |
<tr>
|
348 |
<tr>
|
347 |
<th>Quick Footnotes</th>
|
349 |
<th>Quick Footnotes</th>
|
348 |
</tr>
|
350 |
</tr>
|
349 |
<tr>
|
351 |
<tr>
|
350 |
<td>
|
352 |
<td>
|
351 |
• <strong>Flat:</strong> Rates that add/remove in non-changing increments.<br />
|
353 |
• <strong>Flat:</strong> Rates that add/remove in non-changing increments.<br />
|
352 |
• <strong>Incr:</strong> Rates that add/remove in adjusting increments.<br />
|
354 |
• <strong>Incr:</strong> Rates that add/remove in adjusting increments.<br />
|
353 |
• <strong>Cond:</strong> Rates that add/remove depending on additional factors.<br />
|
355 |
• <strong>Cond:</strong> Rates that add/remove depending on additional factors.<br />
|
354 |
• <strong>Comp:</strong> Rates that are too complex to summarize. See source code for details.<br />
|
356 |
• <strong>Comp:</strong> Rates that are too complex to summarize. See source code for details.<br />
|
355 |
• <strong>n:</strong> Refers to the total number of occurrences.<br />
|
357 |
• <strong>n:</strong> Refers to the total number of occurrences.<br />
|
356 |
• <strong>len:</strong> Refers to the total password length.<br />
|
358 |
• <strong>len:</strong> Refers to the total password length.<br />
|
357 |
• Additional bonus scores are given for increased character variety.<br />
|
359 |
• Additional bonus scores are given for increased character variety.<br />
|
358 |
• Final score is a cumulative result of all bonuses minus deductions.<br />
|
360 |
• Final score is a cumulative result of all bonuses minus deductions.<br />
|
359 |
• Final score is capped with a minimum of 0 and a maximum of 100.<br />
|
361 |
• Final score is capped with a minimum of 0 and a maximum of 100.<br />
|
360 |
• Score and Complexity ratings are not conditional on meeting minimum requirements.<br />
|
362 |
• Score and Complexity ratings are not conditional on meeting minimum requirements.<br />
|
361 |
</td>
|
363 |
</td>
|
362 |
</tr>
|
364 |
</tr>
|
363 |
<tr>
|
- |
|
364 |
<th>DISCLAIMER</th>
|
- |
|
365 |
</tr>
|
- |
|
366 |
<tr>
|
- |
|
367 |
<td>
|
- |
|
368 |
<p>This application is designed to assess the strength of password strings. The instantaneous visual feedback provides the user a means to improve the strength of their passwords, with a hard focus on breaking the typical bad habits of faulty password formulation. Since no official weighting system exists, we created our own formulas to assess the overall strength of a given password. Please note, that this application does not utilize the typical \"days-to-crack\" approach for strength determination. We have found that particular system to be severely lacking and unreliable for real-world scenarios. This application is neither perfect nor foolproof, and should only be utilized as a loose guide in determining methods for improving the password creation process. </p>
|
- |
|
369 |
</td>
|
- |
|
370 |
</tr>
|
- |
|
371 |
</table>
|
365 |
</table>
|
- |
|
366 |
</div>
|
372 |
";
|
367 |
";
|
373 |
|
368 |
|
374 |
if (is_file("sql/drivers/$config[sql_type]/functions.php"))
|
369 |
if (is_file("sql/drivers/$config[sql_type]/functions.php"))
|
375 |
include_once("sql/drivers/$config[sql_type]/functions.php");
|
370 |
include_once("sql/drivers/$config[sql_type]/functions.php");
|
376 |
else{
|
371 |
else{
|
377 |
echo "<b>Could not include SQL library</b><br>\n";
|
372 |
echo "<b>Could not include SQL library</b><br>\n";
|
378 |
exit();
|
373 |
exit();
|
379 |
}
|
374 |
}
|
380 |
if (isset($action)){
|
375 |
if (isset($action)){
|
381 |
if ($action == 'checkpass'){
|
376 |
if ($action == 'checkpass'){
|
382 |
$link = @da_sql_pconnect($config);
|
377 |
$link = @da_sql_pconnect($config);
|
383 |
if ($link){
|
378 |
if ($link){
|
384 |
$res = @da_sql_query($link,$config,
|
379 |
$res = @da_sql_query($link,$config,
|
385 |
"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login'
|
380 |
"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login'
|
386 |
AND attribute = '$config[sql_password_attribute]';");
|
381 |
AND attribute = '$config[sql_password_attribute]';");
|
387 |
if ($res){
|
382 |
if ($res){
|
388 |
$row = @da_sql_fetch_array($res,$config);
|
383 |
$row = @da_sql_fetch_array($res,$config);
|
389 |
if (is_file("crypt/$config[general_encryption_method].php")){
|
384 |
if (is_file("crypt/$config[general_encryption_method].php")){
|
390 |
include("crypt/$config[general_encryption_method].php");
|
385 |
include("crypt/$config[general_encryption_method].php");
|
391 |
$enc_passwd = $row['value'];
|
386 |
$enc_passwd = $row['value'];
|
392 |
$passwd = da_encrypt($passwd,$enc_passwd);
|
387 |
$passwd = da_encrypt($passwd,$enc_passwd);
|
393 |
$newpasswd = da_encrypt($newpasswd,$enc_passwd);
|
388 |
$newpasswd = da_encrypt($newpasswd,$enc_passwd);
|
394 |
$newpasswd2 = da_encrypt($newpasswd2,$enc_passwd);
|
389 |
$newpasswd2 = da_encrypt($newpasswd2,$enc_passwd);
|
395 |
if (($passwd == $enc_passwd) and ($newpasswd == $newpasswd2)){
|
390 |
if (($passwd == $enc_passwd) and ($newpasswd == $newpasswd2)){
|
396 |
$msg = '<font color=blue><b>'.$R_form_result1.'</b></font>';
|
391 |
$msg = '<font color=blue><b>'.$R_form_result1.'</b></font>';
|
397 |
$res2 = @da_sql_query($link,$config,
|
392 |
$res2 = @da_sql_query($link,$config,
|
398 |
"UPDATE $config[sql_check_table] set value='$newpasswd' WHERE username = '$login'
|
393 |
"UPDATE $config[sql_check_table] set value='$newpasswd' WHERE username = '$login'
|
399 |
AND attribute = '$config[sql_password_attribute]';");}
|
394 |
AND attribute = '$config[sql_password_attribute]';");}
|
400 |
else
|
395 |
else
|
401 |
$msg = '<font color=red><b>'.$R_form_result2.'</b></font>';
|
396 |
$msg = '<font color=red><b>'.$R_form_result2.'</b></font>';
|
402 |
}
|
397 |
}
|
403 |
else
|
398 |
else
|
404 |
echo "<b>Could not open encryption library file</b><br>\n";
|
399 |
echo "<b>Could not open encryption library file</b><br>\n";
|
405 |
}
|
400 |
}
|
406 |
}
|
401 |
}
|
407 |
echo "<span align=center>$msg</span>\n";
|
402 |
echo "<span align=center>$msg</span>\n";
|
408 |
}
|
403 |
}
|
409 |
}
|
404 |
}
|
410 |
?>
|
405 |
?>
|
411 |
</body>
|
406 |
</body>
|
412 |
</html>
|
407 |
</html>
|
413 |
|
408 |
|
414 |
|
409 |
|