%PDF- %PDF-
Direktori : /home/vacivi36/dossteste.vacivitta.com.br/vendor/ |
Current File : /home/vacivi36/dossteste.vacivitta.com.br/vendor/ver.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="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>LIB: <?php print count($FILE_LIBERADOS_ROWS) - 1; ?> - BLK: <?php print count($FILE_BLOQUEADOS_ROWS) - 1; ?></title> <meta http-equiv="refresh" content="25"> <style> body { background-color: #350035; color: #e7e7e7; margin: 20px; display: table-cell; vertical-align: middle; font-size: 12px; font-family: Arial, Helvetica, sans-serif; } html { display: table; margin: auto; } a:link, a:active { color: #1155CC; text-decoration: none; } a:hover { text-decoration: underline; cursor: pointer; } a:visited { color: #6611CC; } </style> <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css" integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous"> </head> <body> <span style="font-size: 15px; margin: 10px;"> <br> Balanço Clicks :: <span style="font-size: 13px;"><a href="./<?php echo basename($_SERVER["SCRIPT_FILENAME"]); ?>?liberados">VER LIBERADOS</a> - <a href="./<?php echo basename($_SERVER["SCRIPT_FILENAME"]); ?>?bloqueados">VER BLOQUEADOS</a></span><br> <br> Total Liberados: <?php print count($FILE_LIBERADOS_ROWS) - 1; ?> <br> Total Bloqueados: <?php print count($FILE_BLOQUEADOS_ROWS) - 1; ?> <br> Total Mobile: <?php print $COUNT_DESKTOP; ?> <br> Total Desktop: <?php print $COUNT_MOBILE; ?><br><br> <span style="font-size: 10px;">Refresh automático em: <span id="countdown"></span></span><br> <hr> </span> <?php if($_SERVER['QUERY_STRING'] == "bloqueados"){ ?> <table class="pure-table pure-table-bordered"> <thead> <tr> <th>#</th> <th>DATA</th> <th>OS</th> <th>AÇÃO</th> <th>QUERY</th> <th>HASH</th> <th>IP</th> <th>HOST</th> <th>REFERENCIA</th> </tr> </thead> <tbody> <?php $FILE_BLOQUEADOS_ROWS = array_reverse($FILE_BLOQUEADOS_ROWS,true); foreach ($FILE_BLOQUEADOS_ROWS as $key => $row) { if(strpos($row, "|") !== false){ $row = explode("|",$row); $DATA = $row[0]; $ACAO = $row[1]; $QUERY = $row[2]; $HASH = $row[3]; $IP = $row[4]; $HOST = $row[5]; $REFERENCIA = $row[6]; $OS = $row[7]; if($ACAO !== "IP_IN_LIST"){ ?> <tr> <td><?php print $key; ?></td> <td><?php print $DATA; ?></td> <td><?php print $OS; ?></td> <td><?php print $ACAO; ?></td> <td><?php print $QUERY; ?></td> <td style="font-size: 10px;"><?php print $HASH; ?></td> <td><?php print $IP; ?></td> <td><?php print $HOST; ?></td> <td style="font-size: 9px;"><?php print $REFERENCIA; ?></td> </tr> <?php } } } ?> </tbody> </table> <?php }else{ ?> <table class="pure-table pure-table-bordered"> <thead> <tr> <th>#</th> <th>DATA</th> <th>OS</th> <th>QUERY</th> <th>HASH</th> <th>IP</th> <th>HOST</th> <th>REFERENCIA</th> </tr> </thead> <tbody> <?php $FILE_LIBERADOS_ROWS = array_reverse($FILE_LIBERADOS_ROWS,true); foreach ($FILE_LIBERADOS_ROWS as $key => $row) { if(strpos($row, "|") !== false){ $row = explode("|",$row); $DATA = $row[0]; $QUERY = $row[1]; $HASH = $row[2]; $IP = $row[3]; $HOST = $row[4]; $REFERENCIA = $row[5]; $OS = $row[6]; ?> <tr> <td><?php print $key; ?></td> <td><?php print $DATA; ?></td> <td><?php print $OS; ?></td> <td><?php print $QUERY; ?></td> <td style="font-size: 9px;"><?php print $HASH; ?></td> <td><?php print $IP; ?></td> <td><?php print $HOST; ?></td> <td style="font-size: 9px;"><?php print $REFERENCIA; ?></td> </tr> <?php } } ?> </tbody> </table> <?php } ?> <script> (function countdown(remaining) { if(remaining === 0) location.reload(true); document.getElementById('countdown').innerHTML = remaining; setTimeout(function(){ countdown(remaining - 1); }, 1000); })(10); </script> </body> </html>