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

Bayern Munich wins fifth consecutive Bundesliga title

Bayern Munich wins fifth consecutive Bundesliga title
Bayern Munich won its unprecedented fifth  consecutive German championship on Saturday, which is their 27th such title overall, and even more incredibly, their 26th in the Bundesliga era (which began in the 1960s). The Bavarian giants did this with a convincing 6-0 hammering of relegation-threatened VfL Wolfsburg, after second-placed RB Leipzig dropped points at home to FC Ingolstadt. The team from Munich now has a ten-point lead over Leipzig, which cannot be surpassed with only three rounds left to play. Interestingly, it was during the reverse fixtures to the current round, that Bayern took the...
read more

Eintracht Frankfurt ,Borussia Dortmund reach German Cup final

Eintracht Frankfurt ,Borussia Dortmund reach German Cup final
The first semifinal of this year’s German Cup took place on Tuesday, featuring Borussia Mönchengladbach and Eintracht Frankfurt. The visitors from Germany’s banking metropolis attacked eagerly from the beginning and got their reward in the 15th minute, through Taleb Tawatha, who gave them the lead. Gladbach had a difficult time getting into the game, until Jonas Hofmann scored the equalizer, deep in first half added time and almost out of nothing. The home team was the more active of the two in the second half, which was like a war of attrition. Despite their narrow dominance in the second 45 minutes,...
read more

Bundesliga not represented in European semifinals

Bundesliga not represented in European semifinals
As reported earlier in the week, Bayern Munich fell to Real Madrid in the Champions League Tuesday. As painful as the circumstances surrounding that defeat were, the week continued to get worse for the Bundesliga clubs that were remaining in Europe. On Wednesday, Borussia Dortmund failed to overturn a 3-2 deficit to AS Monaco, losing the second leg as well. After that, all German hopes rested on Europa League side Schalke 04. They were the only Bundesliga team that had the advantage of playing its European quarterfinal second leg at home. On the other hand, they had a 2-0 deficit to overcome against...
read more

Bayern Munich denied by bad refereeing in Madrid

Bayern Munich denied by bad refereeing in Madrid
Bayern Munich took on Real Madrid in the Spanish capital on Tuesday in a memorable quarterfinal second leg of the UEFA Champions League. The game had everything one could wish for, except good officiating. It went back and forth and into extra time, before the crew of otherwise widely-respected Hungarian referee Victor Kassai took Real over the top. After last week’s 2-1 defeat at home, the Bavarians had a long way to go, to come back from the deficit. The first half in Madrid produced several chances at both ends, but no goals. Bayern Munich controlled most of the second half and forced their...
read more

Bayern Munich loses home leg of CL quarterfinal to Real Madrid

Bayern Munich loses home leg of CL quarterfinal to Real Madrid
Bayern Munich took on Real Madrid at home, in the first leg of their UEFA Champions League quarterfinal matchup on Wednesday. Both teams are among the elite on the European continent and beyond. Neither of them has been used to elimination from the competition before at least the semifinal round in recent years. Real Madrid is the current titleholder of the Champions League, having won it twice in the last three seasons alone. Their Bavarian opponents last lifted the top continental trophy in 2013, and reached at least the semifinals in each of the five seasons prior to this one. On paper, this...
read more

« Previous Entries