Need Help Making a R63 Retro Hotel

Fracious

New Member
Jun 16, 2012
11
0
Hiya Guys,
I followed a guys tutorial on here (Adidas) and im having trouble setting it up wondering if any can help as there no database with this Cheers i got Amy aswell please help

can anyone point me if the right direction or downloads or good tutorial or anything

Cheers
 

Fracious

New Member
Jun 16, 2012
11
0
Dylan i have MSN Yes

Requlations its the database im having trouble with im using MySQL Workbench not connector everytime i dwnload it it goes all wierd

Well im starting again from scratch so.. ill see how i get on

Ok Everything working ive got up to enter hotel and comes up with this:
Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\thehabbos_api\class.validate.php on line 33

Anyone Help Me?
Cheers
 

Fracious

New Member
Jun 16, 2012
11
0
Ok Dwmloaded that and what do i put in these ive highlighted red
Cheers
////////////////////////////////////////////////////////
// # 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'] = 'TheHabbos Username'; //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();
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Edit the first red line with your TheHabbos username, register one at
On the second line, put what is the URL to your api (eg or or ).
Then upload the files to your VPS/webhost.
 

Fracious

New Member
Jun 16, 2012
11
0
Also what i do here in Class Validate:

<?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. :(');
}
class Validate {
public function validateVote() {
global $CONFIG;
if($this->checkCookie()) {
return 2;
}else{
$data = $this->getData('
if(!$data || !is_numeric($data)) {
return 6;
}else{
if($data == 1 || $data == 2) {
$this->setCookie();
}
return $data;
}
}
}

private function getData($url) {
global $CONFIG;
if($CONFIG['Curl_Enabled']) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $CONFIG['Timeout']);
return curl_exec($ch);
}else{
$context = stream_context_create(array('http' => array('timeout' => $CONFIG['Timeout'])));
return @file_get_contents($url, 0, $context);
}
}

public function setCookie() {
$resetTime = $this->getResetTime();
setcookie('voting_stamp', $resetTime, $resetTime);
}

private function checkCookie() {
$resetTime = $this->getResetTime();
if(isset($_COOKIE['voting_stamp'])) {
if($_COOKIE['voting_stamp'] == $resetTime) {
return true;
}else{
setcookie('voting_stamp', '');
return false;
}
}else{
return false;
}
}

private function getResetTime() {
$defaultTime = date_default_timezone_get();
date_default_timezone_set('America/Chicago');
$resetTime = mktime(0, 0, 0, date('n'), date('j') + 1);
date_default_timezone_set($defaultTime);
return $resetTime;
}

}
 

Thom

You can't touch this
Oct 1, 2010
1,305
386
Hiya Guys,
I followed a guys tutorial on here (Adidas) and im having trouble setting it up wondering if any can help as there no database with this Cheers i got Amy aswell please help

can anyone point me if the right direction or downloads or good tutorial or anything

Cheers
You followed a tutorial by an utter noob.

Follow mine:

It works ;)
 

Users who are viewing this thread

Top