Fabriciool

Untitled

Jun 20th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.10 KB | None | 0 0
  1. console.log("\n"+"© Copyright PHB 2020."+"\n");
  2. var _33611="21421";var _26452="19895";var _89563="18563";var _54489="23541";var _48962="21535";var _99871="36421";if(typeof deconcept=="undefined"){var deconcept=new Object();}
  3. if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
  4. if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
  5. deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}
  6. this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}
  7. if(id){this.setAttribute("id",id);}
  8. if(w){this.setAttribute("width",w);}
  9. if(h){this.setAttribute("height",h);}
  10. if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
  11. this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}
  12. if(c){this.addParam("bgcolor",c);}
  13. var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};var FlashExternalInterface=(function(){return{logout:function(){if(window.opener){try{window.opener.location=FlashExternalInterface.signoutUrl;window.close();}catch(k){window.location=FlashExternalInterface.signoutUrl;}}else{window.location=FlashExternalInterface.signoutUrl;}},getClient:function(){return document.getElementById('flash-container');}}})();deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f)
  14. {this.attributes[_e]=_f;},getAttribute:function(_10)
  15. {return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+ _18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+ this.getAttribute("swf")+"\" width=\""+ this.getAttribute("width")+"\" height=\""+ this.getAttribute("height")+"\" style=\""+ this.getAttribute("style")+"\"";_19+=" id=\""+ this.getAttribute("id")+"\" name=\""+ this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+ _1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+ _1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+ this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+ this.getAttribute("width")+"\" height=\""+ this.getAttribute("height")+"\" style=\""+ this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+ this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+ key+"\" value=\""+ _1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+ _1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ _26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+ 1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length- 1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var _15567=_48962;var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
  16. function initializeExternalInterfaces(){"use strict";window.HabboFlashClient.init(document.getElementById("flash-container"))}!function(){"use strict";var n="*";window.MainApp={postMessage:function(e){window.parent.postMessage(e,n)}}}(),function(){"use strict";var n=!1;window.FlashExternalInterface={},window.FlashExternalInterface.closeHabblet=function(n){window.MainApp.postMessage({call:"close-habblet",target:n})},window.FlashExternalInterface.disconnect=function(){window.MainApp.postMessage({call:"disconnect"})},window.FlashExternalInterface.heartBeat=function(){window.HabboFlashClient.started=!0,window.MainApp.postMessage({call:"heartbeat"})},window.FlashExternalInterface.legacyTrack=function(n,e,a){window.HabboFlashClient.started=!0,window.HabboTracking.track(n,e,a)},window.FlashExternalInterface.loadConversionTrackingFrame=function(){var n=window.flashvars.unique_habbo_id;$("#conversion-tracking").attr("src","/client/"+n+"/conversion-tracking")},window.FlashExternalInterface.logCrash=function(n){window.HabboFlashClient.started=!0,window.MainApp.postMessage({call:"disconnect"}),window.HabboWebApi.logCrash(n,function(n){n&&window.FlashExternalInterface.track("log","fatal","Can't log login crash: "+n)})},window.FlashExternalInterface.logDebug=function(n){window.FlashExternalInterface.track("log","debug",n)},window.FlashExternalInterface.logError=function(n){window.HabboFlashClient.started=!0,window.HabboWebApi.logError(n,function(n){n&&window.FlashExternalInterface.track("log","error","Can't log login error: "+n)})},window.FlashExternalInterface.logWarn=function(n){window.FlashExternalInterface.track("log","warn",n)},window.FlashExternalInterface.logLoginStep=function(e,a){window.FlashExternalInterface.track("clientload",e,a),window.HabboFlashClient.started=!0,n||"client.init.core.running"!==e||(n=!0,window.MainApp.postMessage({call:"hotel-ready"})),window.HabboWebApi.logLoginStep(e,a,function(n){n&&window.FlashExternalInterface.track("log","error","Can't log login step: "+n)})},window.FlashExternalInterface.logout=function(){window.MainApp.postMessage({call:"logout"})},window.FlashExternalInterface.openExternalPage=function(n){window.MainApp.postMessage({call:"open-external",target:n})},window.FlashExternalInterface.openHabblet=function(n,e){window.HabboTracking.track("openhablet","habletid",n);var a=window.HabboPageTransformer.transformHabblet(n,e);window.FlashExternalInterface.openPage(a)},window.FlashExternalInterface.openWebHabblet=function(n,e){window.HabboTracking.track("openwebhablet",n,e);var a=window.HabboPageTransformer.transformHabblet(n,e);window.FlashExternalInterface.openPage(a)},window.FlashExternalInterface.openPage=function(n){n=window.HabboPageTransformer.translate(n),window.HabboTracking.track("openpage","",n),window.MainApp.postMessage({call:"open-page",target:n})},window.FlashExternalInterface.track=function(n,e,a){window.HabboFlashClient.started=!0,window.HabboTracking.track(n,e,a)},window.FlashExternalInterface.updateFigure=function(n){window.MainApp.postMessage({call:"update-figure",target:n})},window.FlashExternalInterface.updateName=function(n){window.MainApp.postMessage({call:"update-name",target:n})},window.FlashExternalInterface.openMinimail=function(n){window.HabboTracking.track("minimail","open",n),window.MainApp.postMessage({call:"open-page",target:"/"})},window.FlashExternalInterface.openNews=function(){window.HabboTracking.track("news","open",""),window.MainApp.postMessage({call:"open-page",target:"/"})},window.FlashExternalInterface.openAvatars=function(){window.FlashExternalInterface.openPage("/settings/avatars")},window.FlashExternalInterface.showInterstitial=function(){window.MainApp.postMessage({call:"show-interstitial"})},window.FlashExternalInterface.subscriptionUpdated=function(n){window.MainApp.postMessage({call:"update-habbo-club",target:n})},window.FlashExternalInterface.updateBuildersClub=function(n){foicacete();window.MainApp.postMessage({call:"update-builders-club",target:n})}}(),function(){"use strict";function n(n){if(n.data){var t=n.data;switch(console.log("Evento recebido, chamada: "+t.call),t.call){case"open-link":e(t.target);break;case"logout":logoutphb();case"open-room":a(t.target);break;case"interstitial-status":o(t.target)}}}function e(n){t.openlink(n)}function a(n){n.indexOf("r-hh")>=0?t.openroom(n):e("navigator/goto/"+n)}function o(n){window.HabboFlashClient.flashInterface.interstitialCompleted(n)}var t;window.addEventListener("message",n,!1),window.HabboFlashClient={started:!1,init:function(n){window.HabboTracking.track("clientload","starting","Iniciando Hotel."),window.FlashExternalInterface.logLoginStep("web.view.start"),n||(window.FlashExternalInterface.logLoginStep("web.flash_missing")),t=n,window.HabboFlashClient.flashInterface=n,setTimeout(function(){window.HabboFlashClient.started||window.FlashExternalInterface.logLoginStep("client.init.swf.error")},3e4)}}}(),window.addEventListener("load",initializeExternalInterfaces,!1),function(){"use strict";function n(n,e){return 0===n.indexOf(e)}var e={"/credits":"/shop","/creditflow":"/shop","/news":"/community/category/all/1"};window.HabboPageTransformer={translate:function(a){for(var o in e)if(e.hasOwnProperty(o)&&n(a,o))return e[o];return a},transformHabblet:function(n,e){return"/"+n}}}(),function(){"use strict";function n(n,e){$.ajax({url:n,contentType:"application/json",dataType:"json",type:"GET"}).done(function(n){e(null,n)}).fail(function(n){e(n,null)})}window.HabboShopApi={},window.HabboShopApi.checkOffer=function(e){n("/shopapi/checkoffer/",e)}}(),function(){"use strict";var n=function(n,e,a){"console"in window&&"log"in console&&console.log("ação = ["+n+"], tipo = ["+e+"], valor = ["+a+"]"); if(e == "client.init.swf.loaded"){swfcarregada();} if(e == "client.init.core.init"){conectandoserver();} if(e == "client.init.handshake.ok"){conectadophb();} };window.HabboTracking={track:function(e,a,o){n(e,a,o),"clientload"===e&&window.HabboTracking.gaTrack(e,a)},gaTrack:function(n,e){window._gaq&&window._gaq.push(["_trackEvent",n,e])}}}(),function(){"use strict";function n(n,e,a){$.ajax({url:n,contentType:"application/json",dataType:"json",type:"POST",data:JSON.stringify(e)}).done(function(n){a(null,n)}).fail(function(n){a(n,null)})}window.HabboWebApi={},window.HabboWebApi.checkName=function(e,a){n("/api/newuser/name/check",{name:e},a)},window.HabboWebApi.claimName=function(e,a){n("/api/newuser/name/select",{name:e},a)},window.HabboWebApi.saveFigure=function(e,a,o){n("/api/user/look/save",{figure:e,gender:a},o)},window.HabboWebApi.selectRoom=function(e,a){n("/api/newuser/room/select",{roomIndex:e},a)},window.HabboWebApi.logCrash=function(e,a){n("/api/log/crash",{message:e},a)},window.HabboWebApi.logError=function(e,a){n("/api/log/error",{message:e},a)},window.HabboWebApi.logLoginStep=function(e,a,o){n("/api/body.php",{step:e,data:a},o)}}(),function(){"use strict";window.NewUserReception={},window.NewUserReception.checkName=function(n){console.log('Checking name: "'+n+'"...'),window.HabboWebApi.checkName(n,function(e,a){return e?(console.error("Checking name failed!"),void window.HabboFlashClient.flashInterface.newUserReceptionCheckNameFailed(n)):void window.HabboFlashClient.flashInterface.newUserReceptionCheckNameResponse(n,a.code,a.validationResult||[],a.suggestions)})},window.NewUserReception.chooseRoom=function(n){console.log('Choosing room: "'+n+'"...'),window.HabboWebApi.selectRoom(n,function(n){return n?(console.error("Choosing room failed!"),void window.HabboFlashClient.flashInterface.newUserReceptionChooseRoomFailed()):void window.HabboFlashClient.flashInterface.newUserReceptionChooseRoomResponse()})},window.NewUserReception.claimName=function(n){console.log('Claiming name: "'+n+'"...'),window.HabboWebApi.claimName(n,function(e,a){return e?(console.error("Claiming name failed!"),void window.HabboFlashClient.flashInterface.newUserReceptionClaimNameFailed(n)):(window.HabboFlashClient.flashInterface.newUserReceptionClaimNameResponse(a.code,a.validationResult,a.suggestions),void("OK"===a.code&&window.MainApp.postMessage({call:"update-name",target:n})))})},window.NewUserReception.logStep=function(n){window.HabboTracking.track("nux","log",n)},window.NewUserReception.saveOutfit=function(n,e){console.log('Saving outfit: "'+n+'" - "'+e+'"...'),window.HabboWebApi.saveFigure(n,e,function(n,a){return n?(console.error("Saving outfit failed!"),void window.HabboFlashClient.flashInterface.newUserReceptionSaveOutfitFailed()):(window.HabboFlashClient.flashInterface.newUserReceptionSaveOutfitResponse(a.figureString,e,"OK"),void window.MainApp.postMessage({call:"update-figure",target:a.figureString}))})}}(),function(){"use strict";function n(){window._sp_video=new window.SPONSORPAY.Video.Iframe({appid:window._sp_appid,uid:window.flashvars.account_id,height:1e3,width:1e3,display_format:"bare_player",greyout:!1,callback_on_start:function(n){window.HabboFlashClient.flashInterface.sponsorPayOnStart(n.icon_small)},callback_no_offers:function(){window.HabboFlashClient.flashInterface.sponsorPayNoOffers()},callback_on_close:function(){window.HabboFlashClient.flashInterface.sponsorPayOnClose()},callback_on_conversion:function(){window.HabboFlashClient.flashInterface.sponsorPayOnConversion()}});try{window.HabboFlashClient.flashInterface.sponsorPayLoaded()}catch(n){console&&console.error&&console.error(n)}}window.SponsorPay={loadIntegration:function(e){window._sp_appid=e;var a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("src","//be.sponsorpay.com/assets/web_client.js"),a.addEventListener("load",n,!1),document.getElementsByTagName("head")[0].appendChild(a)},backgroundLoad:function(){window._sp_video.backgroundLoad()},showVideo:function(){window._sp_video.showVideo()}}}(),function(){"use strict";function n(){window.SSA_CORE.BrandConnect.engage();var n=document.getElementById("ssaInterstitialTopBar"),e=n.innerHTML;n.innerHTML="";var a=document.createElement("div");a.className="ssaInterstitialTopBarInnerContainerLeft";var o=document.createElement("div");o.className="ssaInterstitialTopBarInnerContainerRight";var t=document.createElement("div");t.className="ssaTopBarCloseButton",t.setAttribute("onClick",'SSA_CORE.close("ssaBrandConnect")'),t.innerHTML="";var i=document.createElement("span");i.className="ssaTopBarTextSpan",i.innerHTML=e,a.appendChild(t),a.appendChild(i),n.appendChild(o),n.appendChild(a);var s=document.getElementById("ssaInterstitialBottomBar"),r=document.createElement("div");r.className="ssaBottomBarInnerLeft";var l=document.createElement("div");l.className="ssaBottomBarInnerRight",s.appendChild(l),s.appendChild(r)}function e(n){n&&n.length>0?window.HabboFlashClient.flashInterface.supersonicAdsOnCampaignsReady(n.length.toString()):window.HabboFlashClient.flashInterface.supersonicAdsOnCampaignsReady("0")}function a(){window.HabboFlashClient.flashInterface.supersonicAdsOnCampaignOpen()}function o(){window.HabboFlashClient.flashInterface.supersonicAdsOnCampaignClose()}function t(){window.HabboFlashClient.flashInterface.supersonicAdsOnCampaignCompleted()}function i(){var n=document.createElement("script");n.setAttribute("src",s),document.getElementsByTagName("head")[0].appendChild(n)}var s="https://a248.e.akamai.net/ssastatic.s3.amazonaws.com/inlineDelivery/delivery.min.gz.js",r=window.flashvars||{},l=r.supersonic_devmode,c=r.supersonic_application_key,w=window.ssa_json={applicationKey:c,onCampaignsReady:e,onCampaignOpen:a,onCampaignClose:o,onCampaignCompleted:t,pagination:!1,customCss:r.supersonic_custom_css};l?(r.supersonic_demo_campaigns&&(w.demoCampaigns=1),w.applicationUserId=r.supersonic_admin_id||r.account_id):w.applicationUserId=r.account_id,window.supersonicAdsCamapaignEngage=n,window.supersonicAdsOnCampaignsReady=e,window.supersonicAdsOnCampaignOpen=a,window.supersonicAdsOnCampaignClose=o,window.supersonicAdsOnCampaignCompleted=t,window.supersonicAdsLoadCampaigns=i}(),function(){"use strict";window.TargetedWebOffer={},window.TargetedWebOffer.checkOffer=function(){console.log("Checking for offer..."),window.HabboShopApi.checkOffer(function(n,e){return n?void window.HabboFlashClient.flashInterface.targetedWebOfferCheckFailed():void window.HabboFlashClient.flashInterface.targetedWebOfferCheckResponse(e)})}}();
Add Comment
Please, Sign In to add comment