Example #1
0
 } else {
     echo "<td class=\"tabel_hop_total\">" . $nodes["Info"][1] . "</td>";
 }
 //------------- SERVER
 echo "<td class=\"Node_IDr\">";
 if ($client_host != "") {
     echo "<A HREF=" . $pagina . "?username={$client_host}>" . $client_host . "</A>" . "<BR>";
 } else {
     if (isset($SERVER_PAIR[$sh_host])) {
         foreach ($SERVER_PAIR[$sh_host] as $Client_afisat) {
             $IPdiferit = false;
             $IPClient = "";
             if (isset($clientConectat[$Client_afisat]["Info"][0])) {
                 $IPClient = trim($clientConectat[$Client_afisat]["Info"][0]);
             }
             $tara_host = taraNameSaved($sh_host);
             $IPServer = trim($tara_host[1]);
             /*
             if ($IPServer == "" || $IPClient != $IPServer)
             {
                list($host_DNS, $host_PORT) = explode(":", $sh_host);
                $newIPServer = getHostIP($host_DNS);
                
                if ($newIPServer != $IPServer)
                {
                   $IPServer = $newIPServer;
                   tara($IPServer,$sh_host);
                   
                   $globalServers[$server_Host][1] = $IPServer; 
                   saveGlobalServers();
                }
Example #2
0
        $acEcmOk = "";
        $acEmm = "";
        $acEmmOk = "";
        $ac_Version = "-";
        $ac_LastShare = "";
        $ac_EcmTime = "";
        $acEmmOk = "";
        $clientConectat[$username]["Info"] = array($ac_IP, $ac_Connected, $ac_Idle, $acEcm, $acEcmOk, $acEmm, $acEmmOk, $ac_Version, $ac_LastShare, $ac_EcmTime, $lastSeenOnline);
    }
}
//___________________________________________________________________________________________________
if (!isset($clientConectat[$username])) {
    format1("Connected", "offline");
} else {
    $username_IP = $clientConectat[$username]["Info"][0];
    $tara_user = taraNameSaved($username);
    $tara_code = tara($username_IP, $username);
    if ($country_whois == true) {
        $tara_nume = taraName($tara_code["tara"]);
    }
    format1("Username", $username . " (" . $username_IP . ")");
    if ($country_whois == true) {
        if ($tara_code["tara"] != "<>") {
            format1("Country", $tara_code["tara"] . " , " . $tara_nume);
        } else {
            format1("Country", "Local Private IP");
        }
    }
    format1("Connected", $clientConectat[$username]["Info"][1]);
    if ($clientConectat[$username]["Info"][10] == -1) {
        format1("Idle time", $clientConectat[$username]["Info"][2]);
Example #3
0
 //------------- INDEX , RATING
 echo "<td class=\"Node_count\">" . $i . "</td>";
 if ($maxhop > 1) {
     echo "<td class=\"tabel_hop_total\">" . $qualityServer . "</td>";
 }
 $procent = procentOnline($sh_host);
 if ($procent == round($procent) && $procent != "100") {
     $procent = $procent . ".0";
 }
 if ($procent == "100") {
     echo "<td class=\"tabel_hop_total2\"><B>" . procentColor($procent) . "</B></td>";
 } else {
     echo "<td class=\"tabel_hop_total2\">" . procentColor($procent) . "</td>";
 }
 //------------- SERVER
 $tara_DNS = taraNameSaved($sh_host);
 if ($nodes["Info"][0] == "") {
     echo "<td class=\"Node_ID\"><A HREF=" . $pagina . "?nodeDns={$sh_host_afisat}><FONT COLOR=red>" . $sh_host_afisat . "</FONT></A></td>";
 } else {
     echo "<td class=\"Node_ID\"><A HREF=" . $pagina . "?nodeDns={$sh_host_afisat}>" . $sh_host_afisat . "</A></td>";
 }
 if ($country_whois == true) {
     echo "<td class=\"tabel_hop_total2\">" . $tara_DNS[0]["tara"] . "</td>";
 }
 echo "<td class=\"tabel_hop_total2\"><A HREF=" . $pagina . "?nodeDns=" . $sh_host . "&checkPing=1>" . pingColor(SavedPing($sh_host)) . "</A></td>";
 //echo "<td class=\"tabel_hop_total2\"><A HREF=".$pagina."?nodeDns=".$sh_host."&checkPing=1>".pingColorBest(SavedPing($sh_host))."</A></td>";
 //------------- RESHARE
 $reshare = "<FONT COLOR=red>! NO !</FONT>";
 if (!isset($total_reshare[$sh_host]["maxim"])) {
     $reshare = "-";
 } else {
Example #4
0
function UpdateServersCountryIP()
{
    loadGlobalServers();
    loadECMServers();
    global $servers_file;
    global $globalServers;
    global $Server_Conectat_Local;
    global $SERVER_PAIR;
    global $clientConectat;
    initPairs();
    initClients();
    $servers_data = file($servers_file);
    foreach ($servers_data as $currentline) {
        $inceput1 = substr($currentline, 0, 1);
        $inceput2 = substr($currentline, 1, 2);
        if ($inceput1 == "|" && $inceput2 != " H") {
            $server = explode("|", $currentline);
            $server_Host = trim($server[1]);
            $server_Time = trim($server[2]);
            $server_Type = trim($server[3]);
            $server_Ver = trim($server[4]);
            $server_Nodeid = trim($server[5]);
            $server_Cards = trim($server[6]);
            $server_Idents = trim($server[7]);
            if ($server_Host != "") {
                list($host_DNS, $host_PORT) = explode(":", $server_Host);
                $taraSaved = taraNameSaved($server_Host);
                $checkIP = true;
                if (isset($SERVER_PAIR[$server_Host])) {
                    foreach ($SERVER_PAIR[$server_Host] as $Client_afisat) {
                        $IPdiferit = false;
                        if (isset($clientConectat[$Client_afisat]["Info"][0])) {
                            $IPClient = trim($clientConectat[$Client_afisat]["Info"][0]);
                        }
                        $IPServer = trim($taraSaved[1]);
                        if ($IPClient == $IPServer) {
                            $checkIP = false;
                            break;
                        }
                    }
                } else {
                    $checkIP = false;
                }
                if ($checkIP == true || $taraSaved[0] == "" || $taraSaved[1] == "") {
                    $host_IP = getHostIP($host_DNS);
                    tara($host_IP, $server_Host);
                    $globalServers[$server_Host] = array($server_Nodeid, $host_IP, $taraSaved[0]["tara"]);
                } else {
                    $globalServers[$server_Host] = array($server_Nodeid, $taraSaved[1], $taraSaved[0]["tara"]);
                }
                $Server_Conectat_Local[$server_Nodeid] = $server_Host;
                $lastServer = $server_Host;
            }
        }
    }
    saveGlobalServers();
    saveGlobalNodeID();
}