Not many. Habboon, habborp, mine, a couple not popular
Printable View
I don't get why people hate on ColdFusion, in my opinion it's better than PHP. It's not a very well-known language therefore it's brilliant! :D
It's pretty expensive but an alternative is Railo which is free and supports CFML. Most people don't like it because nothing decent has been released coded in ColdFusion. You remember when PhoenixCF was first released? Lots of hotels used it because it was good and didn't care about the language (frankly it's a lot easier than PHP [html-like] so noob friendly) they just needed a good solid CMS to use.
I think that when a decent CMS comes out for ColdFusion people will use it just like they did with PhoenixCF. Until then PHP will most likely be the language of choice for most hotels.
We're planning to implement all of the features from PhoenixCF into Roc. The drawback to developing in Coldfusion is that it's a pain in the ass to install on Linux.. however, since all current emulators require Windows and thus 99% of popular hotels run on their own hardware (VPS or dedicated server) then installing and using Coldfusion is simply an easy choice to make - there are no drawbacks.
Ok, let's wait a couple more years
I think some people forget Java runs on Windows too, I know you would be an idiot to use Java on Windows (More expensive, sacrificing awesome Linux performance) lol.
Well im sorry i am stupit... but can anny1 make a vid for this :S
Your version didn't work for me, so here's my version;
Code:<cfset hosts = ["http://habbo.de/", "http://habbo.com/", "http://habbo.es/", "http://habbo.nl/", "http://habbo.au/", "http://habbo.ca/"]>
<cfif not StructKeyExists(URL, "user")>
Please input a username.
<cfabort>
</cfif>
<cfquery name="getUserLook" datasource="#config.DSN#">
SELECT look
FROM users
WHERE username = <cfqueryparam value="#user#" cfsqltype="CF_SQL_CHAR" maxLength="50">
</cfquery>
<cfset args = "">
<cfif StructKeyExists(URL, "direction")>
<cfset args = "&direction=#direction#">
</cfif>
<cfif StructKeyExists(URL, "head_direction")>
<cfset args = "#args#&head_direction=#head_direction#">
</cfif>
<cfif StructKeyExists(URL, "gesture")>
<cfset args = "#args#&gesture=#gesture#">
</cfif>
<cfif StructKeyExists(URL, "size")>
<cfset args = "#args#&size=#size#">
</cfif>
<cfif StructKeyExists(URL, "img_format")>
<cfset args = "#args#&img_format=#img_format#">
</cfif>
<cfif StructKeyExists(URL, "action")>
<cfset args = "#args#&action=#action#">
</cfif>
<cfif not FileExists("#GetCurrentTemplatePath()#/../avatar_cache/#Hash("#getUserLook.look##args#", "SHA-1")#.png")>
<cfif getUserLook.RecordCount>
<cfset data = [user, getUserLook.look]>
<!--- Loop through supplied hosts. --->
<cfloop from="1" to="#arraylen(hosts)#" index="u">
<!--- Call the host. --->
<cfhttp method="head" url="#hosts[u]#" resolveurl="no" throwonerror="no" />
<!--- If called host responds with a status code --->
<cfif IsDefined("CFHTTP.responseHeader.status_code")>
<!--- Providing the host does not respond with error 403 or 404, then proceed. --->
<cfif CFHTTP.responseHeader.status_code neq "403" or CFHTTP.responseHeader.status_code neq "404">
<!--- The host loads, so let's now verify that it isn't on maintenance or closed by looking for the image. --->
<cfset grabthis = "#hosts[u]#habbo-imaging/avatarimage?figure=#getUserLook.look##args#">
<cfhttp method="get" url="#grabthis#" useragent="#CGI.http_user_agent#" timeout="5" getasbinary="yes" result="objGET">
<cfhttpparam type="HEADER" name="referer" value="http://habbo.com/Home/Shorty-234-Otaku-toas"/>
</cfhttp>
<cfif find("200", objGet.statusCode)>
<cfimage action="write" source="#objGet.FileContent#" destination="#GetCurrentTemplatePath()#/../avatar_cache/#Hash("#getUserLook.look##args#", "SHA-1")#.png" overwrite="no">
<cfcontent type="image/gif" variable="#objGet.FileContent#">
<cfbreak>
<cfelse>
<cfoutput>#objGet.statusCode#</cfoutput>
</cfif>
Whoops, PNG error!
<cfabort>
</cfif>
Whoops, 403/ 404!
<cfabort>
</cfif>
Didn't respond!
<cfabort>
</cfloop>
<cfcontent type="image/png" file="#GetCurrentTemplatePath()#/../avatar_cache/#Hash("#getUserLook.look##args#", "SHA-1")#.png">
<cfelse>
Username does not exist.
<cfabort>
</cfif>
<cfelse>
<cfset existingAvatar = "#GetCurrentTemplatePath()#/../avatar_cache/#Hash("#getUserLook.look##args#", "SHA-1")#.png">
<cfcontent type="image/png" file="#existingAvatar#">
</cfif>