We provide our own automated voting system with integrated callback here. However if you have your own voting system and don't wish to use our free RSPS voting then you can use the steps below in order to add proper validation/callback to your existing voting script.
https://everythingrs.com/gateway/YOURSERVERNAME/PLAYERUSERNAME
after your
player has voted we will send you an HTTP response at
http://yourwebsite/callback.php?user=PLAYERUSERNAME
(callback.php is just
an example, it will be sent to the callback url you entered during toplist registration)
if ($_SERVER["REMOTE_ADDR"] != "callback.everythingrs.com") { //Response if not from everythingrs exit(); } $user = preg_replace('/[^A-Za-z0-9_]{1,64}/','',trim($_GET['user'])); if(empty($_GET["user"])) { //Not a valid user exit(); } else { $user = mysql_escape_string($user); //$user is the player that has successfully voted //Now you can add the code for your mysql database //And handle this response however needed }
You can also check if a player voted in the past 24 hours through IP Checking.
https://everythingrs.com/validate/vote/YOURSERVERNAME/USERIP
0
Did NOT vote in the last 24 hours1
Voted in the last 24 hours