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 mid-season review and news

Bundesliga mid-season review and news
The German Bundesliga is quite an exciting league. The first sixteen rounds of the season have emphatically proven that, both on and off the field. There have been plenty of surprises, both positive and negative. While record champions Bayern Munich do lead the league as expected, even they were not nearly as convincing as usual. As for the league’s second-strongest team on paper Borussia Dortmund, they are currently in sixth place. The other traditional German powerhouses are in mid table or worse. After just less than half of the season, there has been a grand total of seven coaches fired, which...
read more

Bayern Munich hammers RB Leipzig 3-0

Bayern Munich hammers RB Leipzig 3-0
  Bayern Munich went into their home clash with RB Leipzig even on points and only ahead of their visitors on goal difference, on top of the Bundesliga table. With this being the last round of matches before the winter break, the league lead during the end of the calendar year was on the line. After not the best of starts, Bayern quickly took control of the match. In the 17th minute, a Robert Lewandowski shot hit the post and the ball bounced to the feet of Thiago Alcántara. The Spaniard converted, to give his team the lead with a calm right-footed shot from close range. Just eight minutes later,...
read more

Bundesliga update

Bundesliga update
A number of key off-the-field events took place this week, which affected Bundesliga clubs greatly. Previously, I reported on the front office changes at Hamburg and Wolfsburg.Along with news about these stories, Monday also brought us the draws for the UEFA Champions League and the UEFA Europa League. In the former competition, Bayern Munich, Borussia Dortmund and Bayer Leverkusen all found out their Round of 16 opponents. In the Europa League, Schalke 04 and Borussia Mönchengladbach learned their Round of 32 fate. As has been the case for several of the last few years now, Bayern drew FC Arsenal....
read more

Bundesliga madness contnues

Bundesliga madness contnues
  The German Bundesliga is famous for its drama both on and off the field. Even in recent years, when there has admittedly not been much of a title race, there has been plenty of spectacle to draw in the masses. But with all of that said, the drama we are witnessing this season, surpasses much of that of previous years. The 2016/17 season has not yet reached its halfway point, but the events of the last several months have already cost five coaches their jobs. Now two of the clubs that made these changes, are beginning to restructure their front offices as well, after having fired powerful...
read more

Borussia Dortmund tops group after 2-2 draw with Real Madrid

Borussia Dortmund tops group after 2-2 draw with Real Madrid
  Borussia Dortmund played its last group game of the UEFA Champions League away to Real Madrid on Wednesday. With both teams already assured of advancing to the Round of 16, the only thing that was at stake, was who would win the group. The black-and-yellows only needed a draw to accomplish this, and that was exactly what they got. They came back from two goals down in the second half, to earn a 2-2 result. Karim Benzema opened the scoring with a simple finish from close range, just before the half-hour mark. Early in the second half, the Frenchman doubled his and Real Madrid’s tally with a...
read more

« Previous Entries