lastlogin
This commit is contained in:
parent
7c658e28f9
commit
bb53850c3e
@ -32,6 +32,7 @@ $boolLogin=true;
|
||||
$_SESSION['user']=$strUser;
|
||||
$_SESSION['csrf_token'] = uniqid('', true);
|
||||
$_SESSION['superadmin'] = $row['role']=="admin";
|
||||
$db->query("UPDATE `user` SET `lastlogin`= NOW() WHERE `username`='$strUser'");
|
||||
header ("Location: index.php");
|
||||
} else {
|
||||
$boolLogin=false;
|
||||
|
Loading…
Reference in New Issue
Block a user