Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static function canlilist()
- {
- $adres= self::betradaradres()->betradar_sitesi;
- $ch = curl_init();
- $headers = array(
- 'user-agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36',
- 'x-requested-with:XMLHttpRequest',
- 'vary:Accept-Encoding',
- 'x-powered-by:PHP/5.6.12',
- 'device:d'
- );
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- curl_setopt($ch, CURLOPT_URL,$adres."services/list.livematch");
- curl_setopt($ch, CURLOPT_REFERER,$adres."live");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- //curl_setopt($ch, CURLOPT_POST, 1);
- if(config_item("proxyip")!=""){
- curl_setopt($ch, CURLOPT_PROXY, config_item("proxyip"));
- if(config_item("proxysifre")!="" && config_item("proxykull")!=""){
- curl_setopt($ch, CURLOPT_PROXYUSERPWD, config_item("proxykull").":".config_item("proxysifre"));
- }
- }
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- //curl_setopt($ch, CURLOPT_POSTFIELDS,'hour=86400&search=null&category='.$ulke.'&tournament=all');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $cik = curl_exec ($ch);
- return $cik;
- curl_close ($ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement