My Phoenix hotel client error

Marshall Goh

New Member
Nov 17, 2011
27
0
When the client loads, it gives me this error

Code:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\client\disconnected.php on line 11
 
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\client\disconnected.php on line 11
 
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\client\disconnected.php on line 11
A problem occurred, sorry!
Please try reloading the hotel, if the problem continues wait a few minutes before trying again. If you are unable to get onto the hotel for a long peroid of time please report the issue on our forums.

Help me please!!
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
Normally in configuration files you don't need to put an leading '/'. Though this is not really an issue, since most times it will ignore how many of these '/' there are, but it should not lead to your gordon folder. Gordon is the folder that content all of your SWF files, badges etc. and only the client need these.

Post your client/index.php file - the one that you wan't to use.
 

Marshall Goh

New Member
Nov 17, 2011
27
0
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/506/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/506/web-gallery/static/styles/common.css" type="text/css" />
 
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/web-gallery/static/js/libs2.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/web-gallery/static/js/visual.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/web-gallery/static/js/libs.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/web-gallery/static/js/common.js" type="text/javascript"></script>
 
 
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/web-gallery/static/styles/habboflashclient.css" type="text/css" />
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/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" : "El Hotel esta Cargando..",
                "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/506/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/506/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/506/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/506/web-gallery/static/styles/ie6.css" type="text/css" />
    <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/506/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/506/web-gallery/v2/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/506/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>
            </div>
        </div>
        <div id="content" class="client-content"></div>           
    </div>
    <script type="text/javascript">
        HabboView.run();
    </script>
</body>
</html>
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
Try post your settings file, where your set things like client_ip, client_port etc.

If you have any details that is personal, hide them with something like <CENSUR>
 

Marshall Goh

New Member
Nov 17, 2011
27
0
When I changed it, the client is white and the top of the client is black with words

The words
Code:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\client\index.php:1) in C:\xampp\htdocs\global.php on line 2
 
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\client\index.php:1) in C:\xampp\htdocs\global.php on line 12
 

Filth

Member
Nov 3, 2011
219
10
Make sure you've edited the right db in phpmyadmin and if not, setup your swfs again, that worked for me.

Need any help? Afterschool i will come on teamviewer if you like.
 

Marshall Goh

New Member
Nov 17, 2011
27
0
I edited my phpmyadmin and I got the loading screen with that same black bar but with different words like cache limiter or something then it brings me to a screen like after 2 seconds with words like

Code:
Object not found!
 
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
 
If you think this is a server error, please contact the webmaster.
 
Error 404
 
5.211.19.142
12/19/2011 6:24:49 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

The URL is
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
You probably don't have the file disconnected.php in the this folder:

root > client > r63 > 5.211.19.142 > client

where root is where localhost is pointed to.
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
This:


tells me that you go from

<IP> to client folder, to r63 folder, to 5.211.19.142 folder, to client folder, to disconnected.php file.
So you screwed something up in configurations
 

Marshall Goh

New Member
Nov 17, 2011
27
0
How do I change it to htdocs folder, to client folder, to disconnected.php file?

Help please

I need help, my screens are in my other post
 

Users who are viewing this thread

Top