Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfif IsDefined("url.figure")>
- <cfset thisAvatarSize = "">
- <cfset thisAvatarSizeName = "">
- <cfif IsDefined("url.size")>
- <cfset thisAvatarSize = "s">
- <cfset thisAvatarSizeName = "-small">
- </cfif>
- <!-- Gather Path -->
- <cfset thisPath = ExpandPath("*.*")>
- <cfset thisAvatar = GetDirectoryFromPath(thisPath) & url.figure & #thisAvatarSizeName# & ".gif">
- <cfif NOT FileExists(thisAvatar)>
- <cfhttp method="get" url="http://www.habbo.com/habbo-imaging/a...thisAvatarSize#" useragent="#CGI.http_user_agent#" getasbinary="yes" result="objGET">
- <cfhttpparam type="HEADER" name="referer" value="http://habbo.com/Home/HeyGuys-ItsShorty"/>
- </cfhttp>
- <cfif FindNoCase( "200", objGET.StatusCode )>
- <cffile action="write" file="#ExpandPath( './#url.figure##thisAvatarSizeName#.gif' )#" output="#objGET.FileContent#" />
- </cfif>
- </cfif>
- <cffile action="READBINARY" file="#thisAvatar#" variable="AvatarImage">
- <cfcontent variable="#AvatarImage#" >
- </cfif>
Advertisement
Add Comment
Please, Sign In to add comment