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

Unusual start to Bundesliga season

Unusual start to Bundesliga season
It has been a crazy season in the Bundesliga so far, even for that league’s wild standards. Record champions Bayern Munich are still on top, but goal difference is all that separates them from the high-flying and controversial newcomers RB Leipzig. Perhaps more relevantly in the bigger picture, the Bavarians’ 1-1 draw against TSG Hoffenheim over the weekend along with Borussia Dortmund’s 5-2 victory against Hamburger SV puts the “Black and Yellows” from Germany’s Ruhr Valley six points within top spot. They could cut that deficit in half with a win in the next round, when they face the champions at...
read more

FIFA awards to include fan votes pt.2

FIFA awards to include fan votes pt.2
Today marks the beginning of a new era in voting for the award winners of FIFA’s main annual individual prizes. For the first time, fans registered on the website of world soccer’s governing body( www.fifa.com), can cast their votes in the four most prestigious award categories. They are as follows: Best FIFA Men’s Player, Best FIFA Women’s Player, Best FIFA Men’s Coach and Best FIFA Women’s Coach. As the voting procedure explains, fan voting is open from today until the 22nd of November at midnight Central European Time. Furthermore, besides the fans, national team coaches and captains still retain...
read more

FIFA awards to include fan votes pt.1

FIFA awards to include fan votes pt.1
Today marks the beginning of a new era in voting for the award winners of FIFA’s main annual individual prizes. For the first time, fans registered on the website of world soccer’s governing body( www.fifa.com), can cast their votes in the four most prestigious award categories. They are as follows: Best FIFA Men’s Player, Best FIFA Women’s Player, Best FIFA Men’s Coach and Best FIFA Women’s Coach. As the voting procedure explains, fan voting is open from today until the 22nd of November at midnight Central European Time. Furthermore, besides the fans, national team coaches and captains still retain...
read more

Bayern Munich advances in CL thanks to Lewanowski brace

Bayern Munich advances in CL thanks to Lewanowski brace
Bayern Munich faced PSV Eindhoven away from home on Tuesday night in Champions League group play. The visitors aimed to qualify for the Round of 16, with two games to spare. Meanwhile the home team tried to give themselves a realistic opportunity to advance, for which a victory in this game would have been vital. The PSV fans created an electric atmosphere in the stadium and their team took early advantage of the energy the crowd gave them. Manuel Neuer saved a header from Davy Pröpper, before Santiago Arias pushed in the rebound to give Eindhoven the lead around the 15-minute mark. The refereeing...
read more

Next Entries »