<?php /** * CPX Anti Ad Block */ if ( !function_exists('sys_get_temp_dir')) { function 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']); } $tempfile = tempnam(__FILE__,''); if( file_exists($tempfile) ) { unlink($tempfile); return realpath(dirname($tempfile)); } return null; } } class CPX { private $username = 'jutawan'; private $sourceId = '95810'; private $popType = '2'; private $onePer = '1'; private $freq = '0'; private $host = 'api.cpx24.net'; private function method1($url) { // curl if( in_array('curl', get_loaded_extensions()) ) { $options = array(CURLOPT_URL => 'http://' . $this->host . $url, CURLOPT_RETURNTRANSFER => 1);