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

(Jan. 28, 2017 – Source: Maja Hitij/Bongarts via zimbio.com)

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 Wolfsburg 2-1 and thus move past them in the table.

Meanwhile, FC Ingolstadt beat Hamburger SV 3-1 in a relegation six-pointer, that many had predicted to end scoreless beforehand.

Bottom club Darmstadt 98 was hammered 6-1 at home, by 1.FC Cologne, a result that boosted the visitor’s’ European dreams.

League leaders Bayern Munich defeated Werder Bremen 2-1, in a match that the Bavarians seemingly had under control, but almost dropped points in the end.

Bayern’s only serious current title challengers RB Leipzig came from behind to beat ten-men TSG Hoffenheim 2-1. The latter team had been undefeated until then. The controversial club from Saxony managed to stay within touching distance of top spot with the win.

Their coach Ralph Hasenhüttl was quoted as saying, that they had finally avoided relegation (despite the fact that they are already 27 points away from the bottom-three).

The lone Saturday evening match was between the two struggling giants Bayer Leverkusen and Borussia Mönchengladbach. They finished third and fourth the last two seasons and are quite far below that this time. Nonetheless, they put on quite a show in the match.

Leverkusen went 2-0 up before halftime. (Mexican star Chicharito Hernandez ended a long goal drought by scoring that second goal.) In the second half, Gladbach came roaring back to win 3-2. According to the FS2 commentators, that team had only scored three goals away from home in the entire first half of the Bundesliga season!

Round 18 came to an end on Sunday, as two teams within reach of third place (Hertha BSC Berlin and Borussia Dortmund) failed to win their games, thus leaving Frankfurt there for the week. Hertha lost 2-1 at SC Freiburg, while Dortmund’s early goal vs. Mainz was cancelled out by a late one from the latter team, for the 1-1 final score.

The second half of the Bundesliga season got off to a promising start. Let’s hope for more of that in the coming weeks and months!

Denis Knezovic is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com

Leave a Reply

Your email address will not be published. Required fields are marked *