Example #1
0
            $extras = '
<tr>
<td colspan="2"><div style="float:right;">' . boton('Expulsar', 'http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/control/expulsiones/expulsar/' . $r['nick'], false, 'red') . '</div>(' . $r['ID'] . ', <span title="' . $r['avatar_localdir'] . '" style="font-size:12px;">' . $r['email'] . '</span>, ' . num($r['visitas']) . ' v, ' . num($r['paginas']) . ' pv,  <a href="http://www.geoiptool.com/es/?IP=' . ($r['IP'] + rand(-30, 30)) . '">' . ocultar_IP($r['host'], 'host') . '</a>)<br /><span style="font-size:9px;color:#666;">' . $r['nav'] . '</span></td></tr>
<tr><td colspan="3" align="right">

<form action="http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/accion.php?a=SC&b=nota&ID=' . $r['ID'] . '" method="post">
Anotaci&oacute;n de SC: <input type="text" name="nota_SC" size="35" maxlength="255" value="' . $r['nota_SC'] . '" />
' . boton('OK', 'submit', false, 'pill small') . '
</form>

</td>

<td valign="top" align="right"><div style="font-size:12px;width:180px;max-height:100px;overflow:auto;">';
            foreach (explode('|', $r['hosts']) as $el_host) {
                if ($el_host != '') {
                    $extras .= ocultar_IP($el_host, 'host') . '<br />';
                }
            }
            $extras .= '</div></td></tr>';
        } else {
            $extras = '';
        }
        $txt .= '<table border="0" cellspacing="4"><tr><td rowspan="3" valign="top" align="center">' . ($r['avatar'] == 'true' ? '<img src="' . IMG . 'a/' . $r['ID'] . '.jpg" alt="' . $nick . '" />' : '') . ($r['dnie'] == 'true' ? '<br /><img src="' . IMG . 'varios/autentificacion.png" border="0" style="margin-top:6px;" />' : '') . '</td><td nowrap="nowrap"><h1><span class="amarillo"><img src="' . IMG . 'cargos/' . $r['cargo'] . '.gif" alt="Cargo" style="margin-bottom:0;" border="0" /> ' . $nick . ' &nbsp; <span style="color:grey;"><span class="' . $r['estado'] . '">' . ucfirst($r['estado']) . '</span> de ' . $r['pais'] . '</span></span></h1></td><td nowrap="nowrap">';
        // CONFIANZA
        if ($user_ID != $pol['user_ID'] and $pol['user_ID'] and $pol['estado'] != 'expulsado') {
            // numero de votos emitidos
            $result2 = mysql_query("SELECT COUNT(*) AS num FROM votos WHERE tipo = 'confianza' AND emisor_ID = '" . $pol['user_ID'] . "' AND voto != '0'", $link);
            while ($r2 = mysql_fetch_array($result2)) {
                $num_votos = $r2['num'];
            }
            $result2 = mysql_query("SELECT voto FROM votos WHERE tipo = 'confianza' AND emisor_ID = '" . $pol['user_ID'] . "' AND item_ID = '" . $user_ID . "' LIMIT 1", $link);
Example #2
0
 $num = 1;
 $proxys_array = explode(', ', long2ip($r['IP']) . ', ' . $r['IP_proxy']);
 foreach ($proxys_array as $IP) {
     if ($IP > 0 || $IP < 4294967295) {
         $IP = long2ip($IP);
     }
     if ($IP_anterior != $IP and $IP != '127.0.0.1' and $IP != '0.0.0.80' and $IP != '0.0.0.0' and $IP != '-1') {
         $IP_anterior = $IP;
         //$host = IP2host($IP);
         $host = $r['host'];
         if ($host == $IP) {
             $host = '*';
         }
         $proxys_num .= '<b>' . $num++ . '.</b><br />';
         $proxys .= ocultar_IP(ip2long($IP)) . '<br />';
         $proxys_dns .= ocultar_IP($host, 'host') . '<br />';
         // clones
         $result2 = mysql_query("SELECT nick, estado, pais FROM users WHERE ID != '" . $r['ID'] . "' AND (IP = '" . ip2long($IP) . "' OR IP_proxy LIKE '%" . $IP . "%') ORDER BY fecha_registro DESC", $link);
         while ($r2 = mysql_fetch_array($result2)) {
             $clones_num++;
             $clones .= crear_link($r2['nick'], 'nick', $r2['estado'], $r2['pais']) . ' ';
         }
         $clones .= '<br />';
     }
 }
 if ($clones_num > 0) {
     if ($proxy_first != true) {
         $txt .= '<tr><th></th><th colspan="3"><span style="float:right;">Hosts</span>Saltos de proxys</th></tr>';
         $proxy_first = true;
     }
     $txt .= '<tr>