-
Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
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="!,@,$,%,&,*,-,_,=,+,?,~"; 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>
-
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.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
Hubbo-Hotel
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. :):
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
n0minal
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 ^,^.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Wish someone would come out with a PHP version of this..
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
FullmetalPride
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.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
It's the SQL approach, but here's Leenster's PHP method. :D:
http://forum.ragezone.com/f353/uberc...ed-sql-732250/
-
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? ;)
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
Maelfic
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. :P:
-
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?
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
Rag3e
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.
-
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 ;)
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
Rag3e
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! :):
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
-
Sexy coldfusion, I love the structure.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
AresCJ
Sexy coldfusion, I love the structure.
Considering that Coldfusion is usually host to ridicule, if you're being serious, thanks. :P:
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
I usually loath looking at a piece of Coldfusion, but like Jordan said, this is pretty well structured, neat aswell.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Does anyone here have it and it works? Because it didn't work for me, so if someone have a fix please release it ;)
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
Livar
I usually loath looking at a piece of Coldfusion, but like Jordan said, this is pretty well structured, neat aswell.
Haha, thank you.
@Rag3e - I'ma working on it. It worked before, I don't know what's changed :S - the error sux.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
n0minal
Haha, thank you.
@Rag3e - I'ma working on it. It worked before, I don't know what's changed :S - the error sux.
Try using habbo.nl instead of habbo.com. I noticed that the ubercms version stopped working also. I did some experimenting and got it working again by getting the webbuild from habbo.nl
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
leenster
Try using habbo.nl instead of habbo.com. I noticed that the ubercms version stopped working also. I did some experimenting and got it working again by getting the webbuild from habbo.nl
Ohhhhhhhhhh! Thank you!
All fixed - I forgot about the whole 'hotlinking' protection or w.e xD
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Quote:
Originally Posted by
n0minal
Ohhhhhhhhhh! Thank you!
All fixed - I forgot about the whole 'hotlinking' protection or w.e xD
I am sure Habbo.nl is going to be doing the same thing pretty soon, so this is just a temp fix. I am working on figuring out a way to bypass their protection.
-
Re: Phoenix CF / Any Coldfusion CMS (with adjustments) auto web-build updater!
Yeah, certainly needs looking into. I'll try with CF :P:
Certainly something exists (http://mabbohotel.net/hotlink.cfm?site=http://habbo.com) - link won't be up for long as it's probably vulnerable to attacks. xD
Quote:
Originally Posted by
n0minal
Yeah, certainly needs looking into. I'll try with CF :P:
Certainly something exists (
301 Moved Permanently) - link won't be up for long as it's probably vulnerable to attacks. xD
Just when I thought I had got it.
301 Moved Permanently
-
Quote:
Originally Posted by
n0minal
Considering that Coldfusion is usually host to ridicule, if you're being serious, thanks. :P:
Yes I was serious, very serious.