Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://m1-shop.ru/send_order/';
- $data = [
- 'ref' => 795062,
- 'api_key' => '9d6c3810de2f19b32e00c39355b340f1',
- 'product_id' => 2805,
- 'phone' => $_REQUEST['phone'],
- 'name' => $_REQUEST['name'],
- 'ip' => $_SERVER['REMOTE_ADDR'],
- 's' => $_REQUEST['s'],
- 'w' => $_REQUEST['w'],
- 't' => $_REQUEST['t'],
- 'p' => $_REQUEST['p'],
- 'm' => $_REQUEST['m']
- ];
- $process = curl_init();
- curl_setopt($process, CURLOPT_HEADER, 0);
- 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)");
- curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($process, CURLOPT_FOLLOWLOCATION, 0);
- curl_setopt($process, CURLOPT_TIMEOUT, 20);
- curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($process, CURLOPT_POST, true);
- curl_setopt($process, CURLOPT_POSTFIELDS, $data);
- curl_setopt($process, CURLOPT_URL, $url);
- curl_close($process);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement