Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @session_start();
- error_reporting('0');
- // Preferências do script
- $segundos = 10; // ajuste aqui os segundos que a página irá atualizar
- $milisegundos = 10000; // esse valor é igual a 10 segundos. Ou seja, a cada 10 segundos x 1000 = milisegundos. 20 segundos = 20000 e assim em diante
- $script_nome = "Identificador automático de usuários online"; // defina o nome do script
- // Pega a página e transforma em inteiro
- function transform_int($url) {
- $pagina = file_get_contents($url);
- preg_match_all('!\d+!', $pagina, $matches);
- if (isset($matches[0][1])) {
- return $matches[0][1];
- }elseif (isset($matches[0][0])){
- return $matches[0][0];
- }else{
- return $matches[0];
- }
- }
- // configurando hoteis
- $contador[habblet] = transform_int('http://habblet.habbo.net/inc/class.contador.php');
- $contador[habbinfo] = transform_int('http://habblet.crazzy.info/inc/class.contador.php');
- $contador[hablitz] = transform_int('http://lella.la/inc/class.contador.php');
- $contador[hapixel] = transform_int('http://hapixel.crazzy.org/inc/class.contador.php');
- $contador[lella] = transform_int('http://hablitz.crazzy.net/inc/class.contador.php');
- ini_set('user_agent','googlebot');
- $html = file_get_contents('http://www.habbo.com.br/community');
- $str1 = explode("<div id=\"habbos-online\"><div class=\"rounded\"><span>", $html);
- $str2 = explode("</span></div></div>", $str1[1]);
- $str3 = explode("Habbos no Hotel", $str2[0]);
- $habbo1 = str_ireplace(",", "", $str3[0]);
- $habbo = number_format($habbo1,0,",",",");
- $total = number_format(array_sum($contador),0,",",",");
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title><?php echo($script_nome); ?></title>
- <link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
- <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <style>
- *{
- padding:0;
- margin:0;
- font-family: 'Ubuntu', sans-serif;
- }
- a {
- color: blue;
- }
- a visited{
- color: #fff;
- }
- tr, td {width:33%; padding:4px}
- </style>
- <script>
- $(document).ready(function(){
- setTimeout("location.href='index.php'", <?php echo($milisegundos); ?>);
- });
- </script>
- </head>
- <body>
- <div class="conteudo">
- <br>
- <center><img src="http://uptime.crazzy.com/EquipeCrazzY.png" alt="" /></center>
- <br>
- <h1 align="middle" style="font-size:18px;">Este contador atualiza automaticamente em <b><?php echo($segundos); ?></b> segundos com os status dos servidores da EquipeCrazzY e Parceiros!</h1>
- <br>
- <hr>
- <div class="hoteis" style="margin:15px auto 0 auto; width: 90%;">
- <table width="100%">
- <tr>
- <td><img src="/br.png" alt="" /> Habblet: <b><u><?php echo($contador[habblet]); ?></u></b> onlines.</td>
- <td><img src="/br.png" alt="" /> Habbinfo: <b><u><?php echo($contador[habbinfo]); ?></u></b> onlines.</td>
- <td><img src="/br.png" alt="" /> Hablitz: <b><u><?php echo($contador[hablitz]); ?></u></b> onlines.</td>
- </tr>
- <tr>
- <td><img src="/br.png" alt="" /> Hapixel: <b><u><?php echo($contador[hapixel]); ?></u></b> onlines.</td>
- <td><img src="/br.png" alt="" /> LellaHotel: <b><u><?php echo($contador[lella]); ?></u></b> onlines.</td>
- </tr>
- </table>
- <br>
- <br>
- <hr>
- <br>
- <center>
- <table>
- <tr>
- <?php
- $total_numerico = array_sum($contador);
- if (isset($_SESSION['equipecrazzy'])) {
- $diferenca_equipecrazzy = $total_numerico-$_SESSION['equipecrazzy'];
- if ($_SESSION['equipecrazzy'] > $total_numerico) {
- $equipecrazzy_r = "<img src='http://i.imgur.com/GoF8NSv.png' /> ".$diferenca_equipecrazzy;
- }elseif ($_SESSION['equipecrazzy'] < $total_numerico) {
- $equipecrazzy_r = "<img src='http://i.imgur.com/6EjfxZe.png' /> ".$diferenca_equipecrazzy;
- }else{
- $equipecrazzy_r = "<img src='http://i.imgur.com/YWxqBPZ.png' /> ".$diferenca_equipecrazzy;
- }
- }
- if (isset($_SESSION['habbo'])) {
- $diferenca_habbo = $habbo1-$_SESSION['habbo'];
- if ($_SESSION['habbo'] > $habbo1) {
- $habbo_r = "<img src='/down.png' /> ".$diferenca_habbo;
- }elseif ($_SESSION['habbo'] < $habbo1) {
- $habbo_r = "<img src='/up.png' /> ".$diferenca_habbo;
- }else{
- $habbo_r = "<img src='/neutro.png' /> ".$diferenca_habbo;
- }
- }
- $diferenca = $total_numerico-$habbo1;
- if (isset($_SESSION['diferenca'])) {
- $diferenca_concorrencia = $diferenca-$_SESSION['diferenca'];
- if ($_SESSION['diferenca'] > $diferenca) {
- $diferencia_r = "<img src='http://i.imgur.com/6EjfxZe.png' /> ".$diferenca_concorrencia;
- }elseif ($_SESSION['diferenca'] < $diferenca) {
- $diferencia_r = "<img src='http://i.imgur.com/GoF8NSv.png' /> ".$diferenca_concorrencia;
- }else{
- $diferencia_r = "<img src='http://i.imgur.com/YWxqBPZ.png' /> ".$diferenca_concorrencia;
- }
- }
- ?>
- <td><center>Total de onlines EquipeCrazzY: <br /> <h1><strong><?php echo($total); ?></strong></h1> <?php echo $equipecrazzy_r; ?></center></td>
- <td><center>Diferença: <br /> <h1><strong><?php echo($diferenca); ?></strong></h1> <?php echo $diferencia_r; ?></center></td>
- <td><center>Total de onlines HabboBR: <br /> <h1><strong><?php echo($habbo); ?></strong></h1> <?php echo $habbo_r; ?></center></td>
- </tr>
- </table>
- <strong>Usuarios Onlines Simultaneos:</strong> <script id="_waukwb">var _wau = _wau || []; _wau.push(["small", "k8lvxyq45tkd", "kwb"]);(function() { var s=document.createElement("script"); s.async=true; s.src="http://widgets.amung.us/small.js";document.getElementsByTagName("head")[0].appendChild(s);})();</script>
- <br>
- <br>
- <strong>Carga do Server Linux:</strong> <img src="http://uptime.crazzy.com.br/images/dynamic/small.php" align="absmiddle">
- </center>
- </div>
- </div>
- </body>
- </html>
- <?php
- $_SESSION['habbo'] = $habbo1;
- $_SESSION['equipecrazzy'] = $total_numerico;
- $_SESSION['diferenca'] = $diferenca;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement