Revision 1331
Added by Luisehahne over 15 years ago
| class.login.php | ||
|---|---|---|
| 232 | 232 |
$get_ip = $_SERVER['REMOTE_ADDR']; |
| 233 | 233 |
$query = "UPDATE ".$this->USERS_TABLE." SET login_when = '$get_ts', login_ip = '$get_ip' WHERE user_id = '$user_id'"; |
| 234 | 234 |
$database->query($query); |
| 235 |
}else {
|
|
| 236 |
$num_rows = 0; |
|
| 235 | 237 |
} |
| 236 | 238 |
// Return if the user exists or not |
| 237 | 239 |
return $num_rows; |
Also available in: Unified diff
update class.login.php (tks to Ruud)