21
21
include("../lib/crypt/$config[general_encryption_method].php3");
22
22
$passwd = da_encrypt($passwd);
23
23
$res = @da_sql_query($link,$config,
24
"SELECT Value FROM $config[sql_check_table] WHERE UserName = '$login'
25
AND Attribute = '$config[sql_password_attribute]';");
24
"SELECT value FROM $config[sql_check_table] WHERE username = '$login'
25
AND attribute = '$config[sql_password_attribute]';");
27
27
$row = @da_sql_fetch_array($res,$config);
29
29
$res = @da_sql_query($link,$config,
30
"UPDATE $config[sql_check_table] SET Value = '$passwd' $text3 WHERE
31
Attribute = '$config[sql_password_attribute]' AND UserName = '$login';");
30
"UPDATE $config[sql_check_table] SET value = '$passwd' $text3 WHERE
31
attribute = '$config[sql_password_attribute]' AND username = '$login';");
32
32
if (!$res || !@da_sql_affected_rows($link,$res,$config))
33
33
echo "<b>Error while changing password: " . da_sql_error($link,$config) . "</b><br>\n";
36
36
$res = @da_sql_query($link,$config,
37
"INSERT INTO $config[sql_check_table] (Attribute,Value,UserName $text1)
37
"INSERT INTO $config[sql_check_table] (attribute,value,username $text1)
38
38
VALUES ('$config[sql_password_attribute]','$passwd','$login' $text2);");
39
39
if (!$res || !@da_sql_affected_rows($link,$res,$config))
40
40
echo "<b>Error while changing password: " . da_sql_error($link,$config) . "</b><br>\n";