Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Miscellaneous
FindRetros
Help & Support
Redirect Loop
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Berk" data-source="post: 426961" data-attributes="member: 63611"><p>Hey</p><p>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: </p><p>[PHP]</p><p><?php</p><p></p><p>require_once 'findretros_config.php';</p><p>require_once 'findretros.php';</p><p></p><p>$FindRetros = new FindRetros();</p><p></p><p>if($FindRetros->hasClientVoted()) {</p><p></p><p> header('Location:/client');</p><p></p><p>}else{</p><p></p><p> // echo 'You have yet to vote!';</p><p></p><p> $FindRetros->redirectClientToVote();</p><p></p><p>}</p><p>[/PHP]</p><p>findretros_config.php</p><p></p><p>[PHP]</p><p><?php</p><p>$_CONFIG = array(</p><p> /* What is "username" of your page on FindRetros? */</p><p> </p><p> 'pagename' => 'HablitHotel1',</p><p> /* How many seconds should it take to try and reach FindRetros if it's down? */</p><p> 'timeout' => 2,</p><p> /* Are you using CloudFlare? If so, set this to true. */</p><p> 'cloudflare' => true,</p><p> /* Incase FindRetros.com has a new domain, change it below. */</p><p> 'api' => 'https://findretros.com/'</p><p>);[/PHP]</p></blockquote><p></p>
[QUOTE="Berk, post: 426961, member: 63611"] 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: [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] findretros_config.php [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/' );[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
Redirect Loop
Top