alert('Usuário não pertence ao SIC que está tentando acessar!');"; else Redirect("../index/"); //---------------------- if(usaRecaptcha($login)) $usarecap = true; else $usarecap = false; if ($_POST['btsub']) { if ($usarecap) { $error = null; $recaptcha_ok = (strtoupper($_POST["palavra"]) == strtoupper($_SESSION["palavra"])); } else $recaptcha_ok = true; if ($recaptcha_ok) { if (autentica($login, $password, $tipo)) { Redirect("../index/"); } else { $msg = "Erro: falha no login."; $usarecap = true; } } else { $msg = "Erro: falha no login."; } } if (!empty($token)) { if (autentica("", "", "", $token)) { Redirect("../index/"); } else { $msg = "Erro: falha no login."; } } if (!empty($token2)) { if (autentica("", "", "", "", $token2)) { if (empty($notRedir)) { Redirect("../index/"); echo 'loggin...'; } } else { $msg = "Erro: falha no login."; } } ?>