Hotel opens and shows GUI then quickly redirects to /me

robater

New Member
Oct 20, 2012
3
0
When I open my hotel it loads and shows the gui then instantly redirects me to my /me
Using RevCMS
Client.PHP
PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Client</title>
       
        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/client.css" type="text/css">
       
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "http://174.96.199.203/game";
            var flashvars =
            {
                "client.starting" : "Please wait, {hotelname} loading",
                "hotelview.banner.url" : "http://174.96.199.203/game/rs4.php",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "localhost",
                "connection.info.port" : "30000",
                "site.url" : "http://174.96.199.203",
                "url.prefix" : "http://174.96.199.203",
                "client.reload.url" : "http://174.96.199.203/client",
                "client.fatal.error.url" : "http://174.96.199.203/me",
                "client.connection.failed.url" : "http://174.96.199.203/me",
                "external.variables.txt" : "http://174.96.199.203/game/external_variables.txt",
                "external.texts.txt" : "http://174.96.199.203/game/external_flash_texts.txt",
                "productdata.load.url" : "http://174.96.199.203/game/productdata.txt",
                "furnidata.load.url" : "http://174.96.199.203/game/furnidata_xml.xml",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
                "flash.client.origin" : "popup"
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"               
            };
            swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "http://174.96.199.203/expressInstall.swf", flashvars, params, null);
        </script>
    </head>
   
    <body>
   
        <div id="client"></div>
   
    </body>
</html>
RevCMS Management Config
PHP:
<?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'] = '************'; //MySQL password

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

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

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

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

$_CONFIG['hotel']['url'] = 'http://174.96.199.203'; //Does not end with a "/"

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

$_CONFIG['hotel']['desc'] = 'Where The Fun Begins!'; //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 am a new player.'; //Default motto users will register with.

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

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

$_CONFIG['hotel']['figure'] = 'hr-125-31.ch-215-62.hd-209-8.lg-275-63'; //Default figure users will register with.

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

$_CONFIG['hotel']['external_vars'] = 'http://127.0.0.1/game/external_variables.txt'; //URL to your external

$_CONFIG['hotel']['external_texts'] = 'http://127.0.0.1/game/external_flash_texts.txt'; //URL to your external texts

$_CONFIG['hotel']['product_data'] = 'http://127.0.0.1/game/productdata.txt'; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = 'http://127.0.0.1/game/furnidata.txt'; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = 'http://127.0.0.1/game'; //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'] = 'HabboExtreme';

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

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

/*
*
*    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'] = ''; //Hotel's Twitter account

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


?>
 

Exentra

New Member
May 17, 2014
5
0
Not being funny or anything, but maybe you should of left your Internet Protocol address out of it all. It's a right puncture to the security and safety of your server, for a variety of reasons.
Try changing this: "connection.info.host" : "localhost", to this "connection.info.host" : "{server_ip}".
Then this $_CONFIG['hotel']['server_ip'] = '127.0.0.1'; to this $_CONFIG['hotel']['server_ip'] = '174.96.199.203';
Change this,
$_CONFIG['hotel']['external_vars'] = ' //URL to your external$_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 '/')
To this,
$_CONFIG['hotel']['external_vars'] = ' //URL to your external$_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 '/')

When you purchase a domain (which you should of done already before posting your servers IP on here), you must change all of what I have edited to the registered domain name. You can buy a domain for the price of £1.29 from crazydomains.co.uk.

Thank you.
 

robater

New Member
Oct 20, 2012
3
0
Same Problem, Updated phps
PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Client</title>
      
        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/client.css" type="text/css">
      
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "http://174.96.199.203/game";
            var flashvars =
            {
                "client.starting" : "Please wait, {hotelname} loading",
                "hotelview.banner.url" : "http://174.96.199.203/game/rs4.php",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "{server_ip}",
                "connection.info.port" : "30000",
                "site.url" : "http://174.96.199.203",
                "url.prefix" : "http://174.96.199.203",
                "client.reload.url" : "http://174.96.199.203/client",
                "client.fatal.error.url" : "http://174.96.199.203/me",
                "client.connection.failed.url" : "http://174.96.199.203/me",
                "external.variables.txt" : "http://174.96.199.203/game/external_variables.txt",
                "external.texts.txt" : "http://174.96.199.203/game/external_flash_texts.txt",
                "productdata.load.url" : "http://174.96.199.203/game/productdata.txt",
                "furnidata.load.url" : "http://174.96.199.203/game/furnidata_xml.xml",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
                "flash.client.origin" : "popup"
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"              
            };
            swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "http://174.96.199.203/expressInstall.swf", flashvars, params, null);
        </script>
    </head>
  
    <body>
  
        <div id="client"></div>
  
    </body>
</html>

PHP:
<?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'] = '****'; //MySQL password

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

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

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

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

$_CONFIG['hotel']['url'] = 'http://174.96.199.203'; //Does not end with a "/"

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

$_CONFIG['hotel']['desc'] = 'Where The Fun Begins!'; //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 am a new player.'; //Default motto users will register with.

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

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

$_CONFIG['hotel']['figure'] = 'hr-125-31.ch-215-62.hd-209-8.lg-275-63'; //Default figure users will register with.

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

$_CONFIG['hotel']['external_vars'] = 'http://174.96.199.203/game/external_variables.txt'; //URL to your external

$_CONFIG['hotel']['external_texts'] = 'http://174.96.199.203/game/external_flash_texts.txt'; //URL to your external texts

$_CONFIG['hotel']['product_data'] = 'http://174.96.199.203/game/productdata.txt'; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = 'http://174.96.199.203/game/furnidata.txt'; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = 'http://174.96.199.203/game'; //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'] = 'HabboExtreme';

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

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

/*
*
*    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'] = ''; //Hotel's Twitter account

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


?>
 

Users who are viewing this thread

Top