| Line 18... |
Line 18... |
| 18 |
$link = da_sql_pconnect($config);
|
18 |
$link = da_sql_pconnect($config);
|
| 19 |
if ($link){
|
19 |
if ($link){
|
| 20 |
if (is_file("../lib/crypt/$config[general_encryption_method].php")){
|
20 |
if (is_file("../lib/crypt/$config[general_encryption_method].php")){
|
| 21 |
include("../lib/crypt/$config[general_encryption_method].php");
|
21 |
include("../lib/crypt/$config[general_encryption_method].php");
|
| 22 |
$passwd = da_encrypt($passwd);
|
22 |
$passwd = da_encrypt($passwd);
|
| 23 |
$passwd = da_sql_escape_string($passwd);
|
23 |
$passwd = da_sql_escape_string($link,$passwd);
|
| 24 |
$res = da_sql_query($link,$config,
|
24 |
$res = da_sql_query($link,$config,
|
| 25 |
"SELECT value FROM $config[sql_check_table] WHERE username = '$login'
|
25 |
"SELECT value FROM $config[sql_check_table] WHERE username = '$login'
|
| 26 |
AND attribute = '$config[sql_password_attribute]';");
|
26 |
AND attribute = '$config[sql_password_attribute]';");
|
| 27 |
if ($res){
|
27 |
if ($res){
|
| 28 |
$row = da_sql_fetch_array($res,$config);
|
28 |
$row = da_sql_fetch_array($res,$config);
|