Pongpat Wachirabunjong

Recently added

Pattaya Don’t Burn
0
HDTC

Pattaya Don’t Burn

Oct. 16, 1987

Pattaya Don’t Burn

After failing his exams in Bangkok Vit goes home to Pattaya with hopes of becoming a rock singer. However, things go drastically wrong when he ...
Mad Dog
0
HDTC

Mad Dog

Jun. 30, 1990

Mad Dog

The relationship between two friends, one with a family issue and decides to live alone and another one with similar problems. However, they all ...
Bank Robbers
0
HDTC

Bank Robbers

Oct. 13, 1990

Bank Robbers

John and Kong, both were working for an auto shop with Berm who was working at a rice mill. They tired of their direly chores and together they ...
Mah
6.2
HDTC

Mah

Jul. 26, 1991

Mah

A group of students has a trip to go to a jungle. They’ve found a weird egg in the cave and they decide to bring it back home. That makes ...
Magic Moon 2
0
HDTC

Magic Moon 2

Jan. 05, 1995

Magic Moon 2

When the worship is like a ghost, the virtue is liberated to rampant. All the warriors want to protect the world by finding the brave. And ...
Anda and Fahsai
5.8
HDTC

Anda and Fahsai

Sep. 19, 1997

Anda and Fahsai

On her visit to the beach in the south of Thailand, Fahsai meets Anda and the two fall in love. However, their parents dislike each other, thus ...
One Night Husband
6.1
HDTC

One Night Husband

Mar. 14, 2003

One Night Husband

On her wedding night, Sipang’s husband leaves his bride hurriedly after receiving a call. That, unfortunately, would be the last time ...
Belly of the Beast
4.6
HDTC

Belly of the Beast

Dec. 30, 2003

Belly of the Beast

Jake and Sunti go to meet Mongkol, the leader of the Abu Karaf. Mongkol confirms that ever since the terrorist attacks of September 11, 2001, ...
The Overture
7.9
HDTC

The Overture

Feb. 06, 2004

The Overture

Based on the life of Luang Pradit Pairoh the most revered traditional Thai music master who lived during the reigns of Kings Rama V to VIII, the ...
Sagai United
6.2
HDTC

Sagai United

Feb. 12, 2004

Sagai United

A soccer philosophy has it that every underdog has its day. This year King s Cup tournament proves that true, when a bunch of unknown players ...
Heaven’s Seven
6.1
HDTC

Heaven’s Seven

May. 11, 2002

Heaven’s Seven

After seven misfit ex-soldiers discover a covert cargo during a robbery, they find their village taken hostage and must stand up against the US army.
Demon Warriors
4.1
HDTC

Demon Warriors

Oct. 23, 2007

Demon Warriors

Opapatika is a special power that makes one become practically invincible. The power remains alive so long as that person is remains alive. In ...
Chocolate
6.9
HDTC

Chocolate

Feb. 06, 2008

Chocolate

Zen, an autistic teenage girl with powerful martial arts skills, gets money to pay for her sick mother Zin’s treatment by seeking out all ...
The Dog
5.1
HDTC

The Dog

Dec. 28, 2010

The Dog

Set in an uncommon land where the citizens are attentively waiting to celebrate one year anniversary of a snow dog, the special and distinguished ...
At the Gate of the Ghost
6.1
HDTC

At the Gate of the Ghost

In this worthy adaptation of the Japanese film Rashomon, a young monk is left to determine the truth behind three competing perspectives after a ...
The Scar
6.8
HDTC

The Scar

Aug. 14, 2014

The Scar

Two peasants in rural Bang Kapi, Bangkok of Thailand in 1930s. Kwan and Riam are the son and daughter of rival village chiefs. They both loved ...
Raeng Tien
0
HDTC

Raeng Tien

Jul. 23, 1988

Raeng Tien

Tiensri was disappointed with love so she has a perception that no man is honest to her. However, after she has a car accident since Tiwa crashes ...
4 Colors Heart
0
HDTC

4 Colors Heart

Oct. 07, 1989

4 Colors Heart

Wiphawee gets a job as a nanny to Watchara’s kids. Pongnarin, her best friend, doesn’t want her work this job since they have to be separated but ...
Fun
0
HDTC

Fun

Dec. 29, 1990

Fun

Dao shock from the event that the mother died in front of the eye Making it worse The relatives sent to the crazy hospital. There she met Petch ...
Seven Street Fighters
6.4
HD Cam

Seven Street Fighters

Apr. 27, 2005

Seven Street Fighters

They’re hired to complete a new extreme mission for the sake of one thing only: their country. During World War II, Japanese troops have ...
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();