function nodeID($NodeUnic, $Host, $Total, $Hop) { global $share_nodes; global $share_nodes_minhop; $nodSh = explode("|", $NodeUnic); $Server = $nodSh[3]; $Server2 = explode("_", $Server); $Server_Host = ""; $Server_Host2 = ""; $Server = nodeIdName($Server); $extra = $share_nodes[$NodeUnic] - $Total + 1; if ($Server_Host == $Host) { $ret = "<font color=Fuchsia><B>" . $Server . "</B></font>"; } else { if ($extra > 1) { if ($share_nodes_minhop[$NodeUnic] == $Hop) { $ret = "<font color=brown>" . $Server . "</font>"; } else { $ret = $Server; } } else { $ret = "<font color=Crimson>" . $Server . "</font>"; } } if ($extra > 1) { $ret .= " (" . $extra . ")"; } global $pagina; global $serverindex; $ret = linkNod($NodeUnic, $ret, "node", false); return $ret; }
foreach ($country_data as $currentline) { list($IP_CACHE, $TARA_CACHE, $SERVER_USER) = explode("|", $currentline); $IP_CACHE = trim($IP_CACHE); $TARA_CACHE = trim($TARA_CACHE); $SERVER_USER = trim($SERVER_USER); if (strstr($SERVER_USER, ":")) { $SERVER_IP[$IP_CACHE][] = $SERVER_USER; $SERVER_CLIENT[$SERVER_USER]["NAME"] = $SERVER_USER; $SERVER_CLIENT[$SERVER_USER]["IP"] = $IP_CACHE; $SERVER_CLIENT[$SERVER_USER]["TARA"] = $TARA_CACHE; } } } if (count($nodes) > 0) { format1("NodeID", $nodSh[3]); $ServerNodeIDDNS = nodeIdName($nodSh[3]); if ($ServerNodeIDDNS != $nodSh[3]) { format1("NodeDNS", $ServerNodeIDDNS); } format1("Providers", providerID($nodes[0][2], $nodes[0][4], true, "")); echo "<BR><table border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; echo "<th class=\"tabel_header\">Type</th>"; echo "<th class=\"tabel_headerc\">hop</th>"; echo "<th class=\"tabel_header\">Server</th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=country>Cnt</A></th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=ping>Ping</A></th>"; echo "<th class=\"tabel_headerc\">Reshare</th>"; echo "</tr>"; $i = 0;