Example #1
0
 }
 $pECM = adaug0($pECM, 6);
 $identECM = $caidECM . ":" . $pECM;
 $totalECM = 0;
 $ecmhit_ECMOK = 0;
 if (isset($ecmhit[$identECM]["Info"]["ECM"])) {
     $totalECM = $ecmhit[$identECM]["Info"]["ECM"];
 }
 if (isset($ecmhit[$identECM]["Info"]["ECMOK"])) {
     $ecmhit_ECMOK = $ecmhit[$identECM]["Info"]["ECMOK"];
 }
 $procentEcm = 0;
 if ($totalECM > 0) {
     $procentEcm = (int) ($ecmhit_ECMOK / $totalECM * 100);
 }
 $procentEcmAfisat = procentColor($procentEcm);
 if ($totalECM == 0) {
     $totalECM = "<FONT COLOR=red>-</FONT>";
     $procentEcmAfisat = "-";
 }
 echo "<td class=\"tabel_ecm\">" . $totalECM . "</td>";
 echo "<td class=\"tabel_ecm\">" . $procentEcmAfisat . "</td>";
 echo "<td class=\"Node_Provider\" NOWRAP>" . providerID($caid, $p, true) . "</td>";
 unset($clienti_sortat);
 if (isset($identsClients[$identECM]["Clients"])) {
     foreach ($identsClients[$identECM]["Clients"] as $clientProvider) {
         $key = adaug0($identsClientsUsage[$clientProvider][$identECM]["ecm"], 15) . $clientProvider;
         $clienti_sortat[$key]["clientProvider"] = $clientProvider;
     }
     krsort($clienti_sortat);
     $j = 0;
Example #2
0
function format1($titlu, $v1 = "", $v2 = -1)
{
    $ret = "";
    $ret = "" . $titlu . " : ";
    $ret .= "<B><FONT COLOR=white>" . $v1 . "</FONT></B>";
    if ($v2 > 0) {
        $procent = (int) ($v1 / $v2 * 100);
        $procentAfisat = procentColor($procent);
        $ret .= " / " . $v2 . " (<B>" . $procentAfisat . "</B>)";
    }
    $ret .= "<BR>";
    echo $ret;
}
Example #3
0
 foreach ($logtime as $log) {
     if (strstr($log, "-")) {
         $history_off = $history_off + substr($log, 1);
     } else {
         $history_on = $history_on + $log;
     }
 }
 $DIV_history_off = "";
 if ($history_off > 0) {
     $DIV_history_off = "<FONT color=red>" . formatted_timediff($history_off * 60) . "</FONT>";
 }
 $DIV_history_total = formatted_timediff(($history_off + $history_on) * 60);
 if ($history_off > 0) {
     format1("Uptime", procentColor(procentOnline($sh_host)) . " [ " . $DIV_history_off . " / " . $DIV_history_total . " ]");
 } else {
     format1("Uptime", procentColor(procentOnline($sh_host)) . " [ " . $DIV_history_total . " ]");
 }
 if ($country_whois == true && $tara_code["tara"] != "<>") {
     format1("ISP Info", $tara_code["info"]);
 }
 echo "<BR>";
 ob_flush();
 flush();
 $LastPingError = "Very slow";
 $pingCount = 5;
 $pingCountOK = 0;
 $pingLast = 0;
 $pingTimeTotal = 0;
 //echo "<table border=0 cellpadding=0 cellspacing=0>";
 $ping_text_try = "";
 $stringquerry = $_SERVER['QUERY_STRING'];
Example #4
0
 echo "<td class=\"tabel_hop_total2\">" . $usageClient . "</td>";
 if ($client["Info"][10] == -1) {
     //clienti online
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][1] . "</td>";
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][2] . "</td>";
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][3] . "</td>";
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][4] . "</td>";
     if ($client["Info"][3] == 0) {
         $procentEcm = 0;
     } else {
         $procentEcm = (int) ($client["Info"][4] * 100 / $client["Info"][3]);
     }
     if ($client["Info"][3] == 0) {
         echo "<td class=\"tabel_hop_total2\"></td>";
     } else {
         echo "<td class=\"tabel_hop_total2\">" . procentColor($procentEcm) . "</td>";
     }
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][5] . "</td>";
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][6] . "</td>";
     echo "<td class=\"tabel_hop_total2\">" . $client["Info"][7] . "</td>";
     $lastused_Share = explode(" ", $client["Info"][8]);
     $lastused_ShareCount = count($lastused_Share);
     $text_lastshare = "";
     for ($k = 0; $k <= $lastused_ShareCount - 2; $k++) {
         $text_lastshare = $text_lastshare . $lastused_Share[$k] . " ";
     }
     echo "<td class=\"tabel_normal\">" . trim($text_lastshare) . "</td>";
     if ($lastused_ShareCount > 1) {
         $text_ok = trim($lastused_Share[$lastused_ShareCount - 1]);
         if ($text_ok == "(ok)") {
             echo "<td class=\"tabel_hop_total2\"><FONT COLOR=\"green\">" . $text_ok . "</FONT></td>";