1 alphabux per visit
This commit is contained in:
parent
62f29193f5
commit
22d55f6c4d
|
|
@ -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);
|
||||
}
|
||||
// ...
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue