Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. static function canlilist()
  2. {
  3. $adres= self::betradaradres()->betradar_sitesi;
  4. $ch = curl_init();
  5. $headers = array(
  6. 'user-agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36',
  7. 'x-requested-with:XMLHttpRequest',
  8. 'vary:Accept-Encoding',
  9. 'x-powered-by:PHP/5.6.12',
  10. 'device:d'
  11. );
  12. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  13. curl_setopt($ch, CURLOPT_URL,$adres."services/list.livematch");
  14. curl_setopt($ch, CURLOPT_REFERER,$adres."live");
  15. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  16. //curl_setopt($ch, CURLOPT_POST, 1);
  17. if(config_item("proxyip")!=""){
  18. curl_setopt($ch, CURLOPT_PROXY, config_item("proxyip"));
  19. if(config_item("proxysifre")!="" && config_item("proxykull")!=""){
  20. curl_setopt($ch, CURLOPT_PROXYUSERPWD, config_item("proxykull").":".config_item("proxysifre"));
  21. }
  22. }
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  24. //curl_setopt($ch, CURLOPT_POSTFIELDS,'hour=86400&search=null&category='.$ulke.'&tournament=all');
  25. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  26. $cik = curl_exec ($ch);
  27.  
  28.  
  29. return $cik;
  30. curl_close ($ch);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement