Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to create a PhoenixPHP Habbo Retro

Status
Not open for further replies.
Initiate Mage
Joined
Jul 30, 2012
Messages
2
Reaction score
0
ehm i cant see the Housekeeping thing?? Some help add me at skype: DimplyAndreas
need help!
 
Initiate Mage
Joined
Aug 10, 2012
Messages
9
Reaction score
0
Sorry for my bad english :S

Hey, first super great tutorial :)) Thumbs up (Y)
I have a problem, the client of the hotel holds at 33%.
Also, If i open the Phoenix Emulator comes a alert with: "Please check your configuration file - some values appear to be missing."
Could you please help me? :)

Thank you very much, u german friend
 
Initiate Mage
Joined
Aug 10, 2012
Messages
9
Reaction score
0
So, i will now starting new from beginn. :)


Edit:

The Phoenix Emulator was running now, but when i check in the Hotel (client) i have a white screen. What i made wrong? Also i have a problem with:

Find a portforwarding tutorial as i cannot write one and forward ports 80 and 30000. Okay, now go into your housekeeping and change whatever you like, like the hotel name and stuff. And change the Server IP to your ip, And change the swf's like this:
SWF Path =
SWF =
External variables =
External texts =

I don't understand this. When i write my ip and /gamedata, comes 'Page not found'. Can anyone help me please? :))
 
Last edited:
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
Sorry for my bad english :S

Hey, first super great tutorial :)) Thumbs up (Y)
I have a problem, the client of the hotel holds at 33%.
Also, If i open the Phoenix Emulator comes a alert with: "Please check your configuration file - some values appear to be missing."
Could you please help me? :)

Thank you very much, u german friend


Hi, in the tutorial when it goes down to the bottom of the page it will say "you need to do just one more thing before you can enter your hotel" then there is a huge code. Open up the client file inside htdocs and replace that code with the one in the tutorial. If it still doesn't work, I advise you to update your web build.

My client is white

help please

Before you post here with the same issue as like 20 other people, you should probably check all of the comments for a solution because you will probably get banned for spamming. To fix the white client you'll have to update your web build, there is plenty of tutorials here on ragezone or on other websites. It is very easy to do and you should have no trouble.
 
Initiate Mage
Joined
Aug 11, 2012
Messages
62
Reaction score
4
hey can i get a tutorial on the rev

Go to page 6 !

I need help I followed your instructions, but im very confused and need help. If you could help me my Skype is Damien.garton1 my msn is Damien.garton@gmail.com if you could add me and show me with what to do would be great thanks!
 
Initiate Mage
Joined
Aug 10, 2012
Messages
60
Reaction score
1
Warning: mysql_pconnect() [function.mysql-pconnect]: MySQL server has gone away in C:\xampp\htdocs\app\class.engine.php on line 48 this is what im getting im seeing the page..but this is what above the page

housekeeping for hotel i saw in the corner by log out its red :p

hey in the client for Rev Cms it saying Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\thehabbos_api\class.validate.php on line 33
 
Initiate Mage
Joined
Aug 11, 2012
Messages
1
Reaction score
0
Hi everybody, I'm new here and I'd like to make a tutorial on creating a r63 Phoenix Habbo Retro. Let's get started :D

Downloads

PhoenixPHP -
Phoenix Emulator 3.7.1 - (With Phoenix Emulator 3.7.1 SQL)
XAMPP -
SWF Pack -
Database -


Okay, so first Install XAMPP. Then run XAMPP control panel, and next to apache and mysql there are start buttons. So start up apache and mysql then go to and set up a password (something easy to remember).


Now download PhoenixPHP and Phoenix Emulator 3.7.1. Go to where XAMPP is located and go inside htdocs and delete every file in there. Open up PhoenixPHP and extract all of the files inside into the htdocs folder. Now go to and log in with the username root and the password you set up before. Go to databases, and create a new one. call it: "phoenixdb" (Without the quotes.) Download the Database in the downloads section and put it on your desktop. In phpmyadmin, go into your database and select the tab "Import". Then select "Choose file" Or "Browse" and a window will pop up, in the window, go to your desktop and double click (select) the Database (sql) then go down to the bottom of the page, and click go. After you did this, click the import tab once again, press "Browse" and select the "3.7.1 SQL" inside the Phoenix Emulator 3.7.1 folder. (Extract the folder from the archive to your desktop if you must first), then press go at the bottom of the page once again.


To setup the emulator, create a new folder on your desktop and name it whatever you like. Then, extract the folder inside the Emulator winrar file to your desktop (If you haven't already.) Open the emulator folder, Double click into "config.conf" (Open with wordpad or notepad) and edit it like this:
Code:
## Phoenix 3.0 System Configuration File

## Licence Information
**************.username=JayPwnsAll
**************.password=Rulez

## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=(The password you setup)
db.name=phoenixdb

## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=100

## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=5000

## Client configuration
client.ping.enabled=1
client.ping.interval=30000

## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1

## Console Configuration
emu.messages.connections=1
emu.messages.roommgr=1


So put in your password, and the name of your database (This should be phoenixdb) but DON'T start the emulator yet.


Go into your database again and select the SQL tab. Then put in this:
Code:
ALTER TABLE `permissions_ranks` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0';
ALTER TABLE `permissions_ranks` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0';

ALTER TABLE `permissions_users` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0';
ALTER TABLE `permissions_users` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0';

DROP TABLE IF EXISTS `permissions_vip`;
CREATE TABLE `permissions_vip` (
  `cmdPush` enum('0','1') NOT NULL DEFAULT '1',
  `cmdPull` enum('0','1') NOT NULL DEFAULT '1',
  `cmdFlagme` enum('0','1') NOT NULL DEFAULT '1',
  `cmdMimic` enum('0','1') NOT NULL DEFAULT '1',
  `cmdMoonwalk` enum('0','1') NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO permissions_vip VALUES ('1', '1', '1', '1', '1');

ALTER TABLE `rooms` ADD `achievement` int(11) NOT NULL DEFAULT '0';

ALTER TABLE `bots` ADD `effect` int(2) NOT NULL DEFAULT '0';

Then press go, if that doesn't work then it probably means you already have the right things in your database, so don't worry about it. Now, go into your htdocs and open up the config file. Edit it like this:
Code:
<?php
$host = "localhost"; ////Most of the time this is Localhost////
$username = "root"; ////I think this is root..////
$password = "password"; ////You're mysql password////
$dbname = "phoenixdb"; ////You're mysql database////

$sitename = 'Habbza'; ////This is you're hotel name!////
$gameport = '30000';
$musport = '30001';

$twitter = 'Amir_Zz'; ////Do you have twitter?////
$radio = 'idk'; ////Fill in a .m3u radio////
$footer = 'Enjoy the hotel!'; ////You can put anything here for in the footer////
?>


Put in your password, and again the name of your database (phoenixdb). Then go to . Now register and then go to - Go into your database and go to the left and scroll down and find the table "users", click into it and then find your user and edit your rank to 7. Now refresh the hotel page and you should have housekeeping. Download the SWF pack i have in the downloads, Put that folder into your htdocs folder. Open up external_variables and press ctrl+h Then put in the "Find what" box "bobba.in" and In the replace box put in your ip from whatismyip.org. Also replace "yohabbohotel.com" and "%predefined%" with your IP.


Find a portforwarding tutorial as i cannot write one and forward ports 80 and 30000. Okay, now go into your housekeeping and change whatever you like, like the hotel name and stuff. And change the Server IP to your ip, And change the swf's like this:
SWF Path =
SWF =
External variables =
External texts =


Go back into phpmyadmin, select your database, look to the left again and scroll down until you find the table "cms_settings" click into it, once there, you have to edit everything that is there to your details. If you don't know how to do this post a comment, I will reply back teaching you how to configure this part. However if you do know, change all the links/settings to yours and then continue.


Once you have set all that up, You need to change just 1 more thing before you can get into your hotel. Go into htdocs/content and open up the "client.php" file. Replace the whole code with this:
Code:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('../global.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<?php

function rndchar()
{
    $rnd = rand(65, 122);
    
    if(96 >= $rnd && $rnd >= 91)
    {
        $rnd = 95;
    }
    return chr($rnd);
}

$str = "";//rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar();

$ticket = "ST-".$str.rand(10000, 99999).$str."-".rand(100000, 999999).rand(100000, 999999);

$username = $_SESSION['username'];
if(@$_GET['ticket'] && @$_GET['username'] && $users->UserPermission('hk_ext_login', $_SESSION['username']))
{
    $username = $_GET['username'];
    $ticket = $_GET['ticket'];
}
$query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'");
$query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'");
?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"> 
<head> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <title><?php echo $sitename." - Client"; ?></title>
 
    <script type="text/javascript"> 
        var andSoItBegins = (new Date()).getTime();
        var ad_keywords = "";
        document.habboLoggedIn = true;
        var habboName = "<?php echo $_SESSION['username']; ?>";
        var habboReqPath = "<?php echo $core->CmsSetting('cms_url'); ?>";
        var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery";
        var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
        var habboPartner = "";
        var habboDefaultClientPopupUrl = "<?php echo $core->CmsSetting('cms_url'); ?>/client";
        window.name = "ClientWndw";
        if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
    </script> 

    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/common.css" type="text/css" />

    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs2.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/visual.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/common.js" type="text/javascript"></script>


    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/habboflashclient.css" type="text/css" />
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>

    <script type="text/javascript"> 
        FlashExternalInterface.loginLogEnabled = false;
        FlashExternalInterface.logLoginStep("web.view.start");
        
        if (top == self) {
            FlashHabboClient.cacheCheck();
        }
        var flashvars = {
                "client.allow.cross.domain" : "1", 
                "client.notify.cross.domain" : "1", 
                "connection.info.host" : "<?php echo $core->CmsSetting('client_ip'); ?>", 
                "connection.info.port" : "<?php echo $core->CmsSetting('client_port'); ?>", 
                "site.url" : "<?php echo $core->CmsSetting('cms_url'); ?>", 
                "url.prefix" : "<?php echo $core->CmsSetting('cms_url'); ?>", 
                "client.reload.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client", 
                "client.fatal.error.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?flash_client_error", 
                "client.connection.failed.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?client_connection_failed", 
                "external.variables.txt" : "<?php echo $core->CmsSetting('client_variables'); ?>",
                "use.sso.ticket" : "1",
                "sso.ticket" : "<?php echo $ticket ?>", 
                "processlog.enabled" : "0", 
                "account_id" : "1", 
                "client.starting" : "Please wait while Habbza Hotel is loading", 
                "flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/", 
                "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02", 
                "has.identity" : "0", 
                "flash.client.origin" : "popup",
                "token" : "<?php echo $ticket ?>",
                "logout.disconnect.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&origin=%origin%", 
                "logout.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&reason=%reason%&origin=%origin%"
        };
        var params = {
            "base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",
            "allowScriptAccess" : "always",
            "menu" : "false"                
        };
        
        if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
        }
        
        //no cach!!
        
        var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>";

        swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/flash/expressInstall.swf", flashvars, params);
     
        window.onbeforeunload = unloading;
        function unloading() {
            var clientObject;
            if (navigator.appName.indexOf("Microsoft") != -1) {
                clientObject = window["flash-container"];
            } else {
                clientObject = document["flash-container"];
            }
            try {
                clientObject.unloading();
            } catch (e) {}
        }
    </script>
    
    <!--[if IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie8.css" type="text/css" />
    <![endif]--> 
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie.css" type="text/css" />
    <![endif]--> 
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie6.css" type="text/css" />
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
    <script type="text/javascript">
    try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
    </script>
     
    <![endif]--> 
</head> 
<body id="client" class="flashclient"> 
    <div id="overlay"></div> 
    <img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/page_loader.gif" style="position:absolute; margin: -1500px;" /> 
    <div id="overlay"></div> 
    <div id="client-ui" > 
        <div id="flash-wrapper"> 
            <div id="flash-container"> 
                <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none"> 
                    <div class="cbb clearfix"> 
                        <h2 class="title">Por favor, actualiza tu Flash Player a la ?ltima versi?n</h2> 
                        <div class="box-content"> 
                                <p>Puedes instalar y descargar Adobe Flash Player aqu?: <a href="http://get.adobe.com/flashplayer/">Instala Flash player</a>. M?s instrucciones para su instalaci?n aqu?: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">M?s informaci?n</a></p> 
                                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> 
                        </div> 
                    </div> 
                </div> 
                <script type="text/javascript"> 
                    $('content').show();
                </script>
            </div> 
        </div> 
        <div id="content" class="client-content"></div>            
    </div>
    <script type="text/javascript"> 
        HabboView.run();
    </script> 
</body> 
</html>

Once you have done that, start the Phoenix emulator and if it starts up fine, you can now enter your hotel! If you need any help please post a comment :).


Please don't post hateful comments as this is just my first tutorial and I am still learning. Thank you. And please remember that PhoenixPHP is not very secure. So I suggest you move on to RevCMS, which can be downloaded here:

If you need a tutorial on setting it up, please post a comment :)


Thank you all! Enjoy your hotel! :D

The Client doesn't work it just comes up with a blank screen white blank screen and i didnt have the housekeeping in mine why:huh::mellow::/::/::/::/:
 
Initiate Mage
Joined
Aug 10, 2012
Messages
60
Reaction score
1
same^^ idk wut to do..team view someone?

anyone want to teamview and help me with my client and cms prob? Pm me details:)
 
Initiate Mage
Joined
Aug 12, 2012
Messages
1
Reaction score
0
I'm having problems I changed the rank of my user but still do not see the housekeeping abilities when I go to the site.
 
Initiate Mage
Joined
Aug 10, 2012
Messages
9
Reaction score
0
My housekeeping is not well.
I do not want to download ReCMS, because I will not understand this :X

When I download the SWF comes at a certain percentage, an error message
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
The housekeeping is because of the cms, it is very old and unfit for use. That is why I have told many, many people to setup revcms, because it is more secure, and will also work better. There is a tutorial in the comments, I think page 8. Good luck!
 
Initiate Mage
Joined
Aug 11, 2012
Messages
62
Reaction score
4
Could you accept my msn please i need help my problem is this:Fatal error: Call to undefined function curl_init() in C:\Users\Damien Garton\Documents\xampp\htdocs\thehabbos_api\class.validate.php on line 33
If you could teamview me or skype me would be helpful, I really want this up and running this weekend. Im from Australia and i dont know what time you are on. So send me a message when a good time is this weekend and i will be there. Please reply. This a a great tut but sitll i get confused :( Thankyou.
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
Could you accept my msn please i need help my problem is this:Fatal error: Call to undefined function curl_init() in C:\Users\Damien Garton\Documents\xampp\htdocs\thehabbos_api\class.validate.php on line 33
If you could teamview me or skype me would be helpful, I really want this up and running this weekend. Im from Australia and i dont know what time you are on. So send me a message when a good time is this weekend and i will be there. Please reply. This a a great tut but sitll i get confused :( Thankyou.

I live in Australia too, the way you fix this is going into thehabbos_api config, then just set curl to 0. It should then work, if not just go to yourlink/client instead of going to yourlink/api (which is your enter hotel button)
 
Initiate Mage
Joined
Aug 10, 2012
Messages
9
Reaction score
0
I have only 1 Problem. (I use now the RevCMS) The Client was by localhost/client white. The sound was going (!). localhost/api = error

Must I use in the RevCMS

Once you have set all that up, You need to change just 1 more thing before you can get into your hotel. Go into htdocs/content and open up the "client.php" file. Replace the whole code with this:

Code: [...]

When so, where?
(Sorry, iam a noob)

Thank u very much for helping! :)

(Sorry, many people write the client was white. But i cant understand it really)
 
Last edited:
Status
Not open for further replies.
Back
Top