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: German Cup

Coach Jupp Heynckes to come out of retirement to take over Bayern Munich for the season

Coach Jupp Heynckes to come out of retirement to take over Bayern Munich for the season
Bayern Munich confirmed on Friday, what many rumors over the last few days hinted toward. The 72-year-old Jupp Heynckes will coach the crisis-ridden Bavarian giants until the end of the season. It will be his fourth time coaching the German record champions and the second time after 2009, that he will be dragged out of his retirement to do the job. He is the most successful coach that Bayern has ever had in its history full of trophies and glory. Jupp Heynckes was the architect behind the team’s 2013 treble success, which is the combination of winning the Bundesliga, the UEFA Champions League and the...
read more

Bayern Munich fires coach Carlo Ancelotti

Bayern Munich fires coach Carlo Ancelotti
On Thursday afternoon, Bayern Munich made public its decision to fire coach Carlo Ancelotti. According to the club’s official statement, an internal analysis of Wednesday’s 3-0 defeat to Paris Saint Germain and the team’s general situation so far this season, showed that the club leadership had to act. CEO Karl-Heinz Rummenigge and sporting director Hasan Salihamidžić explained this to Ancelotti “in an open and serious conversation, in which we let him know of our decision”, said Rummenigge. He thanked Ancelotti for their work together and showed his regret for the recent developments. He commented...
read more

German Cup first round review

German Cup first round review
The four days from last Friday to this Monday marked the official beginning of the German soccer season, with the first round of the 75th German Cup. The cup includes 64 teams. Among them are the 36 clubs that played in either the first or the second Bundesliga last season, as well as the top four sides of the third division of that previous term. The remaining 24 spots go to amateur teams that have either won their state or regional cup tournaments, or they fulfill some other criteria to qualify. In the draw for the first round of the German Cup, the better 32 teams are separated from the remaining...
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

« Previous Entries