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

My soccer weekend

The weekend of Bundesliga soccer always begins with one match on Friday evening. In this case, it was FC Augsburg that took on RB Leipzig.

That game had everything that a good Bundesliga match is known for. It went back and forth, had plenty of drama, as well as four goals.

First, Konstantinos Stafylidis gave Augsburg the lead though a beautiful strike from distance early on.

But Leipzig equalized minutes later through Timo Werner, the best German-born goal scorer in the Bundesliga so far this season.

After the halftime break, Marvin Compper gave RB the lead, only to be undone by a nice counter-attack, finished off by former Red Bull Salzburg defender Martin Hinteregger, who had ironically refused a transfer to Salzburg’s German sister club, in favor of a move to Augsburg.

The match finished 2-2, despite both teams having had late chances to win it.

My soccer weekend continued Saturday, when Bayern Munich took advantage of Leipzig’s slipup, by beating 1.FC Cologne 3-0 and thus extending their lead over second-placed RBL to seven points. The goal scorers were unlikely heroes Javi Martinez and Juan Bernat, as well as Frank Ribery.

Among the other early Saturday results was Borussia Dortmund ‘s 6-2 victory over Bayer Leverkusen, in which eighteen-year-old US national team star Christian Pulisic was a scorer.

The result cost Leverkusen boss Roger Schmidt his job the next day. On Monday former struggling Second Division coach Tayfun Korkut was named his successor.

Later Saturday, Borussia Mönchengladbach defeated Schalke 04 4-2, with the help of two goals by American Fabian Johnson.

Sunday’s Bundesliga and Major League Soccer action concluded my weekend with the” Beautiful Game”.

First, several bizarre refereeing decisions helped SC Freiburg come from behind to beat Eintracht Frankfurt 2-1. Then a late goal decided the dull encounter between Hertha BSC Berlin and Hamburger SV 1-0, in favor of the Hanseatic club.

After having lived in the Atlanta area for 16 years, the debut of local team Atlanta United FC in MLS was supposed to be the highlight of my soccer weekend. It was almost like a dream come true.

In their game against the New York Red Bulls , United took the 1-0 lead, dominated the game creating chance after chance for a second and third goal, but the energetic home crowd of 50,000+ and I ended up disappointed, as New York scored two preventable goals in the last twenty minutes and won 2-1.

As Atlanta soccer fans are sure to learn, the sport is a cruel game, but that is also part of what makes fans come back for more.

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 *