ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/farolpborg/public_html/cms/ |
Upload File : |
<?
$Pagina = "Esqueceu a senha";
include("_includes/cabecalho.php");
$tabela = "usuarios";
if(isset($_POST['enviar'])){
$email = $_POST['email'];
$email_datahora = date('Y-m-d H:i:s');
$email_ip = getenv('REMOTE_ADDR');
$email_navegador = getenv('HTTP_USER_AGENT');
$email_assunto = "Resete de senha do CMS $Titulo";
$email_remetente = $rescon->emailnao;
$email_destinatario = $email_remetente;
$email_reply = $email_destinatario;
$email_conteudo = '
<!doctype html>
<html class="no-js" lang="pt-br" style="padding: 0; margin: 0; border: none; outline: none; border-collapse: separate; border-spacing: 0;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>'.$Titulo.'</title>
</head>
<body style="width: 100%; height: 100%; background-color: #eee; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: lighter; color: #3b4354; padding: 10px 20px; box-sizing: border-box;">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="margin:35px 0;">
<thead>
<tr>
<td valign="top">
<a href="'.$Url.'" title="'.$Titulo.'" target="_blank">
<img src="'.$ImagensCms.'/logo.png" alt="'.$Titulo.'">
</a>
</td>
</tr>
</thead>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="max-width: 607px; background-color: #fff; overflow: hidden; border-radius: 3px;">
<tbody>
<!-- personalizavel -->
<tr>
<td valign="top" style="padding: 66px 70px 62px 70px;">
<h3 style="font-family: Arial, Helvetica, sans-serif; font-weight: lighter; font-size: 25px; margin-bottom: 23px;">'.saudacao().'</h3>
<p style="line-height: 27px; text-align: justify; margin-bottom: 1px;">Você recebeu uma mensagem do suporte através do cms em <strong>'.date('d/m/Y').' às '.date('H:i:s').'</strong> do ip <strong>'.$email_ip.'</strong> pelo navegador <strong>'.$email_navegador.'</strong>.</p>
</td>
</tr>
<tr>
<td><div style="height: 1px; background-color: #eee;"></div></td>
</tr>
<tr>
<td valign="top" style="padding: 66px 70px 62px 70px;">
<p style="line-height: 27px; text-align: justify; margin-bottom: 1px;">
Sua senha foi redefinida com sucesso!<br><br>
Sua nova senha é: <u><strong>'.$nova_senha.'</strong></u>, agora é só clicar no link abaixo para acessar e digitar sua nova senha.<br>
<a href="'.$Url.'/cms"><u>Clique aqui para acessar</u></a>
</p>
</td>
</tr>
<!-- padrao -->
<tr>
<td style="background-color: #757576; color: #ccc; font-size: 15px; padding: 67px 70px;"><strong>IMPORTANTE:</strong> Se o seu provedor possui sistema anti-spam, registre agora mesmo o domínio (@<span style="color: #ccc;">'.str_replace("www.", "",$_SERVER[HTTP_HOST]).'</span>) para não deixar de receber nossos informativos.</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="max-width: 607px; text-align: center; padding: 33px 35px 23px 35px; font-size: 13px;">
<thead>
<tr>
<td valign="top">
Está é uma mensagem enviada através do CMS. Ela e qualquer anexo existente são confidenciais para o destinatário descrito. Se você não é o destinatário, é ilegal copiar, editar, transmitir, divulgar ou usar qualquer parte desta mensagem ou de seus arquivos anexos. O conteúdo desta mensagem pode não refletir a opinião do respectivo emitente, hava vista ser possível sua alteração pelo próprio destinatário e terceiros. E ainda, não poderá ser respondida ao remetente, pois trata-se de um caminho inválido para contato.
</td>
</tr>
</thead>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="font-size: 14px; text-align: center; line-height: 29px; margin-bottom: 23px; font-size: 13px;">
<thead>
<tr>
<td valign="top">
'.$Copyright.'. <a href="'.$Url.'" title="Cancelar recebimento" target="_blank" style="color: #ccc;">Cancelar recebimento</a>
</td>
</tr>
</thead>
</table>
</center>
</body>
</html>
';
$email_headers = implode("\n", array("From: $email_remetente", "Reply-To: $email_reply", "Subject: $email_assunto", "Return-Path: $email_remetente", "MIME-Version: 1.0", "X-Priority: 3", "Content-Type: text/html; charset=UTF-8"));
if(!empty($email)){
$email = anti_injection($conecta, $email);
$sqlesq = mysqli_query($conecta, "SELECT * FROM $tabela WHERE email='$email'");
$resesq = mysqli_fetch_object($sqlesq);
$nova_senha = md5(gerar_senha());
mysqli_query($conecta, "UPDATE $tabela SET senha='$nova_senha' WHERE id='$resesq->id'");
if(mysqli_num_rows($sqllog) == 1){
mail($email_destinatario, $email_assunto, $email_conteudo, $email_headers, '-f'.$email_reply);
$sucesso_esqueceu = true;
$atividade = $atividade_esqueceu_entrar;
echo '<script type="text/javascript">document.location="./";</script>';
} else {
$erro = true;
$atividade = $atividade_esqueceu_erro;
}
include("_ui/registros.php");
} else {
$vazio_login = true;
}
}
include("_ui/alerts.php");
?>
<div class="login">
<form method="post" action="" class="frm">
<div class="boxlog">
<h1 title="Resetar senha"><span>Resetar senha</span></h1>
<div>
<label for="email">E-mail</label>
<div class="clearfix">
<input type="text" name="email" id="email">
<small>Ex.: name@example.com</small>
</div>
</div>
<div>
<div class="clearfix">
<input type="submit" name="enviar" value="Enviar"> <a href="<?=$UrlCms;?>/login">Voltar</a>
</div>
</div>
<div class="carregando">
<div class="showbox">
<div class="loader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/>
</svg>
</div>
</div>
</div>
</div>
</form>
</div>
<?
include("_includes/rodape.php");
?>