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();

Bundesliga teams’ Champions League review

Bundesliga teams’ Champions League review
Four teams from the German Bundesliga were involved in UEFA Champions League play this week. That includes Bayer Leverkusen, Borussia Dortmund, Bayern Munich and Borussia Mönchengladbach. Their results by themselves were disappointing overall, but hardly made a major impact in the bigger picture of these teams’ European seasons. The scores included only one win, two draws and one defeat. Leverkusen went into their game against CSKA Moscow with a chance to temporarily go top of their group. After a frantic start, with chances for both teams the Werkself took the early lead through Kevin Volland. In the...
read more

US Soccer fires Jürgen Klinsmann

US Soccer fires Jürgen Klinsmann
US Soccer has fired its national team coach and technical director Jürgen Klinsmann on Monday. The decision itself does not come as a surprise, given the two humiliating defeats (2-1 at home to Mexico and 4-0 away to Costa Rica) that the team started the final round of World Cup qualifying with. The surprise is in the timing, about two weeks after the matches in question. Nonetheless, these two games once again exposed Klinsmann’s tactical incompetence. He tried formations that the players were not suited for and played some of them out of position. There certainly are times for coaches to try new...
read more

Borussia Dortmund beats Bayern Munich 1-0 in Bundesliga play

Borussia Dortmund beats Bayern Munich 1-0 in Bundesliga play
  Just about any time that Borussia Dortmund plays Bayern Munich, the stakes are high. These two teams have emerged as the biggest interregional rivals in German soccer over the last twenty years, even more so in the last five years. In that time span, they have more often than not competed for titles in the Bundesliga and the German Cup. In 2013, they even played each other in the final of the UEFA Champions League. Despite the fact that it is still relatively early in the season, Saturday’s game between them already was a six-pointer for the Bundesliga title. The hosts from Dortmund needed the...
read more

World Cup qualifying summary

World Cup qualifying summary
Qualifying for the 2018 World Cup in Russia took place around the globe in early to mid-November. It is rare that during such a period, matches take place on all six continents where soccer is played, (that is, all continents except Antarctica). However, that was the case this month. South American teams played two rounds each. The same was true for the six teams that remain in contention to qualify from the CONCACAF region, which includes North America, Central America and the Caribbean. Of the six teams still involved in qualifying from the Oceanian region, New Zealand, New Caledonia, the Solomon...
read more

Women’s EURO 2017 draw results and schedule

Women’s EURO 2017 draw results and schedule
UEFA has organized the Women’s EURO since 1984. In the beginning, the tournament took place every two to three years. After 1997, it became a quadrennial event. It started as a four-team tournament and gradually expanded. The 2017 edition which will take place in the Netherlands, will for the first time feature 16 teams. There are two schools of thought on this. According to one, expansion of tournaments dilutes them and does a disservice to the women’s game, by making matches less competitive than they already are. (Germany has won the Women’s EURO eight times, including the last six editions.)...
read more

« Previous Entries