h3roix
New Member
- Dec 22, 2020
- 13
- 7
Since I added
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)
You must be registered for see links
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 = 'You must be registered for see links
$ip = @file_get_contents($getIp);
$url = 'You must be registered for see links
$hasvoted = @file_get_contents($url);
if($hasvoted != '1' && $hasvoted != '2'){
header ("Location:You must be registered for see links");
exit;
}
?>
client.php
require_once 'findretros/findretros.php';
Done.