<?php include "common.php"; if (!$update_from_button) { $update_info = true; $update_shares = true; $update_servers = true; } include "meniu.php"; checkFile($shares_file); $shares_data = file($shares_file); //___________________________________________________________________________________________________ initClients(); initPairs(); loadGlobalServers(); UpdateServersECM(); loadOnlineData(); if (!isset($ServerHost_Conectat)) { loadServersHosts(); } $servers = $ECMservers; $total_shares["total"] = 0; $maxhop = 0; foreach ($shares_data as $currentline) { $inceput1 = substr($currentline, 0, 1); $inceput2 = substr($currentline, 1, 1); if ($inceput1 == "|" && $inceput2 != " ") { $share = explode("|", $currentline); $share_Host = trim($share[1]); $share_Type = trim($share[2]); $share_Caid = trim($share[3]);
function nodeIdName($nodeid) { global $Server_Conectat_Global; global $Server_Conectat_Local; if (!isset($Server_Conectat_Global)) { loadGlobalServers(); } if (!isset($Server_Conectat_Local)) { loadLocalServers(); } $node = explode("_", $nodeid); $ret = $nodeid; if (isset($Server_Conectat_Local[$node[0]])) { $Server_Host = $Server_Conectat_Local[$node[0]]; $ret = $Server_Host . "_" . $node[1]; } else { if (isset($Server_Conectat_Global[$node[0]])) { $Server_Host = $Server_Conectat_Global[$node[0]]; $ret = "[" . $Server_Host . "]_" . $node[1]; } } return $ret; }