7,17 → 7,17 |
exit(); |
} |
|
if ($action == 'checkpass'){ |
$link = @da_sql_pconnect($config); |
if (isset($action) && $action == 'checkpass'){ |
$link = da_sql_pconnect($config); |
if ($link){ |
$res = @da_sql_query($link,$config, |
$res = da_sql_query($link,$config, |
"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login' |
AND attribute = '$config[sql_password_attribute]';"); |
if ($res){ |
$row = @da_sql_fetch_array($res,$config); |
$row = da_sql_fetch_array($res,$config); |
if (is_file("../lib/crypt/$config[general_encryption_method].php")){ |
include("../lib/crypt/$config[general_encryption_method].php"); |
$enc_passwd = $row[value]; |
$enc_passwd = $row['value']; |
$passwd = da_encrypt($passwd,$enc_passwd); |
if ($passwd == $enc_passwd) |
$msg = '<font color=blue><b>YES It is that</b></font>'; |