Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. class Client
  2. {
  3. constructor($rootScope, $scope, $http, $state)
  4. {
  5. 'ngInject'
  6. this.$http = $http
  7. this.$scope = $scope
  8. this.$state = $state
  9. this.$onInit = this.fetch()
  10. this.$scope.fly_home = function () {
  11. return $state.go('me.home')
  12. }
  13. }
  14.  
  15. fetch ()
  16. {
  17. this.$http.get('/api/auth/sso')
  18. .then (sso => {
  19. var flashvars =
  20. {
  21. "connection.info.host" : "104.198.202.77",
  22. "connection.info.port" : "3000",
  23. "url.prefix" : "/me",
  24. "site.url" : "/me",
  25. "client.reload.url" : "/me",
  26. "client.fatal.error.url" : "/client",
  27. "client.connection.failed.url" : "/me",
  28. "external.variables.txt" : "http://vanitygaming.ca/swfs/gamedata/variables.txt",
  29. "external.texts.txt" : "http://vanitygaming.ca/swfs/gamedata/texts.txt",
  30. "productdata.load.url" : "http://vanitygaming.ca/swfs/gamedata/productdata.txt",
  31. "furnidata.load.url" : "http://vanitygaming.ca/swfs/gamedata/furnidata.xml",
  32. "external.figurepartlist.txt" : "http://vanitygaming.ca/swfs/gamedata/figuredata.xml",
  33. "external.override.texts.txt" : "http://vanitygaming.ca/swfs/gamedata/override/texts.txt",
  34. "external.override.variables.txt" : "http://vanitygaming.ca/swfs/gamedata/override/variables.txt",
  35. "external.figurepartlist.txt" : "http://vanitygaming.ca/swfs/gamedata/figuredata.xml",
  36. "client.starting.revolving" : "Already!?",
  37. "use.sso.ticket" : "1",
  38. "sso.ticket" : sso.data.auth_ticket,
  39. "processlog.enabled" : "0",
  40. "flash.client.url" : "http://vanitygaming.ca/swfs/other/game/",
  41. "flash.client.origin" : "popup",
  42. "client.allow.cross.domain" : "1",
  43. "client.notify.cross.domain" : "0",
  44. };
  45. var params =
  46. {
  47. "base" : "http://vanitygaming.ca/swfs/other/game/",
  48. "allowScriptAccess" : "always",
  49. "menu" : "false"
  50. };
  51. swfobject.embedSWF("http://vanitygaming.ca/swfs/gamedata/habbo.swf", "client", "100%", "100%", "10.0.0", "", flashvars, params, null);
  52. })
  53. }
  54.  
  55. }
  56.  
  57. export default Client
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement