[RELEASE] HabboExtreme REVCMS THEME

GohanSSJ

Ya.
Feb 18, 2013
281
30
Guys this is not a help thread so do not ask help regarding things here and just keep them where they need to be: In the Habbo help section.

Would be better for the poster as well for the others.

Verstuurd van mijn GT-I9070 met Tapatalk
 

John Edward Bernal

New Member
Sep 11, 2011
11
0
, help me

Here's my class html php

PHP:
<?php

namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class html implements iHTML
{

private $html;

final public function get($file)
{
global $template, $_CONFIG;

if($file != null && ctype_alnum($file))
{
if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
{
ob_start();
include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
$this->html .= ob_get_contents();
ob_end_clean();

$this->setHTML();
}
else
{
$this->get('404');
}

}
else
{
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
}

}

final public function getHK($file)
{
global $template, $_CONFIG;

if($file != null)
{
if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/ase/' . $file . '.php'))
{
ob_start();
require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/ase/' . $file . '.php');
$this->html .= ob_get_contents();
ob_end_clean();

$this->setHTML();
}
else
{
$this->getHK('404');
}
}
else
{
$this->getHK('dash');
}
}

final public function setHTML()
{
global $template;
$template->tpl .= $this->html;
unset($this->html);
}


}
?>
 

John Edward Bernal

New Member
Sep 11, 2011
11
0
I fixed the error on checkthebanned php

Put this on your skin :

PHP:
<?php
/*=========================================================
| RevCMS Banning system
| #########################################################
| Banning system developed by Grapefruit
| www.otaku-studios.com
| #########################################################
| Uses Phoenix Emulator 3.0 database
| #########################################################
\=========================================================*/


if($_SESSION['user']['id']){


$getuserinfo = mysql_query("SELECT * FROM users WHERE id='".$_SESSION['user']['id']."'");
while($row = mysql_fetch_array($getuserinfo)){

$usernameban = $row['username'];

$ipban = $row['ip_last'];


}



$getuserinfo= mysql_query("SELECT * FROM bans WHERE value='{$usernameban}' AND expire > UNIX_TIMESTAMP() ORDER BY expire DESC LIMIT 1");

$getuserinfoip= mysql_query("SELECT * FROM bans WHERE value='{$ipban}' AND expire > UNIX_TIMESTAMP() ORDER BY expire DESC LIMIT 1");



while($row = mysql_fetch_array($getuserinfo)){


$expire = $row['expire'];



if($expire <= time()){
 
}
else{
header('Location: banned');
exit;
}
}
while($row = mysql_fetch_array($getuserinfoip)){


$expire = $row['expire'];



if($expire <= time()){
 
}
else{
header('Location: ipbanned');
exit;
}
}
}


?>
 

Pace

New Member
Jun 11, 2014
5
0
I'm having a bit of trouble with the avatars . What do I need to do to get these working?

I know it says "This has its own imager so you need to add your db information into avatar.php in the root folder if you use all of my stuff *I SUGGEST YOU DO FOR NO ERRORS*"

But where is avatar.php, and where can I find my db info to insert it?

I made a folder called avatar.php in : /app/tpl/skins/HabboExtreme
In the folder I put:

PHP:
<?php
header('Content-Type: image/png');
define("host", "localhost");
define("username", "root");
define("password", "***");
define("database", "hotel");
$map = './avatars';
define("hotel", "habbo.nl");
    mysql_connect(host, username, password) or die ('Wrong username or password, or simply host.');
    mysql_select_db(database) or die ('Cannot connect to database.');
if (!is_dir($map))
    {
        if (!mkdir($map, 0, true))
            {
                die('Unable to create directory.');
            }
    }
$figure = $_GET['figure'];
if(isset($_GET['size'])){
$size = $_GET['size'];
} else {
$size= 'b';
}
if(isset($_GET['direction'])){
$direction = $_GET['direction'];
} else {
$direction = '2';
}
if(isset($_GET['head_direction'])){
$head = $_GET['head_direction'];
} else {
$head = '2';
}
if(isset($_GET['action'])){
$action = $_GET['actionn'];
} else {
$head = 'sit';
}
if(isset($_GET['gesture'])){
$gesture = $_GET['gesture'];
} else {
$gesture = '';
}
$lookhash = md5("$figure$size$action$direction$head$gesture");
if (file_exists("$map/$lookhash.png")) {
    $finalavatar = require("$map/$lookhash.png");
} else {
    $habbo = file_get_contents("http://".hotel."/habbo-imaging/avatarimage?figure=".$figure."&size=".$size."action".$action."&direction=".$direction."&head_direction=".$head."&gesture=".$gesture."");
    $fp = fopen("$map/$lookhash.png", 'w');
    fwrite($fp, $habbo);
    fclose($fp);
    $finalavatar = $habbo;
}
echo $finalavatar;
?>
With the shit at the top filled out. Still not showing avatars
 
Last edited:

Users who are viewing this thread

Top