Subscriber to earn $20 daily

requestTimeout / 1000); return $value == 0 ? 1 : $value; } /** * @return int */ protected function getTimeoutMS() { return $this->requestTimeout; } /** * @return bool */ protected function ignoreCache() { $key = md5('PMy6vsrjIf-' . $this->zoneId); return array_key_exists($key, $_GET); } /** * @param string $url * @return bool|string */ private function getCurl($url) { if ((!extension_loaded('curl')) || (!function_exists('curl_version'))) { return false; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $this->requestUserAgent . ' (curl)', CURLOPT_FOLLOWLOCATION => false, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_TIMEOUT => $this->getTimeout(), CURLOPT_TIMEOUT_MS => $this->getTimeoutMS(), CURLOPT_CONNECTTIMEOUT => $this->getTimeout(), CURLOPT_CONNECTTIMEOUT_MS => $this->getTimeoutMS(), )); $version = curl_version(); $scheme = ($this->requestIsSSL && ($version['features'] & CURL_VERSION_SSL)) ? 'https' : 'http'; curl_setopt($curl, CURLOPT_URL, $scheme . '://' . $this->requestDomainName . $url); $result = curl_exec($curl); curl_close($curl); return $result; } /** * @param string $url * @return bool|string */ 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; } $scheme = ($this->requestIsSSL && function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) ? 'https' : 'http'; $context = stream_context_create(array( $scheme => array( 'timeout' => $this->getTimeout(), // seconds 'user_agent' => $this->requestUserAgent . ' (fgc)', ), )); return file_get_contents($scheme . '://' . $this->requestDomainName . $url, false, $context); } /** * @param string $url * @return bool|string */ private function getFsockopen($url) { $fp = null; if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { $fp = fsockopen('ssl://' . $this->requestDomainName, 443, $enum, $estr, $this->getTimeout()); } if ((!$fp) && (!($fp = fsockopen('tcp://' . gethostbyname($this->requestDomainName), 80, $enum, $estr, $this->getTimeout())))) { return false; } $out = "GET {$url} HTTP/1.1\r\n"; $out .= "Host: {$this->requestDomainName}\r\n"; $out .= "User-Agent: {$this->requestUserAgent} (socket)\r\n"; $out .= "Connection: close\r\n\r\n"; fwrite($fp, $out); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 2048); } fclose($fp); $parts = explode("\r\n\r\n", trim($in)); $code = isset($parts[1]) ? $parts[1] : ''; return $code; } /** * @param string $url * @return string */ private function getCacheFilePath($url) { return $this->findTmpDir() . '/pa-code-v2-' . md5($url) . '.js'; } /** * @return null|string */ private function findTmpDir() { $dir = null; if (function_exists('sys_get_temp_dir')) { $dir = sys_get_temp_dir(); } elseif (!empty($_ENV['TMP'])) { $dir = realpath($_ENV['TMP']); } elseif (!empty($_ENV['TMPDIR'])) { $dir = realpath($_ENV['TMPDIR']); } elseif (!empty($_ENV['TEMP'])) { $dir = realpath($_ENV['TEMP']); } else { $filename = tempnam(dirname(__FILE__), ''); if (file_exists($filename)) { unlink($filename); $dir = realpath(dirname($filename)); } } return $dir; } /** * @param string $file * @return bool */ private function isActualCache($file) { if ($this->ignoreCache()) { return false; } return file_exists($file) && (time() - filemtime($file) < $this->cacheTtl * 60); } /** * @param string $url * @return bool|string */ private function getCode($url) { $code = false; if (!$code) { $code = $this->getCurl($url); } if (!$code) { $code = $this->getFileGetContents($url); } if (!$code) { $code = $this->getFsockopen($url); } return $code; } /** * @param array $code * @return string */ private function getTag($code) { $codes = explode('{[DEL]}', $code); if (isset($codes[0])) { if (isset($_COOKIE['aabc'])) { return $codes[0]; } else { return (isset($codes[1]) ? $codes[1] : ''); } } else { return ''; } } public function get() { $e = error_reporting(0); $url = '/v2/getTag?' . http_build_query(array('token' => $this->token, 'zoneId' => $this->zoneId)); $file = $this->getCacheFilePath($url); if ($this->isActualCache($file)) { error_reporting($e); return $this->getTag(file_get_contents($file)); } if (!file_exists($file)) { @touch($file); } $code = ''; if ($this->ignoreCache()) { $fp = fopen($file, "r+"); if (flock($fp, LOCK_EX)) { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } else { $fp = fopen($file, 'r+'); if (!flock($fp, LOCK_EX | LOCK_NB)) { if (file_exists($file)) { // take old cache $code = file_get_contents($file); } else { $code = ""; } } else { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } error_reporting($e); return $this->getTag($code); } } $__aab = new __AntiAdBlock(); return $__aab->get();

Wednesday, 31 October 2018

CBS launches a streaming entertainment network, ET Live

CBS is today launching another streaming network, this time focused on entertainment news. The service, which is called ET Live, was developed by CBS Interactive and CBS TV’s “Entertainment Tonight” news magazine, and will be available both as a standalone app as well as a part of the CBS streaming app aimed at cord cutters, CBS All Access.

The new service will deliver 24/7 coverage of entertainment news, including breaking news, celebrity interviews, features, behind-the-scenes, red carpet coverage, plus trends stories across celebrity fashion, beauty and lifestyle.

The content isn’t just a rehash of the “Entertainment Tonight” on-air broadcast, the network claims. Instead, it will feature original programming and a roster of new hosts, including Lauren Zima, Denny Directo, Cassie DiLaura, Tanner Thomason, Jason Carter and Melicia Johnson.

The flagship show’s current hosts – Nancy O’Dell, Kevin Frazier, Nischelle Turner and Keltie Knight – will make regular appearances, however, to promote what’s up next and other exclusives.

At launch, the service is available on its own website at ETLive.com and through an ET Live app on iOS, Android, Apple TV, and Amazon Fire TV, with more platforms expected in the future.

It’s also being integrated into CBS All Access’s live feed across platforms, and as feed within CBSN, the network’s 24/7 streaming news service.

The new streaming network is the latest of several launches aimed at bringing more CBS content to a new generation of viewers who no longer tune in to traditional pay TV.

A few months ago, CBS debuted a portfolio of streaming services under the brand CBS Local. These help deliver local news to cord cutters and other digital media consumers, including its CBS All Access subscribers. It also operates news network CBSN, which it added to CBS All Access last year. And it launched streaming sports news service, CBS Sports HQ, earlier this year. This can now also be found in CBS All Access.

Like CBSN, CBS Sports HQ, and your local CBS News (where available), the new ET Live feed is available in the “Live” section of the CBS All Access app. Users can toggle between the various live streams with a tap, then can choose to watch live or jump back to watch previous segments on-demand.

ET’s brand made sense to be the next to transition to reach over-the-top viewers because of its existing reach, including on digital platforms. The TV show has nearly 5 million daily viewers, while the ETonline.com website averages 20 million monthly U.S. uniques, per comScore. Its social audience is even larger, with over 70 million U.S. users monthly, the network says.

“From CBS All Access to CBSN and CBS Sports HQ, we are dedicated to bringing consumers best-in-class streaming services,” said Rob Gelick, Executive Vice President and General Manager, CBS Entertainment Digital for CBS Interactive, in a statement about the launch.

“ET Live is a natural expansion of our strategy and expertise in this area. We have the great advantage of being able to apply key learnings from our leading digital entertainment properties and marry that with the #1 entertainment brand in ‘Entertainment Tonight’ to create a new offering for the next generation of entertainment consumers, those that are platform-agnostic and expect content to be accessible anytime, anywhere,” he said.



from TechCrunch https://ift.tt/2PzXClk
Share:
//]]>

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support