|
|
@ -36,7 +36,7 @@ function user_login ($user_name, $user_pass) { |
|
|
|
$sql = "SELECT user_id, user_pass, user_displayname, user_language, |
|
|
|
$sql = "SELECT user_id, user_pass, user_displayname, user_language, |
|
|
|
user_imagesize, user_imagecount, user_mac, user_dateformat, |
|
|
|
user_imagesize, user_imagecount, user_mac, user_dateformat, |
|
|
|
user_dns1suffix, user_dns2suffix, user_tooltips, |
|
|
|
user_dns1suffix, user_dns2suffix, user_tooltips, |
|
|
|
user_menu, user_role, user_flags |
|
|
|
user_menu, user_role, user_flags, user_realm |
|
|
|
FROM user |
|
|
|
FROM user |
|
|
|
WHERE user_name=?"; |
|
|
|
WHERE user_name=?"; |
|
|
|
$sth = $dbh->prepare($sql); |
|
|
|
$sth = $dbh->prepare($sql); |
|
|
@ -63,6 +63,7 @@ function user_login ($user_name, $user_pass) { |
|
|
|
|
|
|
|
|
|
|
|
// all ok: user is logged in, register session data |
|
|
|
// all ok: user is logged in, register session data |
|
|
|
$_SESSION['suser_id'] = $user->user_id; |
|
|
|
$_SESSION['suser_id'] = $user->user_id; |
|
|
|
|
|
|
|
$_SESSION['suser_realm'] = $user->user_realm; |
|
|
|
$_SESSION['suser_displayname'] = $user->user_displayname; |
|
|
|
$_SESSION['suser_displayname'] = $user->user_displayname; |
|
|
|
$_SESSION['suser_language'] = $user->user_language; |
|
|
|
$_SESSION['suser_language'] = $user->user_language; |
|
|
|
$_SESSION['suser_imagesize'] = $user->user_imagesize; |
|
|
|
$_SESSION['suser_imagesize'] = $user->user_imagesize; |
|
|
|