1 alphabux per visit

This commit is contained in:
Astrologies 2021-12-06 23:13:40 -05:00
parent 62f29193f5
commit 22d55f6c4d
1 changed files with 5 additions and 2 deletions

View File

@ -134,12 +134,15 @@ else if ($action == "connect")
$new_visit = true;
}
if ($new_visit)
$creatorid = getAssetInfo($placeid)->CreatorId;
if ($new_visit && $creatorid != $userid)
{
$setgamevisit = $pdo->prepare("UPDATE assets SET Visited = (Visited + 1) WHERE id = :g");
$setgamevisit->bindParam(":g", $placeid, PDO::PARAM_INT);
$setgamevisit->execute();
giveCurrency(1, $creatorid);
}
// ...
}