Hey
So I tried to implement voting to my hotel and I get ERR_TOO_MANY_REDIRECTS error. On top of client, I include vote.php and vote.php contains:
findretros_config.php
So I tried to implement voting to my hotel and I get ERR_TOO_MANY_REDIRECTS error. On top of client, I include vote.php and vote.php contains:
PHP:
<?php
require_once 'findretros_config.php';
require_once 'findretros.php';
$FindRetros = new FindRetros();
if($FindRetros->hasClientVoted()) {
header('Location:/client');
}else{
// echo 'You have yet to vote!';
$FindRetros->redirectClientToVote();
}
PHP:
<?php
$_CONFIG = array(
/* What is "username" of your page on FindRetros? */
'pagename' => 'HablitHotel1',
/* How many seconds should it take to try and reach FindRetros if it's down? */
'timeout' => 2,
/* Are you using CloudFlare? If so, set this to true. */
'cloudflare' => true,
/* Incase FindRetros.com has a new domain, change it below. */
'api' => 'https://findretros.com/'
);