Fix missing '$' on vars
Use json_encode instead of json_decode
Merge branch 'master' of https://github.com/TheSavior/FriendCoin