$total_connected_servers++; } } } $textClientiPierduti = ""; foreach ($clientConectat as $client_conectat_gasit => $info) { if (!isset($client_pereche[$client_conectat_gasit])) { if ($textClientiPierduti != "") { $textClientiPierduti = $textClientiPierduti . " , "; } $textClientiPierduti = $textClientiPierduti . "<A HREF=" . $pagina . "?username="******">" . $client_conectat_gasit . "</A>"; $servers[$client_conectat_gasit]["client"] = "client"; } } if ($textClientiPierduti != "") { format1("Connected Clients with no pair", $textClientiPierduti); } //format1("Servers connected",$total_connected_servers,$total_servers); echo "<BR>"; echo "<table width=100% border=0 cellpadding=2 cellspacing=1"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; //echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=".$pagina."?sort=rating>Rating</A></th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=type>Type</A></th>"; echo "<th class=\"tabel_headerr\"><A class=\"header\" HREF=" . $pagina . "?sort=client>Client</A></th>"; echo "<th class=\"tabel_header\"><A class=\"header\" HREF=" . $pagina . "?sort=server>Server</A></th>"; if ($country_whois == true) { 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\"><A class=\"header\" HREF=".$pagina."?sort=pingbest>Best</A></th>";
foreach ($share_caident_unic as $caid => $prov) { foreach ($prov as $p => $nodes) { $total_providers++; $total_shares_unic += count($share_caident_unic[$caid][$p]); } } $totalECM = 0; $ecmhit_ECMOK = 0; if (isset($ecmhit["total"]["Info"]["ECM"])) { $totalECM = $ecmhit["total"]["Info"]["ECM"]; } if (isset($ecmhit["total"]["Info"]["ECMOK"])) { $ecmhit_ECMOK = $ecmhit["total"]["Info"]["ECMOK"]; } format1("Providers", $total_providers); format1("Recent ECM handled", $ecmhit_ECMOK, $totalECM); if ($providerslist == "") { echo "<BR>"; echo "<table width=100% border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<td class=\"tabel_headerc\">#</th>"; echo "<td class=\"tabel_header\"><A class=\"header\" HREF=" . $pagina . "?sort=caid>CAID</A></th>"; echo "<td class=\"tabel_header\"><A class=\"header\" HREF=" . $pagina . "?sort=caid>Ident</A></th>"; echo "<td class=\"tabel_header\"><A class=\"header\" HREF=" . $pagina . "?sort=nodes>Nodes</A></th>"; if ($maxhop > 1) { echo "<td class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=shares>Shares</A></th>"; } if (isset($total_shares[0]) && $total_shares[0] > 0) { echo "<td class=\"tabel_header\">Local</th>"; } if ($maxhop > 1) {
} } unset($shares_data); loadOnlineData(); //___________________________________________________________________________________________________ $total_servers = 0; $total_connected_servers = 0; if (isset($servers) && count($servers) > 0) { foreach ($servers as $sh_host => $nodes) { $total_servers++; if ($nodes["Info"][0] != "") { $total_connected_servers++; } } } format1("Servers connected", $total_connected_servers, $total_servers); echo "<BR>"; echo "<table width=100% border=0 cellpadding=2 cellspacing=1"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; if ($maxhop > 1) { echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=rating>Rating</A></th>"; } echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=online>Uptime</A></th>"; echo "<th class=\"tabel_header\"><A class=\"header\" HREF=" . $pagina . "?sort=server>Server</A></th>"; if ($country_whois == true) { 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\"><A class=\"header\" HREF=".$pagina."?sort=pingbest>Best</A></th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=reshare>RE</A></th>";
} } } } if ($ecm_total) { echo "</table>"; } echo "<BR>"; $total_nodes = 0; for ($k = 0; $k <= $maxhop; $k++) { if (isset($total_host_shares[$sh_host][$k])) { $total_nodes += $total_host_shares[$sh_host][$k]; } } if ($total_nodes > 0) { format1("Nodes", $info_total_unic); echo "<table border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; echo "<th class=\"tabel_header\">NodeID/Server (extra sources)</th>"; echo "<th class=\"tabel_header\">Shares</th>"; for ($k = 1; $k <= $maxhop; $k++) { echo "<th class=\"tabel_headerc\">hop" . $k . "</th>"; } echo "<th class=\"tabel_headerc\">Reshare</th>"; echo "<th class=\"tabel_header\">CAID/Idents</th>"; echo "</tr>"; //$info_total = $total_host_shares[$sh_host]["total"]; //$info_total_unic = count($nodes) - 1; //$info_uniqueIndex = (int)($info_total_unic/$info_total *100); //$info_total_reshare = $total_reshare[$sh_host]["total"];
} $i++; } } echo "</td>"; } echo "</tr>"; $i++; } } } } echo "</table>"; } echo "<BR>"; format1("Nodes", $total_nodes); echo "<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_header\">Nodes</th>"; echo "<th class=\"tabel_headerc\">Ping</th>"; echo "<th class=\"tabel_headerc\">Shares</th>"; for ($k = 1; $k <= $maxhop; $k++) { echo "<td class=\"tabel_headerc\">hop" . $k . "</th>"; } echo "<th class=\"tabel_header\">Reshare</th>"; echo "<th class=\"tabel_header\">CAID/Idents</th>"; echo "</tr>"; echo "<tr>"; echo "<td class=\"Node_Provider\" COLSPAN=4></td>";
if ($hit_array[0] != "") { $hit_provider = explode(":", $hit_array[1]); $hit_exact = explode("(", $hit_array[2]); $hit_exact2 = explode(")", $hit_exact[1]); $hit_ecm = $hit_exact[0]; $hit_ecmOK = $hit_exact2[0]; $ecm_total = $ecm_total + $hit_ecm; $ecmOK_total = $ecmOK_total + $hit_ecmOK; $key = adaug0($hit_ecmOK, 20) . adaug0($hit_ecm, 20) . $hit_array[1]; $ecmok_sortat[$key] = $hit_data; } } } if ($ecm_total) { echo "<BR>"; format1("Handled ECM ( this session )", $ecmOK_total, $ecm_total); echo "<table border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; echo "<th class=\"tabel_headerc\">Type</th>"; echo "<th class=\"tabel_header\">ECM</th>"; echo "<th class=\"tabel_header\">OK</th>"; echo "<th class=\"tabel_header\">CAID/Ident</th>"; echo "</tr>"; } if (isset($ecmok_sortat)) { krsort($ecmok_sortat); $counthits = 0; foreach ($ecmok_sortat as $key => $hit_data) { $hit_array = explode(" ", $hit_data); if ($hit_array[0] != "") {
} //___________________________________________________________________________________________________ $total_nodes = 0; $total_nodes_re = 0; if (isset($nodes)) { $total_nodes = count($nodes); } if (isset($re_unic)) { $total_nodes_re = count($re_unic); } $uniqueNodeIndex = (int) ($total_nodes / $total_shares["total"] * 100); $uniqueReshareIndex = (int) ($total_nodes_re / $total_nodes * 100); format1("Shares", $total_shares["total"]); format1("Nodes", $total_nodes, $total_shares["total"]); format1("Reshare", $total_reshare["total"], $total_shares["total"]); format1("Reshare Nodes", $total_nodes_re, $total_nodes); echo "<BR>"; echo "<table width=100% 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_header\">Nodes</th>"; echo "<th class=\"tabel_headerc\">Ping</th>"; echo "<th class=\"tabel_headerc\">Shares</th>"; for ($k = 1; $k <= $maxhop; $k++) { echo "<td class=\"tabel_headerc\">hop" . $k . "</th>"; } echo "<th class=\"tabel_header\">Reshare</th>"; echo "<th class=\"tabel_header\" width=100%>CAID/Idents</th>"; echo "</tr>"; echo "<tr>";
$acEmmOk = -$lastSeenOnline; $ac_Version = $lastSeenOnline; $ac_LastShare = $lastSeenOnline; $ac_EcmTime = $lastSeenOnline; $acEmmOk = $lastSeenOnline; if ($diff < 2600000) { $clientConectat[$User]["Info"] = array($ac_IP, $ac_Connected, $ac_Idle, $acEcm, $acEcmOk, $acEmm, $acEmmOk, $ac_Version, $ac_LastShare, $ac_EcmTime, $lastSeenOnline); } else { $clientiOfflineOld[$User] = $lastSeenOnline; } } } //___________________________________________________________________________________________________ format1("Connected clients", $clienticonectati); format1("Current Usage (ECM requests/h)", $totalUsage); format1("Average Usage (ECM requests/h)", $totalAVU); echo "<br>"; echo "<table border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=average>AVU</A></th>"; echo "<th class=\"tabel_headerr\"><A class=\"header\" HREF=" . $pagina . "?sort=username>Username</A></th>"; if ($country_whois == true) { echo "<th class=\"tabel_header\" COLSPAN=\"2\"><A class=\"header\" HREF=" . $pagina . "?sort=country>Country</A> / <A class=\"header\" HREF=" . $pagina . "?sort=host>IP</A></th>"; } else { echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=host>Host</A></th>"; } echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=usage>Usage</A></th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=connected>Connected</A></th>"; echo "<th class=\"tabel_headerc\"><A class=\"header\" HREF=" . $pagina . "?sort=idle>Idle time</A></th>"; echo "<th class=\"tabel_headerc\" COLSPAN=\"2\"><A class=\"header\" HREF=" . $pagina . "?sort=ecm>Ecm</A> / <A class=\"header\" HREF=" . $pagina . "?sort=ecmok>Ok</A></th>";
$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; foreach ($nodes as $node => $data) { $i++; $sh_host = $data[0]; echo "<tr>";
} } $idtable = "timpupdate"; echo "<SPAN onclick='toggleDisplay(\"" . $idtable . "\");' style='cursor:hand;'> " . $TIMP_Update . "</SPAN>"; //echo " ".$TIMP_Update; echo "<table id=\"" . $idtable . "\" style='display:none;' border=0 cellpadding=0 cellspacing=0>"; echo "<tr>"; echo "<BR>"; echo "<td><B>Update times :</B><BR>"; if (file_exists($update_log)) { $update_log_data = file($update_log); if (isset($update_log_data)) { foreach ($update_log_data as $update_log) { if ($update_log != $update_log_data[0]) { list($text1, $text2) = explode(":", $update_log); format1($text1, $text2); } } } } echo "</td>"; echo "</table>"; if ($server_offline == true) { echo "<BR><BR>"; if ($_GET['profile'] == "new") { include "getconfigserver.php"; exit; } else { echo $update_failed; } if ($cccam_host == "") {
$ac_Connected = trim($active_client[3]); $ac_Idle = trim($active_client[4]); $ac_ECM = trim($active_client[5]); $ac_EMM = trim($active_client[6]); $ac_Version = trim($active_client[7]); $ac_LastShare = trim($active_client[8]); $ac_EcmTime = ""; if (isset($active_client[9])) { $ac_EcmTime = trim($active_client[9]); } $clientActiv[$ac_Username]["Info"] = array($ac_IP, $ac_Connected, $ac_Idle, $ac_ECM, $ac_EMM, $ac_Version, $ac_LastShare, $ac_EcmTime); } } echo "<br>"; if (isset($clientActiv) && count($clientActiv) > 0) { format1("Active Clients", count($clientActiv)); echo "<table border=0 cellpadding=2 cellspacing=1>"; echo "<tr>"; echo "<th class=\"tabel_headerc\">#</th>"; echo "<th class=\"tabel_headerc\">Username</th>"; if ($country_whois == true) { echo "<th class=\"tabel_headerc\" COLSPAN=\"2\">Host</th>"; } else { echo "<th class=\"tabel_headerc\">Host</th>"; } echo "<th class=\"tabel_headerc\">Connected</th>"; echo "<th class=\"tabel_headerc\">Idle time</th>"; echo "<th class=\"tabel_headerc\">ECM</th>"; echo "<th class=\"tabel_headerc\">EMM</th>"; echo "<th class=\"tabel_headerc\">Ver</th>"; echo "<th class=\"tabel_headerc\" COLSPAN=\"2\">Last used share</th>";