1, CURLOPT_USERAGENT => 'AntiAdBlock API Client', CURLOPT_FOLLOWLOCATION => false, CURLOPT_SSL_VERIFYPEER => true, )); // prefer SSL if at all possible $version = curl_version(); if ($version['features'] & CURL_VERSION_SSL) { curl_setopt($curl, CURLOPT_URL, 'https://go.transferzenad.com' . $url); } else { curl_setopt($curl, CURLOPT_URL, 'http://go.transferzenad.com' . $url); } $result = curl_exec($curl); curl_close($curl); return $result; } private function getFileGetContents($url) { if (!function_exists('file_get_contents') || !ini_get('allow_url_fopen') || ((function_exists('stream_get_wrappers')) && (!in_array('http', stream_get_wrappers())))) { return false; } if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { return file_get_contents('https://go.transferzenad.com' . $url); } else { return file_get_contents('http://go.transferzenad.com' . $url); } } private function getFsockopen($url) { $fp = null; if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { $fp = fsockopen('ssl://' . 'go.transferzenad.com', 443, $enum, $estr, 10); } if ((!$fp) && (!($fp = fsockopen('tcp://' . gethostbyname('go.transferzenad.com'), 80, $enum, $estr, 10)))) { return false; } $out = "GET " . $url . " HTTP/1.1rn"; $out .= "Host: go.transferzenad.comrn"; $out .= "User-Agent: AntiAdBlock API Clientrn"; $out .= "Connection: closernrn"; fwrite($fp, $out); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 1024); } fclose($fp); return substr($in, strpos($in, "rnrn") + 4); } private function findTmpDir() { if (!function_exists('sys_get_temp_dir')) { if (!empty($_ENV['TMP'])) { return realpath($_ENV['TMP']); } if (!empty($_ENV['TMPDIR'])) { return realpath($_ENV['TMPDIR']); } if (!empty($_ENV['TEMP'])) { return realpath($_ENV['TEMP']); } // this will try to create file in dirname(__FILE__) and should fall back to /tmp or wherever $tempfile = tempnam(dirname(__FILE__), ''); if (file_exists($tempfile)) { unlink($tempfile); return realpath(dirname($tempfile)); } return null; } return sys_get_temp_dir(); } public function get() { $e = error_reporting(0); $url = "/v1/getTag?" . http_build_query(array('token' => $this->token, 'zoneId' => $this->zoneId)); $file = $this->findTmpDir() . '/pa-code-' . md5($url) . '.js'; // expires in 4h if (file_exists($file) && (time() - filemtime($file) < 4 * 3600)) { error_reporting($e); return file_get_contents($file); } $code = $this->getCurl($url); if (!$code) { $code = $this->getFileGetContents($url); } if (!$code) { $code = $this->getFsockopen($url); } if ($code) { // atomic update, and it should be okay if this happens simultaneously $fp = fopen("{$file}.tmp", 'wt'); fwrite($fp, $code); fclose($fp); rename("${file}.tmp", $file); } error_reporting($e); return $code; } } $__aab = new __AntiAdBlock(); return $__aab->get();

Bosnia and Herzegovina beats Cyprus 2-0 with Džeko barace

Bosnia and Herzegovina beats Cyprus 2-0 with Džeko barace
Bosnia and Herzegovina played Cyprus at home on Monday night, in what was a must-win World Cup qualifier for both teams. The Cypriots had lost both of their previous matches of the campaign, while the hosts had a win and a loss to show for their efforts so far. At the top of the group Belgium and Greece seemed likely to pull away from the rest. The venue for the game was the stadium named Bilino Polje, in the town of Zenica. While stadiums in cities like the capital of Sarajevo are larger and more modern, the Bosnian FA (probably along with its fans and players) prefers that the national team plays...
read more

Croatia beats Finland 1-0 in World Cup qualifing

Croatia beats Finland 1-0 in World Cup qualifing
Croatia edged out Finland 1-0, in a largely uneventful World Cup qualifier on Sunday. The Scandinavian team bunkered in at the back for most of the first half, focusing on damage-control, rather than on any constructive build-up play. The Croats themselves usually had problems in trying to break down their opponents’ defense. A rare exception was when in the eighteenth minute, full-back Šime Vrsaljko’s cross found Andrej Kramarić. The latter and Mario Mandžukić then pushed it into the goal, with the Juventus striker officially getting credited for the strike. Finland did not change its tactics for the...
read more

Germany puts three past Czechs in World Cup qualifer

Germany puts three past Czechs in World Cup qualifer
  Current World Cup champions Germany continued the road to their title defense in style. After having easily defeated Norway 3-0 in the first qualifying match for Russia 2018 last month, they did the same to the Czech Republic in the second match of the campaign, on Saturday night in Hamburg. The home team was dominant throughout the ninety minutes and the outcome of the game was arguably never in doubt. Thomas Müller gave his country the early lead via a slightly-deflected shot, with just under fifteen minutes on the clock. The almost robotically flawless passing game, with which Joachim Löw’s...
read more

Belgium beats Bosnia and Herzegovina by flattering 4-0 scoreline

Belgium beats Bosnia and Herzegovina by flattering 4-0 scoreline
  Belgium defeated Bosnia and Herzegovina 4-0 in a qualifying match for the 2018 World Cup on Friday in Brussels. Although no one can seriously question that the “Red Devils” were the better team of the evening and deserved to win the game, the four-goal magnitude of the triumph was quite flattering to them. The Belgians simply showed their Bosnian opponents that efficient soccer, in which a team knows when to go forward and when to drop off, may be the most important skill in the sport. The Bosnian “Dragons” by no means played poorly. In fact, they had phases of dominance in the game, during...
read more

Croatia defeats Kosovo with Mario Mandžukić hat-trick

Croatia defeats Kosovo with Mario Mandžukić  hat-trick
Croatia won the second game of its qualifying campaign for World Cup 2018 on Thursday night against Kosovo by a score of 6-0. They did so after having played the first game against Turkey to a 1-1 draw last month. Despite numerous key absences due to injuries, some inaccurate passing in their build-up play and a few major missed goal scoring opportunities, victory for the Vatreni was hardly ever in serious doubt in the course of the ninety minutes. (Photo via zimbio.com) While the national team of Kosovo showed that it has some quality when in possession, that alone was simply was not good enough in...
read more

« Previous Entries Next Entries »