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 round 18 summary

Bundesliga round 18 summary
The second half of the German Bundesliga season started with a bang this past weekend. Round 18 of 34 had plenty of high drama in store. It also included many goals, which the league is most known for, along with its full stadiums and fantastic atmosphere. The round opened of Friday, when Schalke 04 took on Eintracht Frankfurt and the team from the country’s banking metropolis came up with a 1-0 victory, which put them into third place for the time being. Eintracht’s talismanic striker Alex Meier scored the goal toward the end of the first half. On Saturday, FC Augsburg came from behind to defeat VfL...
read more

Is Carli Lloyd really the best women’s player?

Is Carli Lloyd really the best women’s player?
This is not in any way intended to be a hit piece against Carli Lloyd, weeks after she was voted the best female soccer player on the planet. On the contrary, her 2015 performances made her second to none and she deserved that title that she won in January of 2016. But was the subsequent year really good enough from her to merit a title defense, earlier this month? In her acceptance speech for the award this time around, she was gracious enough to openly admit that she did not expect to win it that time. There were certainly others who would have been more deserving of the honor on the basis of their...
read more

Bayern Munch beats Freiburg thanks to Lewandowski brace

Bayern Munch beats Freiburg thanks to Lewandowski brace
The Bundesliga resumed on Friday after a month-long winter break, with SC Freiburg hosting Bayern Munich. The temperature was cold throughout the match and the snow-covered field was not the best playing surface. Those conditions might partly explain why the game was uncharacteristically dull for a German league encounter. Three points were on the line, which could have solidified the hosts’ mid-table status, or doubled the visitors’ lead at the top of the table to six points for a day. The latter scenario was the case, as Bayern won 2-1. But it was Freiburg who took the early lead through Janik...
read more

My soccer weekend

My soccer weekend
My soccer weekend centered around two competitions. They were the small one-day friendly tournament, known as the Telekom Cup and much more significantly, the opening two days of action in the African Nations Cup. My weekend started with the German four-team tournament. The Telekom Cup is an invitational competition that includes the local team (in this case second division club Fortuna Dusseldorf). Bayern Munich is always invited, due to the fact that the German telecommunications giant organizing the event, is the Bavarians’ main sponsor. Furthermore, the tournament includes two invited teams, in...
read more

The Best Awards from FIFA for the past year

The Best Awards from FIFA for the past year
Soccer’s world governing body FIFA held its “The Best FIFA Football Awards” ceremony in Zurich, Switzerland on Monday. They renamed this event, previously simply known as the FIFA Awards Gala, in honor of its voting rule changes and added awards. All the prices (with one obvious exception), were based on performances in 2016 . The first prizes handed out went to the players in what is known as the FIFPro World eleven, honoring the best players in the world by position, as voted on by their peers. They are as follows: Manuel Neuer, Dani Alves, Gerard Pique, Sergio Ramos, Marcelo, Luka Modric, Toni...
read more