+HELP Findretros Redirecting Loop

ChrisRetro

Member
Dec 14, 2013
144
15
So Basically...
I got my New Hotel all working but then i went to setup findretros, and it didnt work? can someone please help me?

Please can someone put a code in the comments much love
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Yeah this is a common problem and in fact, on most hotels if there is a redirect loop and the person who installed it (usually the hotel owner) if they don't see they lose users because people don't know how to access the client without me page. The best thing to do is probably remove force voting, and make it so when they click the "me" button they are redirected to vote.
 

ChrisRetro

Member
Dec 14, 2013
144
15
Yeah this is a common problem and in fact, on most hotels if there is a redirect loop and the person who installed it (usually the hotel owner) if they don't see they lose users because people don't know how to access the client without me page. The best thing to do is probably remove force voting, and make it so when they click the "me" button they are redirected to vote.
Thanks, but then is there a fix and how are we going to get more votes?
 
FIX :


<?php
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; }
if (!isset($_GET['novote']) && $_GET['url'] != 'register') {
$context = stream_context_create(array('https' => array('timeout' => 0.5)));
$data = file_get_contents(' ' . $_SERVER['REMOTE_ADDR'], 0, $context);
if($data == 3) {
header("Location: ");
exit;
}
}
?>

Close Thread Please
 

Users who are viewing this thread

Top