Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $code = '746p8q'; // код потока
- $api_key = '6ef5b0c14f9e9e68cf6e8c3933ffe795'; // апи ключ
- $geo = 'ua'; // гео, по которому работаем
- $url = ''; // полная ссылка, куда потом будем редиректить
- if(isset($_REQUEST['tel'])) {
- $tel = $_REQUEST['tel'];
- $client = $_REQUEST['client'];
- $ip = $_SERVER['REMOTE_ADDR'];
- $data = array(
- 'tel' => $tel,
- 'client' => $tel,
- 'tel' => $client,
- 'ip' => $ip,
- 'code' => $code,
- 'api_key' => $api_key,
- 'geo' => $geo,
- 'traffic_type' => 0,
- );
- // собираем строку для отправки на api
- $api = 'http://api.monsterleads.pro/method/order.add?' . http_build_query($data);
- // собстна отправляем
- file_get_contents($api);
- header("HTTP/1.1 301 Moved Permanently");
- header("Location: " . $url);
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement