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
Api.PHP redirecting error
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="Zeddicus" data-source="post: 115663" data-attributes="member: 14395"><p>Now that I've added the script for NGINX for my API, the "enter hotel" only redirects to client.php</p><p> </p><p>Even though it says "api.php" when you hover your mouse over the button</p><p> </p><p>This is my config.php for thehabbos</p><p> </p><p>[PHP]<?php</p><p>////////////////////////////////////////////////////////</p><p>// # TheHabbos Topsites API Script - Release 1.0.3 //</p><p>// # © Copyright TheHabbos 2011. All rights reserved. //</p><p>////////////////////////////////////////////////////////</p><p> </p><p>if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }</p><p> </p><p>if(!defined('IN_THEHABBOS_API')) {</p><p> die('Sorry, but you can not access this file directly. :(');</p><p>}</p><p> </p><p>/* FEEL FREE TO EDIT ANYTHING BELOW */</p><p> </p><p>$CONFIG['Username'] = 'OfficialHaboa'; //thehabbos topsites username</p><p>$CONFIG['URL'] = 'http://haboa.com/api.php'; //the location to the file api.php on your website (i.e. http://example.com/api.php)</p><p>$CONFIG['Type'] = 'client'; //current options: other or client (thehabbos_api/types)</p><p>$CONFIG['Style'] = 'Habbo Sleek'; //don't change this unless you have created your own style (thehabbos_api/styles)</p><p>$CONFIG['Credits'] = '1000'; //you can use this if you are using a specific type above - your users will be rewarded this many credits for voting</p><p> </p><p>/* ADVANCED OPTIONS */</p><p> </p><p>$CONFIG['Timeout'] = 2; //max amount of seconds before the api stops trying to connect to votingapi.com</p><p>$CONFIG['Curl_Enabled'] = 1; //mark this 0 if cURL isn't installed/enabled on your server, although cURL is recommended</p><p> </p><p>/* DO NOT EDIT ANYTHING BELOW */</p><p> </p><p>$votingValidation = new Validate();</p><p>$CONFIG['Status'] = $votingValidation->validateVote();[/PHP[/PHP]</p></blockquote><p></p>
[QUOTE="Zeddicus, post: 115663, member: 14395"] Now that I've added the script for NGINX for my API, the "enter hotel" only redirects to client.php Even though it says "api.php" when you hover your mouse over the button This is my config.php for thehabbos [PHP]<?php //////////////////////////////////////////////////////// // # TheHabbos Topsites API Script - Release 1.0.3 // // # © Copyright TheHabbos 2011. All rights reserved. // //////////////////////////////////////////////////////// if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; } if(!defined('IN_THEHABBOS_API')) { die('Sorry, but you can not access this file directly. :('); } /* FEEL FREE TO EDIT ANYTHING BELOW */ $CONFIG['Username'] = 'OfficialHaboa'; //thehabbos topsites username $CONFIG['URL'] = 'http://haboa.com/api.php'; //the location to the file api.php on your website (i.e. http://example.com/api.php) $CONFIG['Type'] = 'client'; //current options: other or client (thehabbos_api/types) $CONFIG['Style'] = 'Habbo Sleek'; //don't change this unless you have created your own style (thehabbos_api/styles) $CONFIG['Credits'] = '1000'; //you can use this if you are using a specific type above - your users will be rewarded this many credits for voting /* ADVANCED OPTIONS */ $CONFIG['Timeout'] = 2; //max amount of seconds before the api stops trying to connect to votingapi.com $CONFIG['Curl_Enabled'] = 1; //mark this 0 if cURL isn't installed/enabled on your server, although cURL is recommended /* DO NOT EDIT ANYTHING BELOW */ $votingValidation = new Validate(); $CONFIG['Status'] = $votingValidation->validateVote();[/PHP[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
Api.PHP redirecting error
Top