%PDF- %PDF-
Direktori : /home/vacivi36/dossteste.vacivitta.com.br/vendor/ |
Current File : /home/vacivi36/dossteste.vacivitta.com.br/vendor/export_emails.php |
<?php // Define a senha correta $senha_correta = "mixter12"; // Se a senha foi enviada via POST, verifica if ($_SERVER['REQUEST_METHOD'] === 'POST') { $senha_digitada = $_POST['senha'] ?? ''; if ($senha_digitada === $senha_correta) { // Se a senha estiver correta, baixa o arquivo header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename="emails_liberados.txt"'); $liberados = file_exists("LIBERADOS.txt") ? file_get_contents("LIBERADOS.txt") : ''; preg_match_all('/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/', $liberados, $matches); $emails = array_unique($matches[0]); echo implode("\n", $emails); exit; } else { $erro = "Senha incorreta!"; } } ?> <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <title>Exportar Emails</title> <style> body { background-color: #0F0F1C; color: #EDEDED; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; } form { background-color: #13132B; padding: 30px; border-radius: 8px; box-shadow: 0 0 10px #00FFC680; } input[type="password"] { padding: 8px; width: 100%; margin-bottom: 15px; border: none; border-radius: 5px; } input[type="submit"] { background-color: #00FFC6; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; } .erro { color: #FF6B6B; margin-bottom: 10px; } </style> </head> <body> <form method="POST"> <h3>Digite a senha para exportar os e-mails</h3> <?php if (!empty($erro)) echo "<div class='erro'>$erro</div>"; ?> <input type="password" name="senha" placeholder="Senha..." required> <input type="submit" value="Exportar"> </form> </body> </html>