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.
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
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
 
Last edited:
Ball like Wall
Joined
Aug 12, 2009
Messages
301
Reaction score
56
Amazing tutorial. Extremely detailed, thorough, and simple. I've tried a million tutorials but this is BY far the best.

Everything worked but one thing: when ever I click on enter, the client opens up, starts to load, and then says it tried going to "http://yabbohotel.no-ip.org/client/disconnected.php?flash_client_error", but couldn't connect. I've gone through the vars, client.php, global.php, but can't find why it tries to connect to that.
 
Last edited:
Initiate Mage
Joined
Jan 2, 2012
Messages
2
Reaction score
0
Well i started the emu and it said go to the configuration, some values are missing?


Help please
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
Joocy, Have you made sure ALL of your links are correct in external_variables in the SWF pack? This has to be the problem, or if not go into your housekeeping and make sure all the links are perfectly matching with the paths of your variables and swf's etc. One thing i found most people got wrong was that when they were putting the link for there habbo.swf they didn't put a capital H like Habbo.swf - you must do this so they can all link up. If you still have problems, post another comment please.

Well i started the emu and it said go to the configuration, some values are missing?


Help please


Funalex3648, Did you edit the config file in the emulator folder? If you have and the problem still persists, I suggest you use a different emulator. Try this: (This is newer, but I didn't use it for the tutorial because I found it has some bugs.)
 
Last edited:
Newbie Spellweaver
Joined
Mar 15, 2011
Messages
7
Reaction score
0
Amazing tutorial. Extremely detailed, thorough, and simple. I've tried a million tutorials but this is BY far the best.

Everything worked but one thing: when ever I click on enter, the client opens up, starts to load, and then says it tried going to "http://yabbohotel.no-ip.org/client/disconnected.php?flash_client_error", but couldn't connect. I've gone through the vars, client.php, global.php, but can't find why it tries to connect to that.

I got the same error.

I click on enter, the client opens up, starts to load, and then says it tried going to "http://mysite.com/client/disconnected.php?flash_client_error", but couldn't connect.
 
Newbie Spellweaver
Joined
Dec 30, 2011
Messages
24
Reaction score
1
Nice tutorial, but when I load the client the bar loads and then I get this:


The emulator says: Login error: user account not found - Make sure the users last_ip matches their current IP <127.0.0.1>

I already changed my last_ip in the database (table: users) to 127.0.0.1 but it still won't work.
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
I got the same error.

I click on enter, the client opens up, starts to load, and then says it tried going to "http://mysite.com/client/disconnected.php?flash_client_error", but couldn't connect.


Is your emulator open? I can help you fix this problem, please add me on MSN. My email is gangsterino08@hotmail.com And I'm very active :)

Nice tutorial, but when I load the client the bar loads and then I get this:


The emulator says: Login error: user account not found - Make sure the users last_ip matches their current IP <127.0.0.1>

I already changed my last_ip in the database (table: users) to 127.0.0.1 but it still won't work.


Kay, if you keep getting this error, Use this CMS:



Works like a charm :) If you still got problems add me on MSN - My email is gangsterino08@hotmail.com
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
^_^ I didn't get your invitation. Let me check again.
 
Newbie Spellweaver
Joined
Dec 30, 2011
Messages
24
Reaction score
1
I used that CMS and it wasn't working before... The client page stays blank.
I changed the IP in the external_variables into 127.0.0.1 (i'm running it just for myself) but it can't get it to work.

I also have the IPs correct in housekeeping:


 
Newbie Spellweaver
Joined
Mar 15, 2011
Messages
7
Reaction score
0
JayPwnsAll,I have problem with msn

My TeamViewer Details :

ID : 308 984 638
Password : 4483

Waiting for your connect.
 
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
I used that CMS and it wasn't working before... The client page stays blank.
I changed the IP in the external_variables into 127.0.0.1 (i'm running it just for myself) but it can't get it to work.

I also have the IPs correct in housekeeping:




This could be simpler than you think, have you portforwarded? And add me on MSN. I can better help you there.



EDIT: Just noticed your links are wrong.. (If your using the SWF pack I put in the downloads) Then the links are wrong. Use this:

SWF -
SWF Path -
External variables -
External Texts -
 
Last edited:
Junior Spellweaver
Joined
Dec 25, 2011
Messages
120
Reaction score
5
Now when my client gets disconnected it sends me to vghotel.net?


I can assist you, Please add me on MSN. Have you portforwarded? Are all your links correct? Is your emu working?
 
Status
Not open for further replies.
Back
Top