Updated Habbo Web Build?

Habbos

Member
Jul 3, 2010
140
4
PHP:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
| http:/www.meth0d.org & http:/www.sulake.biz
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
 
class uberTpl
{
    private $outputData;
    private $params = Array();
    private $includeFiles = Array();
   
    public function Init()
    {
        global $core, $users;
   
        $this->SetParam('', 'Holo');
        $this->SetParam('body_id', '');
        $this->SetParam('page_title', ' ');
        $this->SetParam('flash_build', 'flash_63_9');
        $this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/287');
        $this->SetParam('web_build_str', '63-BUILD - emErica help.');
        $this->SetParam('req_path', WWW);
        $this->SetParam('www', WWW);
        $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
        $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));
       
        if (LOGGED_IN)
        {
            $this->SetParam('habboLoggedIn', 'true');
            $this->SetParam('habboName', USER_NAME);
            $this->SetParam('vipbalance', '<b>' . $users->GetUserVar(USER_ID, 'vip_points') . ' <img src="' . WWW . '/images/vipcoin.gif" style="vertical-align: middle;"></b>');
        }
        else
        {
            $this->SetParam('habboLoggedIn', 'false');
            $this->SetParam('habboName', 'null');
        }
    }
   
    public function AddIncludeSet($set)
    {
        switch (strtolower($set))
        {
            case "frontpage":
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/landing.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/frontpage.css', 'stylesheet'));           
                break;
               
            case "register":
 
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));       
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));       
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/changepassword.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/forcedemaillogin.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/quickregister.css', 'stylesheet'));
                break;
       
 
       
            case "process-template":
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/process.css', 'stylesheet'));   
                break;
               
            case 'myhabbo':
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));               
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/myhabbo.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/skins.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/dialogs.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/buttons.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/boxes.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://www.habbo.co.uk/myhabbo/styles/assets.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/homeview.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/lightwindow.css', 'stylesheet'));
                break;
           
            case 'default':
            default:
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));       
                break;
        }
    }
   
    public function AddGeneric($tplName)
    {
        $tpl = new Template($tplName);
        $this->outputData .= $tpl->GetHtml();
    }
   
    public function AddTemplate($tpl)
    {
        $this->outputData .= $tpl->GetHtml();
    }
   
    public function SetParam($param, $value)
    {
        $this->params[$param] = is_object($value) ? $value->fetch() : $value;
    }
   
    public function UnsetParam($param)
    {
        unset($this->params[$param]);
    }
   
    public function AddIncludeFile($incFile)
    {
        $this->includeFiles[] = $incFile;
    }
   
    public function WriteIncludeFiles()
    {
        foreach ($this->includeFiles as $f)
        {
            $this->Write($f->GetHtml() . LB);
        }
    }
   
    public function Write($str)
    {
        $this->outputData .= $str;
    }
   
    public function FilterParams($str)
    {
        foreach ($this->params as $param => $value)
        {
            $str = str_ireplace('%' . $param . '%', $value, $str);
        }
       
        return $str;
    }
   
    public function Output()
    {
        global $core;
   
        $this->Write(LB . LB . '<!-- uberCMS: Took ' . (microtime(true) - $core->execStart) . ' to output this page -->' . LB . LB);
       
        echo $this->FilterParams($this->outputData);
    }
}
 
class Template
{
    private $params = Array();
    private $tplName = '';
   
    public function Template($tplName)
    {
        $this->tplName = $tplName;
    }
   
    public function GetHtml()
    {
        global $users;
   
        extract($this->params);
   
        $file = CWD . 'inc/tpl/' . $this->tplName . '.tpl';
   
        if (!file_exists($file))
        {
            uberCore::SystemError('Template system error', 'Could not load template: ' . $this->tplName);
        }
       
        ob_start();
        include($file);
        $data = ob_get_contents();
        ob_end_clean();   
       
        return $this->FilterParams($data);
    }
   
    public function FilterParams($str)
    {
        foreach ($this->params as $param => $value)
        {
            if (is_object($value))
            {
                continue;
            }
       
            $str = str_ireplace('%' . $param . '%', $value, $str);
        }
       
        return $str;
    }
   
    public function SetParam($param, $value)
    {
        $this->params[$param] = $value;
    }
   
    public function UnsetParam($param)
    {
        unset($this->params[$param]);
    }       
}
 
class IncludeFile
{
    private $type;
    private $src;
    private $rel;
    private $name;
 
    public function IncludeFile($type, $src, $rel = '', $name = '')
    {
        global $tpl;
   
        $this->type = $type;
        $this->src = $src;
        $this->rel = $rel;
        $this->name = $name;
    }
   
    public function GetHtml()
    {
        switch ($this->type)
        {
            case 'application/rss+xml':
           
                return '<link rel="' . $this->rel . '" type="' . $this->type . '" title="' . $this->name . '" href="' . $this->src . '" />';
       
            case 'text/javascript':
           
                return '<script src="' . $this->src . '" type="text/javascript"></script>';
               
            case 'text/css':
            default:
           
                return '<link rel="' . $this->rel . '" href="' . $this->src . '" type="' . $this->type . '" />';
        }
    }
}
 
?>

Credits to meap
 

Platinum

Hello!
Sep 2, 2012
295
282
Then the whole problem is you unfortunately i can't help you out then try checking if you even have you're r63 swf right.
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
#Please fill this all out.

#NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.

/*
*
*MySQL management
*
*/

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.

$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host

$_CONFIG['mysql']['username'] = 'root'; //MySQL username

$_CONFIG['mysql']['password'] = '123qwe'; //MySQL password

$_CONFIG['mysql']['database'] = 'phoenix3'; //MySQL database

$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

/*
*
*Hotel management - All URLs do not end with an "/"
*
*/

$_CONFIG['hotel']['server_ip'] = '5.167.6.148'; //IP of VPS/DEDI/etc

$_CONFIG['hotel']['url'] = ' //Does not end with a "/"

$_CONFIG['hotel']['name'] = 'Sorce'; // Hotel's name

$_CONFIG['hotel']['desc'] = 'Best hotel around!'; //Hotel's description

$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin

$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance

$_CONFIG['hotel']['motto'] = 'I <3 ' . $_CONFIG['hotel']['name']; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 5000; //Default number of credits users will register with.

$_CONFIG['hotel']['pixels'] = 10000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = '-'; //Default figure users will register with.

$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1285/'; //Web_Build

$_CONFIG['hotel']['external_vars'] = ' //URL to your external vars

$_CONFIG['hotel']['external_texts'] = ' //URL to your external texts

$_CONFIG['hotel']['product_data'] = ' //URL to your productdata

$_CONFIG['hotel']['furni_data'] = ' //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = ' //URL to your SWF folder(does not end with a '/')

/*
*
*Templating management - Pick one of our default styles or make yours by following our examples!
*
*/

#RevCMS has 2 default styles, 'Mango' by dannyy94 and 'Priv' by joopie - Others styles are to come, such as RastaLulz's ProCMS style and Nominal's PhoenixCMS 4.0 style.

$_CONFIG['template']['style'] = 'Mango';

/*
*
*Other topsites.. thing
*
*/

$_CONFIG['thehabbos']['username'] = 'Kryptos';
$_CONFIG['retro_top']['user'] = 'Kryptos';

/*
*
*Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.
*
*/

$_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';
$_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';


/*
*
*Social Networking stuff
*
*/

$_CONFIG['social']['twitter'] = 'TwitterAccount'; //Hotel's Twitter account

$_CONFIG['social']['facebook'] = 'FacebookAccount'; //Hotel's Facebook account




Feel free to find out anything that's Wrong -.-"
 

Users who are viewing this thread

Top