Welcome to the RaGEZONE - MMORPG development forums.

Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

This is a discussion on Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater! within the Habbo Releases forums, part of the Habbo Hotel category; Hello, Some guy PM'ed me and asked me to make an auto web-build updater for him, so, because it wasn't ...

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Click
    Hello,

    Some guy PM'ed me and asked me to make an auto web-build updater for him, so, because it wasn't hard to do I'll release it for the other *few* who use Phoenix CF/ a Coldfusion CMS, still.

    Fixed, now links to Habbo NL for the webbuild - thanks Leenster!

    (If you want to know the latest webbuild, http://mabbohotel.net/webbuild.cfm)

    Just replace your client with this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Read config.ini settings & apply them -->
    <cfset iniFile = expandPath("/config.ini")>
    <cfset DSN = getProfileString(iniFile, "coldfusion", "DSN")>
    <!-- Read config.ini settings & apply them -->
    
    <cfinclude template = "/system/functions/checkusersession.cfm" />
    <cfinclude template = "/system/functions/loadclientsettings.cfm" />
    
    <cfscript>
    function randString(type,ct){ var i=1; var randStr=""; var randNum=""; var
    useList=""; var
    alpha="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z";
    var secure="!,@,$,%,&amp;,*,-,_,=,+,?,~"; for(i=1;i LTE ct;i=i+1){
    randNum=RandRange(1,10); useList="0,1,2,3,4,5,6,7,8,9";
    randStr="#randStr##ListGetAt(useList,randNum)#"; } return randStr; }
    </cfscript>
    
    <cfset rand1 ="#randString('numeric',6)#" />
    <cfset rand2 ="#randString('numeric',5)#" />
    <cfset rand3 ="#randString('numeric',5)#" />
    <cfset rand4 ="#randString('numeric',5)#" />
    <cfset rand5 ="#randString('numeric',5)#" />
    <cfset rand6 ="#randString('numeric',1)#" />
    <cfset ticket ="ST-#rand1#-#rand2##rand3#-#rand4##rand5#-otaku-#rand6#">
    
    <cfquery name="ssoticket" datasource="#DSN#">
    UPDATE users SET auth_ticket = '#ticket#' WHERE username = '#session.username#'
    </cfquery>
    
    <cfif not StructKeyExists(Session,'Webbuild')>
    	<cfhttp url="http://www.habbo.nl">
    	<cfset String = cfhttp.filecontent />
    	<cfset StartText = 'http://images.habbo.com/habboweb/' />
    	<cfset Start = FindNoCase(StartText, String, 1) />
    	<cfset EndText='/web-gallery/v2/favicon.ico' />
    	<cfset Length=Len(StartText) />
    	<cfset End = FindNoCase(EndText, String, Start) />
    	<cfset Build = Mid(String, Start+Length, End-Start-Length) />
    	<cfset Build = trim(Build) />
    	<cfset Session.Webbuild = Build />
    </cfif>
    
    <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>Your Hotel - Client</title>
    
    <cfoutput>
    <script type="text/javascript">
    var andSoItBegins = (new Date()).getTime();
    var ad_keywords = "";
    document.habboLoggedIn = true;
    var habboName = "Sojobo";
    var habboReqPath = "#cms_url#";
    var habboStaticFilePath = "http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery";
    var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
    var habboPartner = "";
    var habboDefaultClientPopupUrl = "#cms_url#/client";
    window.name = "ClientWndw";
    if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
    </script>
    </cfoutput>
    
    <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/#Session.Webbuild#/web-gallery/static/js/libs2.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/static/js/visual.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/static/js/libs.js" type="text/javascript"></script>
    <script src="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/static/js/common.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/style.css" type="text/css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/buttons.css" type="text/css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/boxes.css" type="text/css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/tooltips.css" type="text/css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/changepassword.css" type="text/css" />
    
    <noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />
    </noscript>
    
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/styles/habboclient.css" type="text/css" />
    <link rel="stylesheet" href="/Public/Styles/Default/CSS/client.css" type="text/css" />
    <script src="http://stabbozone.stx.nl/client/Loader.js" type="text/javascript"></script>
    <script src="http://stabbozone.stx.nl/client/habboflashclient.js" type="text/javascript"></script>
    
    <cfoutput>
    <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" : "#client_ip#",
    "connection.info.port" : "#client_port#",
    "site.url" : "#cms_url#",
    "url.prefix" : "#cms_url#",
    "client.reload.url" : "#cms_url#/reauthenticate.cfm?page=/client",
    "client.fatal.error.url" : "#cms_url#/client/disconnected.cfm?flash_client_error",
    "client.connection.failed.url" : "#cms_url#/client/disconnected.cfm?client_connection_failed",
    "external.variables.txt" : "#cms_url#/external_variables.txt",
    "external.texts.txt" : "#cms_url#/external_flash_texts.txt",
    "use.sso.ticket" : "1",
    "sso.ticket" : "#ticket#",
    "processlog.enabled" : "0",
    "account_id" : "1",
    "client.starting" : "Please wait! n0minal is starting up.",
    "flash.client.url" : "#cms_url#",
    "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
    "has.identity" : "0",
    "flash.client.origin" : "popup",
    "token" : "#ticket#"
    };
    var params = {
            "base" : "#cms_url#",
            "allowScriptAccess" : "always",
            "menu" : "false"          
        };
    
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
    params["wmode"] = "opaque";
    }
    
    var clientUrl = "#cms_url#/Habbo.swf";
    
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/#Session.Webbuild#/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>
    </cfoutput>
    
    </head>
    
    <body id="client" class="flashclient">
    <div id="BottomBar">
    
    </div>
    
    <div id="overlay"></div>
    <img src="http://images.habbo.com/habboweb/#Session.Webbuild#/web-gallery/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/#Session.Webbuild#/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>
    
    </body>
    <script type="text/javascript">
    jjLoader.init('client', 6, '/Public/Styles/Default/Images/logo.png', 'http://google.com/c_images/hotel_view_images_hq/hotel_view.png');
    </script>
    </html>
    Last edited by n0minal; 08-07-12 at 11:30 PM.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  2. #2
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    May 2009
    Location
    The Netherlands
    Posts
    241
    Liked
    50

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Thanks a lot, great! But, i still prefer to use my own hosted web-build.

  3. #3
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by Hubbo-Hotel View Post
    Thanks a lot, great! But, i still prefer to use my own hosted web-build.
    Everyone to their own. This can of course be adjusted to update a string in your database too, if one wishes.
    Rag3e likes this.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  4. #4
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    May 2009
    Location
    The Netherlands
    Posts
    241
    Liked
    50

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by n0minal View Post
    Everyone to their own. This can of course be adjusted to update a string in your database too, if one wishes.
    Yeah, i saw that already. You've just made Phoenix CF one feature richer ^,^.

  5. #5
    Infraction Banned
    Rank
    Alpha Member
    Join Date
    Nov 2010
    Location
    Austin, Texas
    Posts
    1,647
    Liked
    259
    Gamertag: EmberCrest

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Wish someone would come out with a PHP version of this..

  6. #6
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    May 2009
    Location
    The Netherlands
    Posts
    241
    Liked
    50

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by FullmetalPride View Post
    Wish someone would come out with a PHP version of this..
    There's one already, use the search function. It's released a few months ago.

  7. #7
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    It's the SQL approach, but here's Leenster's PHP method.

    http://forum.ragezone.com/f353/uberc...ed-sql-732250/


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  8. #8
    Ugiox Loperazr
    Rank
    Subscriber
    Join Date
    Jun 2011
    Location
    Southampton
    Posts
    1,814
    Liked
    351
    PSN ID: Z_ZayD3r_Z

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Love it Jak, I'm moving to CF. This should help me quite a bit!

    P.S - I saw you doing this via Join.me I think? ;)
    regards,
    zMagenta

  9. #9
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by Maelfic View Post
    Love it Jak, I'm moving to CF. This should help me quite a bit!

    P.S - I saw you doing this via Join.me I think? ;)
    Glad it could help - and, you may well have been.
    Rag3e likes this.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  10. #10
    Hardcore Member
    Rank
    Member
    Join Date
    Nov 2011
    Location
    Sweden
    Posts
    143
    Liked
    1

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    The 3 parameter of the Mid function, which is now -33, must be a non-negative integer when I press on client?

  11. #11
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by Rag3e View Post
    The 3 parameter of the Mid function, which is now -33, must be a non-negative integer when I press on client?
    I really don't understand what you mean, sorry. :S

    If you're referring to "End-Start-Length", you don't need to edit any of it, providing it does still work. I'll test it now.
    Rag3e likes this.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  12. #12
    Hardcore Member
    Rank
    Member
    Join Date
    Nov 2011
    Location
    Sweden
    Posts
    143
    Liked
    1

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Okey thanks! I will send you my msn adresse so maybe you can help ;)

  13. #13
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,818
    Liked
    726

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Quote Originally Posted by Rag3e View Post
    Okey thanks! I will send you my msn adresse so maybe you can help ;)
    Sure, and I see what you mean now. Working on a fix now!
    Rag3e likes this.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  14. #14
    Hardcore Member
    Rank
    Member
    Join Date
    Nov 2011
    Location
    Sweden
    Posts
    143
    Liked
    1

    Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!

    Oh thanks! ;)

  15. #15
    Quit Habbo Permanently
    Rank
    Member +
    Join Date
    Jan 2009
    Location
    Montgomery, Ala
    Posts
    1,164
    Liked
    207
    Gamertag: CJ iZ 0wNaG3 PSN ID: CJ3LIT3
    Sexy coldfusion, I love the structure.
    Code:
    [10:32:50 PM] Jonty - Zap Owner/Xen Manager: There's exploits In every cms
    [10:32:57 PM] Jonty - Zap Owner/Xen Manager: I put them there
    Proof of Jonty's cowardly ways to harm people.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •