[NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

Results 1 to 15 of 15
  1. #1
    Grand Master JaydenC is offline
    Grand MasterRank
    Feb 2012 Join Date
    993Posts

    [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Hey, quick tutorial.
    Recently was getting the "There was no user found with your session ticket"

    Anyways the fix is in these simple steps.

    Go to client.php and open it up.

    Add this code right under the <?php tag

    PHP Code:
    echo "<center></br><b>Notice:</b> Scroll down.</center></br>"
    Save and your done, not sure how this works. But it works. It just adds a message at the top of your client saying to scroll down, you can of course change it. But it works!


  2. #2
    Demi-God tweeney is offline
    Grand MasterRank
    Aug 2008 Join Date
    888Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    No, When there is no user with a SSO ticket, you have to set them a SSO ticket.

  3. #3
    topkek amirite?? Leon is offline
    Grand MasterRank
    May 2009 Join Date
    919Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Quote Originally Posted by tweeney View Post
    No, When there is no user with a SSO ticket, you have to set them a SSO ticket.
    I know what he's talking about. I came up with an alternative, more proper fix for the problem though. Whenever someone loaded up the client, it would generate the SSO ticket and save it to the db too but then it would request the page again thus changing the ticket in the db but not on the page. It's extremely odd I know.

  4. #4
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    Grand MasterRank
    May 2008 Join Date
    KanaadaLocation
    992Posts
    Can someone post the code of the page? There has to be a proper fix for this problem. Let's figure it out.

    Sent from some remote location using Tapatalk...

  5. #5
    topkek amirite?? Leon is offline
    Grand MasterRank
    May 2009 Join Date
    919Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    >
    <
    html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <
    head
    <
    meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <
    title>Nova:   </title
     
    <
    script type="text/javascript"
    var 
    andSoItBegins = (new Date()).getTime();
    var 
    ad_keywords "";
    document.habboLoggedIn true;
    var 
    habboName "LeonH";
    var 
    habboReqPath "http://openhabbo.com";
    var 
    habboStaticFilePath "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/576/web-gallery";
    var 
    habboImagerUrl "http://www.habbo.nl/habbo-imaging/";
    var 
    habboPartner "";
    var 
    habboDefaultClientPopupUrl "http://openhabbo.com/client";
    window.name "habboMain";
    if (
    typeof HabboClient != "undefined") { HabboClient.windowName "uberClientWnd"; }
    </script> 


    <link rel="shortcut icon" href="" type="image/vnd.microsoft.icon" /> 
    <script src="public/js/libs2.js" type="text/javascript"></script>
    <script src="public/js/visual.js" type="text/javascript"></script>
    <script src="public/js/libs.js" type="text/javascript"></script>
    <script src="public/js/common.js" type="text/javascript"></script>
    <script src="public/js/fullcontent.js" type="text/javascript"></script>
    <link rel="stylesheet" href="public/css/style.css" type="text/css" />
    <link rel="stylesheet" href="public/css/buttons.css" type="text/css" />
    <link rel="stylesheet" href="public/css/boxes.css" type="text/css" />
    <link rel="stylesheet" href="public/css/tooltips.css" type="text/css" />
    <link rel="stylesheet" href="public/css/habboclient.css" type="text/css" />
    <link rel="stylesheet" href="public/css/habboflashclient.css" type="text/css" />
    <script src="public/js/habboflashclient.js" type="text/javascript"></script>
    <meta name="description" content="openHabbo is a virtual world where you can meet and make friends. Make friends, join the fun, get noticed!" /> 
    <meta name="keywords" content="uber, uberhotel, uber hotel, meth0d, nillus, ragezone, retro, keep it real, private server, free, credits, habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" /> 
     
    <!--[if IE 8]>
    <link rel="stylesheet" href="public/css/ie8.css" type="text/css" />
    <![endif]--> 
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="public/css/ie.css" type="text/css" />
    <![endif]--> 
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="public/css/ie6.css" type="text/css" />
    <script src="public/js/pngfix.js" type="text/javascript"></script>
    <script type="text/javascript">
    try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
    </script>
     
    <style type="text/css">
    body { behavior: url(http://www.habbo.nl/js/csshover.htc); }
    </style>
    <![endif]--> 
    <meta name="build" content="openHabbo Assets Server" /> 
    </head>







    <noscript>
        <meta http-equiv="refresh" content="0;url=/client/nojs" />
    </noscript>
    <link rel="stylesheet" href="public/css/habboclient.css" type="text/css" />
    <link rel="stylesheet" href="public/css/habboflashclient.css" type="text/css" />
    <script src="public/js/habboflashclient.js" type="text/javascript"></script>
    <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" : "1", 
                "connection.info.host" : 'direct.novahotel.org', 
                "connection.info.port" : "30000", 
                "site.url" : "http://novahotel.org", 
                "url.prefix" : "http://novahotel.org", 
                "client.reload.url" : "http://novahotel.org/client", 
                "client.fatal.error.url" : "http://novahotel.org/client_error", 
                "client.connection.failed.url" : "http://novahotel.org/client_error",  
                "external.variables.txt" : "http://novahotel.org/r63/gamedata/external_variables.txt?2", 
                "external.texts.txt" : "http://novahotel.org/r63/gamedata/external_flash_texts.txt?3", 
                "productdata.load.url" : "http://novahotel.org/gamedata/productdata.txt?0", 
                "furnidata.load.url" : "http://novahotel.org/r63/gamedata/furnidata.txt?5",
                "use.sso.ticket" : "1", 
                "sso.ticket" : "nova-8080-2059-5896-5335-1869", 
                "processlog.enabled" : "1",
                "account_id" : "19927505", 
                "client.starting" : "Please wait! Nova is Loading.", 
                "flash.client.url" : "http://localhost/client.php", 
                "user.hash" : "199275052dbf5f89adb0a643bf16b0ea1cd646db", 
                "flash.client.origin" : "popup" 
        };
        var params = {
    "base" : "http://novahotel.org/r63/gordon/RELEASE63-35255-34886-201108111108/",

            "allowScriptAccess" : "always",
            "menu" : "false"                
        };
        
        if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
        }
    var clientUrl = "http://novahotel.org/r63/gordon/RELEASE63-35255-34886-201108111108/Habbo.swf?3";


        swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/576/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>

    <meta name="description" content="Check into the world? largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and moreT />
    <meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />



    <!--[if IE 8]>
    <link rel="stylesheet" href="public/css/ie8.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="public/css/ie.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="public/css/ie6.css" type="text/css" />
    <script src="public/js/pngfix.js" type="text/javascript"></script>
    <script type="text/javascript">
    try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
    </script>

    <style type="text/css">
    body { behavior: url(/js/csshover.htc); }
    </style>
    <![endif]-->
    <meta name="build" content="63-BUILD36 - 16.11.2010 11:51 - com" />
    </head>

    <body id="client" class="flashclient">
    <div id="overlay"></div>
    <img src="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 update your Flash Player to the latest version.</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/576/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>
            <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">
    238 users online now!
    </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");
            if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") {
                window.opener.location.replace(window.opener.location.href);
            }
            $(document.body).addClassName("public/js");
            HabboClient.startPingListener();
        </script>

    <script type="text/javascript">
        HabboView.run();
    </script>

    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-15697942-2']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>

    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-15533021-14']);
      _gaq.push(['_setDomainName', '.openhabbo.com']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
    </body> 
    </html>

    <!-- Template rendered by novaCMS r2 ---> 

  6. #6
    Grand Master JaydenC is offline
    Grand MasterRank
    Feb 2012 Join Date
    993Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    The function runs itself twice, because in the client.php it calls the function by setting the paramas and then it runs itself once more because the params is used in client.tpl
    For some reason, text at the top of the page solves this. I am not sure why but it works. Shorty couldn't figure it out either. And a die; wont work either.

    Il post the function and the client.php when I get back

    Here is the function from the class file.
    PHP Code:
    public function createTicket()
        {
            
    /*
             *  We need to create a session ticket.
             *  Although, before this is done, we 
             *  need to check to see which server
             *  they're using.
             */

            /*
             *  Generate a random ticket.
             *  ---- This must be completely random.
             */
            
    global $db;

            
    $ticket "";
            
    $ticket .= "nova-";
            
    $ticket .= rand(10009999) . "-";
            
    $ticket .= rand(10009999) . "-";
            
    $ticket .= rand(10009999) . "-";
            
    $ticket .= rand(10009999) . "-";
            
    $ticket .= rand(10009999);

            if(
    Config::Read('system.emulator') == 'Phoenix')
            {
                
    /*
                 *  Create a Phoenix session ticket
                 */

                
    $process $this->write("auth_ticket"$ticket);

            }
            elseif(
    Config::Read('system.emulator') == 'Butterfly')
            {
                
    $exists $db->query("SELECT * FROM user_tickets WHERE userid = ".$this->id);
                
    $num $db->numrows($exists);
                if(
    $num != 0)
                {
                    
    $db->query("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = ".$this->id);
                }
                else
                {
                    
    $db->query("INSERT into user_tickets VALUES(".$this->id.", '".$ticket."', '".$_SERVER['REMOTE_ADDR']."')");

                }
            }
            elseif(
    Config::Read('system.emulator') == 'Uber')
            {
                
    /*
                 *  Create an Uber session ticket
                 *  --- This includes Project Foot.
                 */
            
    }

            return 
    $ticket;
        } 
    then this is run on client.php

    PHP Code:
    $tpl->bind_param("ticket"$user->createTicket()); 

    And then on client.tpl they have a #ticket# var.

  7. #7
    topkek amirite?? Leon is offline
    Grand MasterRank
    May 2009 Join Date
    919Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    PHP Code:
    if(isset($_SESSION['auth']))
    {
        
    $ticket $user->get_data('auth_ticket'$user->username);
        
        if(
    $ticket == '')
        {
            
    $ticket $user->createTicket();
            
    $tpl->bind_param("ticket"$ticket);
            
    $_SESSION['auth'] = $ticket;
        }
        
        
    $tpl->bind_param("ticket"$ticket);
    }
    else
    {
        
    $ticket $user->createTicket();
        
    $tpl->bind_param("ticket"$ticket);
        
    $_SESSION['auth'] = $ticket;

    Something like that would fix it, change it to work with your chosen emulator though.

  8. #8

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Anyone Know where to find A Phoenix 3.6.0+ Database?

  9. #9
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Quote Originally Posted by JesusRiotelli View Post
    Anyone Know where to find A Phoenix 3.6.0+ Database?
    I don't think Ragezone supports Cracked phoenix things.

    Update: When you have a license then it would be in to your Phx.rar folder.

  10. #10

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    I have Phoenix 3.9.0 But When Uploading the Database, I get numerous errors like;



    And It also doesn't create a "users" column in the database?

  11. #11
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Quote Originally Posted by JesusRiotelli View Post
    I have Phoenix 3.9.0 But When Uploading the Database, I get numerous errors like;



    And It also doesn't create a "users" column in the database?

    I can only step to the conclusion where you have obviously used 2 different sql's who doesn't belong together like running the updated version before running the original sql file that may be the cause of the trouble try that?

  12. #12

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Do you have teamviewer? And I can't remember doing that, I ran the Normal Version before The 3.8.0 - 3.9.0?

    I'm rubbish with Phoenix, I'm a developer for v26,rp.

  13. #13
    topkek amirite?? Leon is offline
    Grand MasterRank
    May 2009 Join Date
    919Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Not sure how this thread turned into a help thread..
    Habbo Help - Habbo Development - RaGEZONE forums

  14. #14
    Grand Master JaydenC is offline
    Grand MasterRank
    Feb 2012 Join Date
    993Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Yeah stop spamming this thread.

  15. #15
    Member thebigjack2015 is offline
    MemberRank
    Feb 2007 Join Date
    78Posts

    Re: [NovaCMS][BFLYEMU] How to fix the SSO ticket problem in novaCMS using butterstorm

    Leon, do I replace the sso ticket function with your fix? Where do I put this code?



Advertisement