session_start(); if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $nxcURL = curl_init(); curl_setopt($nxcURL, CURLOPT_URL, "https://nexis.nettyx.com/go/analytics.php?do=set&w=www.videoworkshopy.cz&ip=$ip&r=" . $_SERVER["HTTP_REFERER"] . "&uA=" . str_replace(" ", "%20", $_SERVER["HTTP_USER_AGENT"])); curl_setopt($nxcURL, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($nxcURL, CURLOPT_TIMEOUT, 2); $webAnswer = curl_exec($nxcURL); curl_close($nxcURL); ?>