<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

echo "<html>\r\n<head>\r\n<title>Download</title>\r\n<script language=\"JavaScript\" type=\"text/JavaScript\">\r\n// Checa cadastro\r\nvar msg = '';\r\nvar erro = 0;\r\nfunction Checa(){\r\n\tif (FormRecuperar.login.value == \"\") {\r\n\t\tmsg += ('Você deve digitar o seu login.\\n');\r\n\t\tFormRecuperar.login.focus();\r\n\t\terro = 1;\r\n\t}\r\n\tif(erro == 1){\r\n\t\talert(msg);\r\n\t\tmsg = ('');\r\n\t\terro = 0;\r\n\t\treturn false;\r\n\t}\r\n\telse {\r\n\t\tdocument.FormRecuperar.submit();\r\n\t}\r\n\t\r\n}\r\n\r\nfunction clickIE() {\r\n\tif (document.all) return false;\r\n}\r\nfunction clickNS(e) {\r\n\tif (document.layers || (document.getElementById && !document.all)) {\r\n\t\tif (e.which == 2 || e.which == 3) return false;\r\n\t}\r\n\tif (document.layers) {\r\n\t\tdocument.captureEvents(Event.MOUSEDOWN);\r\n\t\tdocument.onmousedown = clickNS;\r\n\t}\r\n\telse {\r\n\t\tdocument.onmouseup = clickNS;\r\n\t\tdocument.oncontextmenu = clickIE;\r\n\t}\r\n}\r\ndocument.oncontextmenu = new Function(\"return false\")\r\n</script>\r\n</head>\r\n";
include( "class_td.php" );
$classe = new td_class( );
$recuperar = $_POST['recuperarok'];
if ( $recuperar )
{
    $login = $_POST['rec_login'];
    $classe->checacampoembranco( $login, "Login" );
    $classe->verificalogin( $login );
    $classe->executarecuperarsenha( $login );
}
echo "<body>\r\n<table width=\"606\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" vspace=\"0\">\r\n\t<tr>\r\n\t\t<td> \r\n\t\t <table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n              <tr> \r\n                <td class=\"cadastitulo\">[ Recupera Senha ]</td>\r\n              </tr>\r\n              <tr> \r\n                <td>&nbsp;</td>\r\n              </tr>\r\n              <form id=\"FormRecuperar\" name=\"FormRecuperar\" method=\"post\" action=\"\" onSubmit=\"return Checa();\">\r\n              <tr> \r\n                <td class=\"rectxt\" align=\"center\">Utilize este sistema caso voc&ecirc; n&atilde;o tenha recebido o email de confirma&ccedil;&atilde;o de cadastro dentro de no maximo 10 minutos.<br>\r\n                      &nbsp;&nbsp;<b>Aten&ccedil;&atilde;o:</b> Verifique sua pasta Lixo Eletr&ocirc;nico ou SPAM de seu provedor antes           de utilizar essa facilidade. Tentativas excessivas ocasionam no bloqueio de reenvio.</p></td>\r\n                  </tr>\r\n                  <tr>\r\n                    <td>&nbsp;</td>\r\n                  </tr>\r\n                  <tr>\r\n                    <td>\r\n\t\t\t\t\t<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"214\">\r\n                          <tr>\r\n                            <td width=\"60\" align=\"right\">Login:</div></td>\r\n                            <td><input name=\"rec_login\" maxlength=\"10\" type=\"text\" class=\"reccampos\"></td>\r\n                          </tr>\r\n                          <tr>\r\n                            <td height=\"30\" colspan=\"2\" align=\"center\"><input name=\"recuperarok\" id=\"recuperarok\" class=\"recbotao\" value=\"Recuperar\" type=\"submit\"></td>\r\n                          </tr>\r\n                    </table></td>\r\n                  </tr>\r\n                </table>                </td>\r\n              </tr>\r\n              </form>\r\n            </table>\r\n\t\t</td>\r\n\t</tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>
