Advertisement
AlexM1SHOP

Untitled

Dec 8th, 2020 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2.  
  3. $url = 'http://m1-shop.ru/send_order/';
  4. $data = [
  5. 'ref' => 795062,
  6. 'api_key' => '9d6c3810de2f19b32e00c39355b340f1',
  7. 'product_id' => 2805,
  8. 'phone' => $_REQUEST['phone'],
  9. 'name' => $_REQUEST['name'],
  10. 'ip' => $_SERVER['REMOTE_ADDR'],
  11. 's' => $_REQUEST['s'],
  12. 'w' => $_REQUEST['w'],
  13. 't' => $_REQUEST['t'],
  14. 'p' => $_REQUEST['p'],
  15. 'm' => $_REQUEST['m']
  16. ];
  17.  
  18. $process = curl_init();
  19. curl_setopt($process, CURLOPT_HEADER, 0);
  20. curl_setopt($process, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)");
  21. curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
  22. curl_setopt($process, CURLOPT_FOLLOWLOCATION, 0);
  23. curl_setopt($process, CURLOPT_TIMEOUT, 20);
  24. curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
  25. curl_setopt($process, CURLOPT_POST, true);
  26. curl_setopt($process, CURLOPT_POSTFIELDS, $data);
  27. curl_setopt($process, CURLOPT_URL, $url);
  28.  
  29.  
  30. curl_close($process);
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement