Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Client
- {
- constructor($rootScope, $scope, $http, $state)
- {
- 'ngInject'
- this.$http = $http
- this.$scope = $scope
- this.$state = $state
- this.$onInit = this.fetch()
- this.$scope.fly_home = function () {
- return $state.go('me.home')
- }
- }
- fetch ()
- {
- this.$http.get('/api/auth/sso')
- .then (sso => {
- var flashvars =
- {
- "connection.info.host" : "104.198.202.77",
- "connection.info.port" : "3000",
- "url.prefix" : "/me",
- "site.url" : "/me",
- "client.reload.url" : "/me",
- "client.fatal.error.url" : "/client",
- "client.connection.failed.url" : "/me",
- "external.variables.txt" : "http://vanitygaming.ca/swfs/gamedata/variables.txt",
- "external.texts.txt" : "http://vanitygaming.ca/swfs/gamedata/texts.txt",
- "productdata.load.url" : "http://vanitygaming.ca/swfs/gamedata/productdata.txt",
- "furnidata.load.url" : "http://vanitygaming.ca/swfs/gamedata/furnidata.xml",
- "external.figurepartlist.txt" : "http://vanitygaming.ca/swfs/gamedata/figuredata.xml",
- "external.override.texts.txt" : "http://vanitygaming.ca/swfs/gamedata/override/texts.txt",
- "external.override.variables.txt" : "http://vanitygaming.ca/swfs/gamedata/override/variables.txt",
- "external.figurepartlist.txt" : "http://vanitygaming.ca/swfs/gamedata/figuredata.xml",
- "client.starting.revolving" : "Already!?",
- "use.sso.ticket" : "1",
- "sso.ticket" : sso.data.auth_ticket,
- "processlog.enabled" : "0",
- "flash.client.url" : "http://vanitygaming.ca/swfs/other/game/",
- "flash.client.origin" : "popup",
- "client.allow.cross.domain" : "1",
- "client.notify.cross.domain" : "0",
- };
- var params =
- {
- "base" : "http://vanitygaming.ca/swfs/other/game/",
- "allowScriptAccess" : "always",
- "menu" : "false"
- };
- swfobject.embedSWF("http://vanitygaming.ca/swfs/gamedata/habbo.swf", "client", "100%", "100%", "10.0.0", "", flashvars, params, null);
- })
- }
- }
- export default Client
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement