[Tutorial] FindRetros Api for Noobs

h3roix

New Member
Dec 22, 2020
13
7
Since I added to our Client, some players had an issue with the redirecting loops.
Like: "I already voted, but it's redirecting me again to vote page"

Somewhere In Devbest, someone already posted the codes for the redirecting vote page but was not 100% correct because of the ip check.
I added the ip check request from findretros to be sure.

findretros.php (replace 'habborpg' with your findretros server username)​
<?php
$getIp = '
$ip = @file_get_contents($getIp);
$url = '
$hasvoted = @file_get_contents($url);
if($hasvoted != '1' && $hasvoted != '2'){
header ("Location: ");
exit;
}
?>
client.php​
require_once 'findretros/findretros.php';​
Done.​
 

Users who are viewing this thread

Top