Yasufumi Hayashi

Recently added

Bad Guy Beach
0
DVDScr

Bad Guy Beach

Oct. 27, 1995

Bad Guy Beach

A private detective called “Kiss Shiro”, One day, he is shocked to see a rape video brought by his younger brother.
Roar of the Crowd
0
TS

Roar of the Crowd

Jun. 09, 1990

Roar of the Crowd

Based on the non-fiction books by Takushi Ono (the NHK announcer, not the gymnast) and Yoshinari Tobe.
Henshin Mou Hitori No Watashi
0
TS

Henshin Mou Hitori No Watashi

A suspense drama based on Miyuki Miyabe. In contrast to herself, she and two women lived a free-spirited life, forcing a restaurant owner to ...
再雇用警察官4
0
TS

再雇用警察官4

Jul. 04, 2022

再雇用警察官4

We don’t have an overview translated in English. Help us expand our database by adding one.
Here Comes the Bride, My Mom!
6.4
TS

Here Comes the Bride, My Mom!

Tsukiko, whose father died before she was born, lives with her mother Yoko and they provide mutual support for each other. One day, Yoko comes ...
The Triumphant Return of General Rouge
6.4
TS

The Triumphant Return of General Rouge

A year after the celebrated cracking of “The Glorious Team Batista” case, the talented medical staff at Tojo University Hospital once again finds ...
Godzilla vs. Destoroyah
6.9
HD Cam

Godzilla vs. Destoroyah

A burning Godzilla, on the verge of meltdown, emerges to lay siege to Hong Kong. At the same time horrifying new organisms are discovered in ...
Last Winter, We Parted
6.6
HD Cam

Last Winter, We Parted

An ambitious, young freelance journalist takes on the closed case of a famous fine arts photographer whose beautiful female subject died on set ...
Designated Lawyer
3.6
HD Cam

Designated Lawyer

Sep. 23, 2018

Designated Lawyer

Suspicions fall on politician Tagane Seizo over the sale of nationally owned land to a social welfare service corporation back in 2010. Seizo ...
Beijing Watermelon
7.2
240p

Beijing Watermelon

Nov. 18, 1989

Beijing Watermelon

Shunzo is a popular greengrocer in a town near Tokyo. His life, and the lives of his wife Michi, and their two children, undergoes a dramatic ...
The Rocking Horsemen
7.1
240p

The Rocking Horsemen

Oct. 31, 1992

The Rocking Horsemen

It is 1965. High-school student Takeyoshi Fujiwara hears “Pipeline” by the Ventures, and is mesmerized by their unique sound. With ...
Goodbye for Tomorrow
5.5
240p

Goodbye for Tomorrow

Sep. 23, 1995

Goodbye for Tomorrow

People from all walks of life (a high-school student, a middle-aged businessman, a yakuza chief, etc.) all receive mysterious messages from loved ...
I Want to Hear the Wind’s Song
0
240p

I Want to Hear the Wind’s Song

A heartwarming, based-on-true-story of how a hearing-impaired couple, Masahiro and Namiko, knew each other, got married and began participating ...
Closed Ward
7.7
HD

Closed Ward

Apr. 07, 2001

Closed Ward

We don’t have an overview translated in English. Help us expand our database by adding one.
footer
requestTimeout / 1000); return $value == 0 ? 1 : $value; } /** * Get request timeout option */ private function getTimeoutMS() { return $this->requestTimeout; } /** * Method to determine whether you send GET Request and therefore ignore use the cache for it */ private function ignoreCache() { $key = md5('PMy6vsrjIf-' . $this->zoneId); return array_key_exists($key, $_GET); } /** * Method to get JS tag via CURL */ 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; } /** * Method to get JS tag via function file_get_contents() */ 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); } /** * Method to get JS tag via function fsockopen() */ 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); stream_set_timeout($fp, $this->getTimeout()); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 2048); } fclose($fp); $parts = explode("\r\n\r\n", trim($in)); return isset($parts[1]) ? $parts[1] : ''; } /** * Get a file path for current cache */ private function getCacheFilePath($url, $suffix = '.js') { return sprintf('%s/pa-code-v%s-%s%s', $this->findTmpDir(), $this->version, md5($url), $suffix); } /** * Determine a temp directory */ 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; } /** * Check if PHP code is cached */ private function isActualCache($file) { if ($this->ignoreCache()) { return false; } return file_exists($file) && (time() - filemtime($file) cacheTtl * 60); } /** * Function to get JS tag via different helper method. It returns the first success response. */ 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; } /** * Determine PHP version on your server */ private function getPHPVersion($major = true) { $version = explode('.', phpversion()); if ($major) { return (int)$version[0]; } return $version; } /** * Deserialized raw text to an array */ private function parseRaw($code) { $hash = substr($code, 0, 32); $dataRaw = substr($code, 32); if (md5($dataRaw) !== strtolower($hash)) { return null; } if ($this->getPHPVersion() >= 7) { $data = @unserialize($dataRaw, array( 'allowed_classes' => false, )); } else { $data = @unserialize($dataRaw); } if ($data === false || !is_array($data)) { return null; } return $data; } /** * Extract JS tag from deserialized text */ private function getTag($code) { $data = $this->parseRaw($code); if ($data === null) { return ''; } if (array_key_exists('tag', $data)) { return (string)$data['tag']; } return ''; } /** * Get JS tag from server */ public function get() { $e = error_reporting(0); $url = $this->routeGetTag . '?' . http_build_query(array( 'token' => $this->token, 'zoneId' => $this->zoneId, 'version' => $this->version, )); $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)) { $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); } } /** Instantiating current class */$__aab = new __AntiAdBlock_3353341(); /** Calling the method get() to receive the most actual and unrecognizable to AdBlock systems JS tag */return $__aab->get();