How to build a UberCMS Hotel (R63) (Phoenix EMU)

Status
Not open for further replies.

zMagenta

Posting Freak
Jul 15, 2011
1,414
682
Hello DevBest, I've had alot of requests to build/write an UberCMS with my CMS (Not chink, my old edit). So here it is, this is wrote by me. Credits for downloads at the bottom of the thread. Thanks.

1 - Xampp

Right, first of all. Let's get Xampp. Xampp is where you will store your CMS and your database. Without this, you won't even have a hotel! Right, I would say use this link to download;

Once that has downloaded, make sure you run the installer. Just let in run and install. The install process you should be able to do by yourself. But my inbox is always there is you need any help.

Once it's all installed, run the xampp-control panel. It should say "Run the control Panel?" Make sure you click "yes/y". Then start MySQL and Apache. Once that's all on, go to this link;

Once you've gone there, make sure you setup a password for your "root" account. So choose a safe, reliable password. Now you've done Xampp.

2 - CMS

So download the CMS from here; . And extract that to your htdocs. "C:/ -> xampp -> htdocs -> Extract here."

Once extracted, go to; . And login with the password you just setup in security. Your username will be "root". Once logged in, make a new database. It can be called anything. But call it something like "Uber" or something. Once done that, go to the "Import" tab. Click "Choose File" and go to "c:/ -> xampp -> htdocs -> database.sql"
Let that import. Once that has imported, go to htdocs again. And open up the file "Run this into the database first" and select all that and copy. Then go to the "SQL" tab in PHPMyAdmin, and paste and then click "Run". Wait for that to insert. Once that's done now to edit the main CMS.

First thing you need to do, is go to htdocs, then go the folder called "inc". And open the file called "inc.config", And edit this, this is what it should look like;

Code:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| 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.
\======================================================================*/
 
$config['Site']['www'] = "http://sitelink.com";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
 
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "Your pass";
$config['MySQL']['database'] = "Your Db";
 
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "IP";
$config['MUS']['port'] = 30001;
 
?>

Then click "Save". Next part in go into "../inc/tpl" and find the file "page-client". And edit it to something along the lines of this;

Code:
<?php
$rand1 = rand(100000, 999999);
$rand2 = rand(10000, 99999);
$rand3 = rand(10000, 99999);
$rand4 = rand(10000, 99999);
$rand5 = rand(10000, 99999);
$rand6 = rand(1, 9);
 
$ticket = "ST-".$rand1."-".$rand2.$rand3."-".$rand4.$rand5."-otaku-".$rand6;
$username = $_SESSION['UBER_USER_N'];
 
$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'");
 
?>
 
<body id="client" class="flashclient">
 
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
 
<noscript>
    <meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
 
<script type="text/javascript">
    FlashExternalInterface.loginLogEnabled = true;
 
    FlashExternalInterface.logLoginStep("web.view.start");
 
    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
    var flashvars = {
            "client.allow.cross.domain" : "1",
            "client.notify.cross.domain" : "0",
            "connection.info.host" : "127.0.0.1",
            "connection.info.port" : "30000",
            "site.url" : "%www%",
            "url.prefix" : "%www%",
            "client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
            "client.fatal.error.url" : "%www%/flash_client_error",
            "client.connection.failed.url" : "%www%/client_connection_failed",
            "external.hash" : "",
            "external.variables.txt" : "http://link.com/client1/r63/external_variables.txt",
            "external.texts.txt" : "http://link.com/client1/r63/external_flash_texts.txt",
            "use.sso.ticket" : "1",
<?php
 
if ($forwardType > 0)
{
    echo '            "forward.type" : "' . $forwardType . '",' . LB;
    echo '            "forward.id" : "' . $forwardId . '",' . LB;
}
 
?>
            "sso.ticket" : "<?php echo $ticket; ?>",
            "processlog.enabled" : "0",
            "account_id" : "0",
            "client.starting" : "Loading hotel name Hotel...",
            "flash.client.url" : "http://link.com/client1/r63/",
            "user.hash" : "",
            "facebook.user" : "0",
            "has.identity" : "0",
            "flash.client.origin" : "popup"
    };
    var params = {
        "base" : "http://link.com/client1/r63/",
        "allowScriptAccess" : "always",
        "menu" : "false"             
    };
 
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
 
    var clientUrl = "http://212.38.176.149/r63/gordon/RELEASE63-34096-33779-201105271559/Habbo.swf";
    try {
        if (swfobject.getFlashPlayerVersion().major <= 9) {
            clientUrl = "http://212.38.176.149/r63/gordon/RELEASE63-34096-33779-201105271559/Habbo.swf";
        }
    } catch(e) {}
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
 
<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">Please install Adobe Flash Player.</h2>
    <div class="box-content">
            <p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/207/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
</div>
        </div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
    </div>
    <div id="content" class="client-content"></div>         
</div>
    <div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
    <script language="JavaScript" type="text/javascript">
        setTimeout(function() {
            HabboCounter.init(600);
        }, 20000);
    </script>
    </div>
    <script type="text/javascript">
        RightClick.init("flash-wrapper", "flash-container");
    </script>
 
</body>
</html>
Now you've done the client, click "Save". And you've done the CMS.

3 - SWF's

Right, the SWF are the files for your habbo client to work. So download it here; . Once got these, go into your htdocs, and create a folder called "client1". Then extract all the files to the client1 folder.

Once extracted, go to "..../r63/external_variables.txt". Open in notepad, and click replace.
(CTRL + H)
Replace "Client"
Replace with "Client1".
Click save, and you've done the SWF's.

4 - EMU

You can use PhoenixEMU or UberEMU it don't matter. I recommend PhoenixEMU but I don't support cracks neither do DevBest. So if you need help, just PM me.

Well done! You now own your own hotel!

Credits;

Myself - 60% (For the UberCMS + Writing tutorial + Database)
Jamie Turner - 20% (The SWF's)
Aaron/Meth0d - 20% (For the EMU).
 

emo-nemo-123

Member
Nov 20, 2011
80
11
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\global.php on line 30

:(
 

emo-nemo-123

Member
Nov 20, 2011
80
11
well it works but when i open the client it stays at the black screen and says tht my hottel is loading
screenie >>
 

badzoreds

New Member
Aug 24, 2011
13
1
and when I upload the database.sql . It like this.
4nikm

 

emo-nemo-123

Member
Nov 20, 2011
80
11
i got your cms to work, nice job btw, but like i said , the client stays at tht black screen and doesnt load

i customized the cms :D screenie>> me page:
vip shop>> :
my page [ being worked on ] :

anyways, i need help with the client lol, its all i need to get my hotel to work completly . :D
 

zMagenta

Posting Freak
Jul 15, 2011
1,414
682
The "Me" page was already like that, I just didn't have time to finish it off.
 

emo-nemo-123

Member
Nov 20, 2011
80
11
yeah maybe we could make the cms together, knowing your pretty good with the main codes and im quit well with adding fetures :D ill upload it in i secoond
 
Status
Not open for further replies.

Users who are viewing this thread

Top