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();
Currently Browsing: UEFA Champions League

TSG Hoffenheim lose 2-1 at home to Liverpool, but still have a glimmer of CL hope

TSG Hoffenheim lose 2-1 at home to Liverpool, but still have a glimmer of CL hope
The first leg of the UEFA Champions League qualifying playoff between TSG Hoffenheim and Liverpool FC took place at the home stadium of the German team on Tuesday evening. It was clearly visible that both of last season’s fourth- placed finishers of the Bundesliga and the English Premier League respectively, were sides that like to play attractive, offensive soccer. The game showed that in terms of level of play, there was not much to choose between the mighty Liverpool, with a history full of domestic and European trophies, and the lowly TSG Hoffenheim, a village team and continental novices, with...
read more

My soccer thoughts

My soccer thoughts
Here are just a few of my thoughts regarding issues that recently came up in the soccer world. Neymar: The biggest (and saddest) soccer story of the week was Neymar’s incredible transfer from Barcelona to Paris SG For the unbelievable sum of 222 million Euros. I am not sure what is more mind-numbing, the fact that Barca would ask for a transfer fee of 222 million Euros for one player, no matter how good, or the fact that PSG was willing and able to pay that ungodly sum. I never wanted to bring politics or morality into this blog and I have long come to terms with the fact that soccer is a business....
read more

Hasan Salihamidžić to become Bayern Munich sporting director

Hasan Salihamidžić to become Bayern Munich sporting director
Former longtime Bayern Munich player Hasan Salihamidžić will become the club’s new sporting director, as has been announced at a short-notice press conference, broadcast via fcb.de on Monday. The surprising news comes amid a one-year period full of speculation. During this time, the club has held the position vacant, since the unexpected resignation of Matthias Sammer, who previously held the post. The discussion in the media centered around whether Sammer’s replacement might be Max Eberl (current sporting director at Borussia Mönchengladbach with a past at Bayern), or whether it may be Munich’s...
read more

Bayern Munich shocks soccer world by signing James Rodríguez on loan

Bayern Munich shocks soccer world by signing James Rodríguez on loan
Bayern Munich has secured what is sure to be the deal of this Bundesliga off-season on Tuesday. They did so with the loan agreement for James Rodríguez of back-to-back UEFA Champions League winners Real Madrid. Rodríguez is set to sign onto a two-year loan deal, after he completes his medical. The Bavarian giants will then have the option to sign the offensive allrounder on a permanent basis. The Columbian superstar first showed his skills at the top level during the 2014 World Cup in Brazil, where he was the top scorer and led his country to an impressive quarterfinal finish. After the tournament,...
read more

Real Madrid remain kings of European soccer (yawn!)

Real Madrid remain kings of European soccer (yawn!)
Real Madrid took on Juventus Turin in Saturday’s UEFA Champions League final in Cardiff, Wales. The team from the Spanish capital made the occasion a historic one, as they became the first side to successfully defend their Champions League crown from the season before. But early on, they faced serious resistance from the Italian record champions, who created chances, without opening the scoring. The first shot on goal for Madrid went in at the other end. Cristiano Ronaldo was yet again the scorer, but a slight deflection by Juve defender Leonardo Bonucci made it impossible for his keeper, Gianluigi...
read more

« Previous Entries Next Entries »