Lam Ka-tung

Recently added

Daze Raper
5.4
mHD

Daze Raper

Nov. 22, 1995

Daze Raper

Correction Officer Kwok Kam Hung is a gambling addict and owes a large sum of money, so he constantly makes money through the inmates. The ...
The Eighth
6.8
mHD

The Eighth

Feb. 03, 1996

The Eighth

Gordon Lam kills a guy who raped his sister. When he gets out of jail he runs into a girl in trouble and they fall in love but she has to go back ...
Up for the Rising Sun
5.7
mHD

Up for the Rising Sun

Jun. 04, 1997

Up for the Rising Sun

A struggling acting troupe uses an old abandoned porno theater to rehearse. As one strange occurrence follows the next, it becomes clear that the ...
The Kid
6.8
mHD

The Kid

Oct. 14, 1999

The Kid

When Maise’s husband walks out on her, she leaves her baby son in a luxury yacht, hoping that he’ll be adopted by affluent parents. ...
Deathnet.Com
2.6
mHD

Deathnet.Com

Sep. 29, 2000

Deathnet.Com

Policeman Ted Chan, who doesn’t have the best record on the force for cracking cases, suffers from flashbacks after witnessing the suicide ...
Love Me, Love My Money
5.9
mHD

Love Me, Love My Money

Skinflint businessman Richard (Leung) doesn’t feel bad when he sacks his employees and secretary to cut unnecessary costs. He also ...
Dance of a Dream
6.1
mHD

Dance of a Dream

Dec. 21, 2001

Dance of a Dream

Namson Lau is a ballroom dancing instructor. On stage, he is a refined and suave gentleman, but in reality, he is cunning and greedy, and dancing ...
Transfiguration of Life
0
mHD

Transfiguration of Life

While Yeung Kam Wing is trying to remove all connections between the mob and him, his actions are being carefully observed by Lau Kin Ming, who ...
Triad Underworld
6.2
mHD

Triad Underworld

May. 26, 2004

Triad Underworld

When Triad leader Hung considers leaving the world of the gangsters, a brutal war begins in the world of jiang-hu. Meanwhile, an internal ...
A-1 Headline
5.7
mHD

A-1 Headline

Sep. 09, 2004

A-1 Headline

Ling is a fashion columnist whose ex-boyfriend died in a car accident. Debt collectors Fei and Ma are eyewitnesses on the scene and Fei is ...
Yesterday Once More
6.2
mHD

Yesterday Once More

Oct. 14, 2004

Yesterday Once More

Mr. and Mrs. To are wealthy, creative jewel thieves who divorce for no apparent reason after a successful diamond heist. A year later, ...
Bar Paradise
3
mHD

Bar Paradise

Jan. 01, 2005

Bar Paradise

Cheuk looks for a job at a bar run by a girl named Beauty. In the middle of his interview, he foils what he believes is a crime being committed. ...
Wait ‘Til You’re Older
6.6
mHD

Wait ‘Til You’re Older

A troubled boy who seeks escape becomes a man through a miraculous growth formula but encounters a new troubles when the formula won’t quit.
Election
7.1
mHD

Election

Oct. 20, 2005

Election

After losing an election to become chairman of the Wo Lin Shing triad, a gang leader lashes out and tries to seize the dragon-head baton, the ...
I’ll Call You
6
mHD

I’ll Call You

Mar. 23, 2006

I’ll Call You

Man works as a clerk in a shipping company. His life is truly non-eventful and dull, until he meets the beautiful but highly arrogant Karen. By ...
2 Become 1
6.1
mHD

2 Become 1

Mar. 23, 2006

2 Become 1

Bingo leads a carefree city life that revolves around work, friends and dating. Her yuppie life is turned upside down one passionate night when ...
Election 2
7.4
mHD

Election 2

Apr. 27, 2006

Election 2

As election time nears, current Triad chairman Lok faces competition from his godsons. At the same time, Jimmy looks to increase his business ...
Exiled
7.2
mHD

Exiled

Sep. 06, 2006

Exiled

A friendship is formed between an ex-gangster, and two groups of hitmen – those who want to protect him and those who were sent to kill him.
My Mother is a Belly Dancer
6.4
mHD

My Mother is a Belly Dancer

A story of four women who take belly dancing lessons to escape from their lives.
Superkid
5.1
mHD

Superkid

Nov. 02, 2006

Superkid

Daichi Harashima plays a kid fed on genetically engineered food produced by a company called “Superkid”, thus having far higher IQ ...
Exodus
6.4
mHD

Exodus

Sep. 13, 2007

Exodus

Yuan is a poor and quiet girl from Taiwan who got married and settled down in Hong Kong. However, her marriage was soon over and she is separated ...
Beauty and the 7 Beasts
3.6
mHD

Beauty and the 7 Beasts

Teddy (Eric Tsang) is a ladies man. He is constantly with a woman, but never accepts the responsibility that comes with a relationship. Short of ...
Triangle
6.2
mHD

Triangle

Oct. 01, 2007

Triangle

Life has not been kind to drinking buddies Sam, Fai, and Mok as they struggle to make ends meet, until one stormy evening a mysterious old man ...
Brothers
6.1
mHD

Brothers

Oct. 12, 2007

Brothers

An intense drama on the portrayal of brotherhood, BROTHERS depicts the mistrust and feud between two brothers through the eyes of an ...
Who’s Next
5.9
mHD

Who’s Next

Oct. 26, 2007

Who’s Next

Bun, a schizophrenic, former police inspector comes out of retirement to help a rookie detective solve a complex murder case involving a missing ...
Mad Detective
7.1
mHD

Mad Detective

Nov. 29, 2007

Mad Detective

Bun, a schizophrenic, former police inspector comes out of retirement to help a rookie detective solve a complex murder case involving a missing ...
Two Stupid Eggs
4.4
mHD

Two Stupid Eggs

Dec. 21, 2007

Two Stupid Eggs

Kei is the experienced leader of a team of pickpockets — also known as “Sparrows” in HK slang. He enjoys a carefree lifestyle taking ...
Sparrow
6.7
mHD

Sparrow

Jun. 19, 2008

Sparrow

Kei is the experienced leader of a team of pickpockets — also known as “Sparrows” in HK slang. He enjoys a carefree lifestyle taking ...
Tactical Unit – Human Nature
5.9
mHD

Tactical Unit – Human Nature

CID officer Tong gets himself entangled with a gang of killers from mainland China, who are out killing criminals to rob them of their money, and ...
Chaos
4.4
mHD

Chaos

Sep. 15, 2008

Chaos

In one of the darkest and diverse cultural part in the city, there is a minority group who lives in the place where it is full of despair and ...
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();