[TheHabbos] Invalid Request

Status
Not open for further replies.

zuc0001

Member
Apr 21, 2012
37
7
Hey guys, I just installed thehabbos onto my test server. I have edited the config etc, and whenever I go to api.php, I keep getting this:

f220465e54630973b9c599ae0993ec02.png


If anyone knows why I am getting this, all help would be greatly appreciated :)

If you need any more information, I am also using IIS.

<?php
////////////////////////////////////////////////////////
// # TheHabbos Topsites API Script - Release 1.0.3 //
// # © Copyright TheHabbos 2011. All rights reserved. //
////////////////////////////////////////////////////////

if(!defined('IN_THEHABBOS_API')) {
die('Sorry, but you can not access this file directly. :(');
}

/* FEEL FREE TO EDIT ANYTHING BELOW */

$CONFIG['Username'] = 'zuc0001'; //thehabbos topsites username
$CONFIG['URL'] = ' //the location to the file api.php on your website (i.e. )
$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();

I have not touched any of the other pages. Curl is enabled in PHP.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Oops, I merged my post with yours, anyways:

This could be to do with TheHabbos being offline, I'd try later when it's back on.
 

zuc0001

Member
Apr 21, 2012
37
7
But thehabbos is online? ;o
Its been giving me that error since yesturday afternoon - after thehabbos came back online.
 

zuc0001

Member
Apr 21, 2012
37
7
I live in Australia; its 12.07pm. So when it came back online yesturday, it was around 4 - 5pm for me. :)

Also, if thehabbos IS offline, shouldn't it redirect me to the client? ;)
 

zuc0001

Member
Apr 21, 2012
37
7
What, it's offline for me what the fuck.
----
Have ago at changing cURL to 0.

Tried that multiple times as well, still no luck. Could I be getting this error because I am using IIS? That shouldn't be a problem, should it?

EDIT: Found a work-around:

<?php
////////////////////////////////////////////////////////
// # TheHabbos Topsites API Script - Release 1.0.3 //
// # © Copyright TheHabbos 2011. All rights reserved. //
////////////////////////////////////////////////////////

if(!defined('IN_THEHABBOS_API')) {
die('Sorry, but you can not access this file directly. :(');
}

switch($lookingFor) {
case 1:
{
//what happens if someone does successfully vote
header("Location: client");
break;
}
case 2:
{
//what happens if someone has already voted
header("Location: client");
break;
}
case 3:
{
//what happens if someone hasn't voted yet
header("Location: ");
break;
}
case 4:
case 5:
{
//what happens if someone sends an invalid request
header("Location: ");
break;
}
case 6:
{
//what happens if thehabbos is down or having connection issues
header("Location: client");
break;
}
}
 
Status
Not open for further replies.

Users who are viewing this thread

Top