Advertisement
OKyJIucT

Untitled

Feb 22nd, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $code = '746p8q'; // код потока
  5. $api_key = '6ef5b0c14f9e9e68cf6e8c3933ffe795'; // апи ключ
  6. $geo = 'ua'; // гео, по которому работаем
  7. $url = ''; // полная ссылка, куда потом будем редиректить
  8.  
  9. if(isset($_REQUEST['tel'])) {
  10.    
  11.     $tel = $_REQUEST['tel'];
  12.     $client = $_REQUEST['client'];
  13.     $ip = $_SERVER['REMOTE_ADDR'];
  14.    
  15.     $data = array(
  16.         'tel' => $tel,
  17.         'client' => $tel,
  18.         'tel' => $client,
  19.         'ip' => $ip,
  20.         'code' => $code,
  21.         'api_key' => $api_key,
  22.         'geo' => $geo,
  23.         'traffic_type' => 0,
  24.     );
  25.    
  26.     // собираем строку для отправки на api
  27.     $api = 'http://api.monsterleads.pro/method/order.add?' . http_build_query($data);
  28.    
  29.     // собстна отправляем
  30.     file_get_contents($api);
  31.    
  32.     header("HTTP/1.1 301 Moved Permanently");
  33.     header("Location: " . $url);
  34.     exit();
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement