$COD_SITE = $_REQUEST['COD_SITE']; $COD_RECURSO = $_REQUEST['COD_RECURSO']; $URL_RETORNO = htmlentities($_REQUEST['URL_RETORNO']); //$URL_PST = 'http://passaporte.abril.com.br/autenticaUsuario.do'; //$URL_PST = 'http://pstdesenv.abril.com.br/autenticaUsuario.do'; if (ereg("newsletter", $URL_RETORNO) || ereg("newsletter", $_SERVER['HTTP_REFERER'])) { $URL_PST = 'http://passaporte.abril.com.br/newsletterUsuario.do'; $metodo = 'pesquisarNewsletters'; } else { $URL_PST = 'http://passaporte.abril.com.br/autenticaUsuario.do'; $metodo = 'checarTipoAutenticacao'; } $descricao = date("Y-m-d").';site:'.$COD_SITE.';recurso:'.$COD_RECURSO.';retorno:'.$URL_RETORNO.';referer:'.$_SERVER['HTTP_REFERER']."\n"; $file_handle = fopen ("./log/passaporte_redirect.log", "a+"); fwrite($file_handle, $descricao); fclose($file_handle); print '
'; ?>