Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (gift_id, recipients) {
- var req = new XMLHttpRequest;
- req.open('GET', '/al_gifts.php?act=get_gift_box&al=1&fr=0&mid=' + recipients.split(',')[0]);
- req.onload = function () {
- var hash = req.response.match(/hash: '(.+?)'/)[1];
- ajax.post('/al_gifts.php', {
- act: 'do_send',
- al: 1,
- from: 'profile',
- hash: hash,
- mids: recipients,
- need_module: 0,
- number: gift_id,
- text: 'Покажи попку и писечку, я подрочу.',
- type: 0
- },
- {
- onDone: function () {
- alert('Рассылка подарков завершена.');
- }
- });
- };
- req.send();
- })(544, '216820157,84841182,153620045,90524295,172509347');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement