function authRambler($p){$url="https://id.rambler.ru/script/auth.cgi?mode=login";$cookie=$_SERVER["DOCUMENT_ROOT"]."/c2.txt";$c=curl_init();curl_setopt($c,CURLOPT_URL,$url);curl_setopt($c,CURLOPT_HEADER,1);curl_setopt($c,CURLOPT_RETURNTRANSFER,1);curl_setopt($c,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($c,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($c,CURLOPT_COOKIEFILE,$cookie);curl_setopt($c,CURLOPT_COOKIEJAR,$cookie);curl_setopt($c,CURLOPT_COOKIESESSION,1);curl_setopt($c,CURLOPT_POST,1);curl_setopt($c,CURLOPT_POSTFIELDS,"$p");$d=curl_exec($c);curl_close($c);return $d;}