Api.PHP redirecting error

Zeddicus

The Glorious PC Gaming Master Race
Mar 23, 2012
459
178
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
 

Feedback

Haboa Hotel
Jun 11, 2012
80
14
As being the owner of Haboa, I'd like to update:
This problem is still occurring, I've tried to enable and disable cURL, and edit it, but it still doesn't seem to work.. I tried to vote, but it just takes me back to the API.php page
 

Users who are viewing this thread

Top