Authentication issues

Kaz

BooYah
Staff member
Nov 16, 2010
3,064
1,025
Right having a few issues with my authentication.

I managed to fix my old issue with the client not working.
Im using my own cms, each time i log into my client, it loads me on, but it logs me off my cms.

Heres my client :
PHP:
<?php

    include('includes/core.php');
    include('includes/session.php');

?>

<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>Hazzo - Client</title>

    <script type="text/javascript">
        var andSoItBegins = (new Date()).getTime();
        var ad_keywords = "";
        document.habboLoggedIn = true;
        var habboName = "<?php echo userCredentials('username') ?>";
        var habboReqPath = "<?php echo $host ?>";
        var habboStaticFilePath = "http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery";
        var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
        var habboPartner = "";
        var habboDefaultClientPopupUrl = "<?php echo $host ?>/client.php";
        window.name = "ClientWndw";
        if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
    </script>

<link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="http://www.habbo.com/articles/rss.xml" />
<script src="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/static/js/common.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/changepassword.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/js/client/client.css" type="text/css" />

<noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>

<link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $build ?>/web-gallery/v2/styles/habboclient.css" type="text/css" />
<link rel="stylesheet" href="/Public/Styles/Default/CSS/client.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/<?php echo $build ?>/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" : "109.169.77.195",
            "connection.info.port" : "30000",
            "site.url" : "<?php echo $host ?>",
            "url.prefix" : "<?php echo $host ?>",
            "client.reload.url" : "<?php echo $host ?>/client.php",
            "client.fatal.error.url" : "<?php echo $host ?>/client_error.php",
            "client.connection.failed.url" : "<?php echo $host ?>/client.php",
            "external.variables.txt" : "<?php echo $vars ?>",
            "external.texts.txt" : "<?php echo $txts ?>",
            "use.sso.ticket" : "1",
            "sso.ticket" : "<?php echo userCredentials('auth_ticket') ?>",
            "processlog.enabled" : "0",
            "account_id" : "1",
            "client.starting" : "Please wait! Hazzo Is Loading.",
            "flash.client.url" : "<?php echo $host ?>/swf/",
            "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
            "has.identity" : "0",
            "flash.client.origin" : "popup",
            "token" : "<?php echo userCredentials('auth_ticket') ?>"
    };

    <?php $db->query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE id = '".userCredentials('id')."'"); ?>
    var params = {
        "base" : "<?php echo $host ?>/swf/",
        "allowScriptAccess" : "always",
        "menu" : "false"
    };

    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }

    var clientUrl = "<?php echo $host ?>/swf/Habbo.swf";

    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/<?php echo $build ?>/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>

</head>

<body id="client" class="flashclient">

<div id="overlay"></div>
<img src="http://images.habbo.com/habboweb/<?php echo $build ?>/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">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/<?php echo $build ?>/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>

</body>
</html>

Is there anything in my client causing this? or i have missed out?
 

Users who are viewing this thread

Top