Fixed online status

This commit is contained in:
Lars van Hijfte
2017-01-31 12:25:28 +01:00
parent d5d9d5857a
commit f26097f55f
9 changed files with 41 additions and 16 deletions

View File

@@ -2,6 +2,19 @@
require_once ("connect.php");
function updateLastActivity() {
$stmt = prepareQuery("
UPDATE
`user`
SET
`lastactivity` = NOW()
WHERE
`userID` = :userID
");
$stmt->bindParam(":userID", $_SESSION["userID"]);
return $stmt->execute();
}
function getUserID($username) {
$stmt = prepareQuery("
SELECT