function all_services_status_build()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $ini = new Bs_IniHandler();
    $tpl = new templates();
    $users = new usersMenus();
    $squid = new squidbee();
    $ini->loadString(base64_decode($sock->getFrameWork('cmd.php?squid-ini-status=yes')));
    if (!is_numeric($MonitConfig["watchdog"])) {
        $MonitConfig["watchdog"] = 1;
    }
    $DisableAnyCache = $sock->GET_INFO("DisableAnyCache");
    $SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
    $AsSquidLoadBalancer = $sock->GET_INFO("AsSquidLoadBalancer");
    $EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
    $EnableKerbAuth = $sock->GET_INFO("EnableKerbAuth");
    if (!is_numeric($DisableAnyCache)) {
        $DisableAnyCache = 0;
    }
    $SquidBoosterMem = $sock->GET_INFO("SquidBoosterMem");
    $SquidCacheLevel = $sock->GET_INFO("SquidCacheLevel");
    if (!is_numeric($SquidCacheLevel)) {
        $SquidCacheLevel = 4;
    }
    if (!is_numeric($EnableKerbAuth)) {
        $EnableKerbAuth = 0;
    }
    if (!is_numeric($SquidBoosterMem)) {
        $SquidBoosterMem = 0;
    }
    if (!is_numeric($DisableAnyCache)) {
        $DisableAnyCache = 0;
    }
    if (!is_numeric($SquidActHasReverse)) {
        $SquidActHasReverse = 0;
    }
    if (!is_numeric($AsSquidLoadBalancer)) {
        $AsSquidLoadBalancer = 0;
    }
    if (!is_numeric($EnableRemoteStatisticsAppliance)) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    $UnlockWebStats = $sock->GET_INFO("UnlockWebStats");
    if (!is_numeric($UnlockWebStats)) {
        $UnlockWebStats = 0;
    }
    if ($UnlockWebStats == 1) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    if ($SquidCacheLevel == 0) {
        $DisableAnyCache = 1;
    }
    $squid_status = DAEMON_STATUS_ROUND("SQUID", $ini, null, 1);
    $dansguardian_status = DAEMON_STATUS_ROUND("DANSGUARDIAN", $ini, null, 1);
    $kav = DAEMON_STATUS_ROUND("KAV4PROXY", $ini, null, 1);
    $cicap = DAEMON_STATUS_ROUND("C-ICAP", $ini, null, 1);
    $APP_PROXY_PAC = DAEMON_STATUS_ROUND("APP_PROXY_PAC", $ini, null, 1);
    $APP_SQUIDGUARD_HTTP = DAEMON_STATUS_ROUND("APP_SQUIDGUARD_HTTP", $ini, null, 1);
    $APP_UFDBGUARD = DAEMON_STATUS_ROUND("APP_UFDBGUARD", $ini, null, 1);
    $APP_FRESHCLAM = DAEMON_STATUS_ROUND("APP_FRESHCLAM", $ini, null, 1);
    $APP_ARTICADB = DAEMON_STATUS_ROUND("APP_ARTICADB", $ini, null, 1);
    $APP_SQUID_DB = DAEMON_STATUS_ROUND("APP_SQUID_DB", $ini, null, 1);
    $APP_HAARP = DAEMON_STATUS_ROUND("APP_HAARP", $ini, null, 1);
    if ($users->PROXYTINY_APPLIANCE) {
        $APP_ARTICADB = null;
    }
    if ($EnableRemoteStatisticsAppliance == 1) {
        $APP_ARTICADB = null;
    }
    $APP_FTP_PROXY = DAEMON_STATUS_ROUND("APP_FTP_PROXY", $ini, null, 1);
    $squid = new squidbee();
    if ($EnableKerbAuth == 1) {
        $APP_SAMBA_WINBIND = DAEMON_STATUS_ROUND("SAMBA_WINBIND", $ini, null, 1);
    }
    $tr[] = "<div id='squid-mem-status'></div><script>LoadAjaxTiny('squid-mem-status','{$page}?squid-mem-status=yes');</script>";
    $tr[] = "<div id='squid-stores-status'></div><script>LoadAjaxTiny('squid-stores-status','{$page}?squid-stores-status=yes');</script>";
    $md = md5(date('Ymhis'));
    if (!$users->WEBSTATS_APPLIANCE) {
        $swappiness = intval($sock->getFrameWork("cmd.php?sysctl-value=yes&key=" . base64_encode("vm.swappiness")));
        $sock = new sockets();
        $swappiness_saved = unserialize(base64_decode($sock->GET_INFO("kernel_values")));
        if (!is_numeric($swappiness_saved["swappiness"])) {
            if ($swappiness > 30) {
                $tr[] = DAEMON_STATUS_ROUND_TEXT("warning-panneau-42.png", "{high_swap_value}", "{high_swap_value_text}", "Loadjs('squid.perfs.php')");
            }
        }
        if ($AsSquidLoadBalancer == 1) {
            $SquidAsSeenDNS = 1;
        }
        if (!$users->IsSquidReverse()) {
            $SquidAsSeenDNS = $sock->GET_INFO("SquidAsSeenDNS");
            if (!is_numeric($SquidAsSeenDNS)) {
                $SquidAsSeenDNS = 0;
            }
            if (count($squid->dns_array) == 0) {
                if ($SquidAsSeenDNS == 0) {
                    $tr[] = DAEMON_STATUS_ROUND_TEXT("warning-panneau-42.png", "{add_dns_in_config}", "{add_dns_in_config_perf_explain}", "Loadjs('squid.popups.php?script=dns')");
                }
            }
        }
    }
    $CicapEnabled = 0;
    if ($users->C_ICAP_INSTALLED) {
        $CicapEnabled = $sock->GET_INFO("CicapEnabled");
        if (!is_numeric($CicapEnabled)) {
            $CicapEnabled = 0;
        }
    }
    $squid_status = null;
    $ini = new Bs_IniHandler();
    $ini->loadString(base64_decode($sock->getFrameWork('squid.php?smp-status=yes')));
    while (list($index, $line) = each($ini->_params)) {
        if ($GLOBALS["VERBOSE"]) {
            echo __FUNCTION__ . "::" . __LINE__ . "::{$index} -> DAEMON_STATUS_ROUND<br>\n";
        }
        $tr[] = DAEMON_STATUS_ROUND($index, $ini, null, 1);
    }
    if ($SquidBoosterMem > 0) {
        if ($DisableAnyCache == 0) {
            $tr[] = squid_booster_smp();
        }
    }
    $tr[] = $squid_status;
    $tr[] = $APP_HAARP;
    $tr[] = $APP_SAMBA_WINBIND;
    $tr[] = $dansguardian_status;
    $tr[] = $kav;
    $tr[] = $cicap;
    $tr[] = $APP_PROXY_PAC;
    $tr[] = $APP_SQUIDGUARD_HTTP;
    $tr[] = $APP_UFDBGUARD;
    $tr[] = $APP_FRESHCLAM;
    $tr[] = $APP_ARTICADB;
    $tr[] = $APP_SQUID_DB;
    $tr[] = $APP_FTP_PROXY;
    $EnableUfdbGuard = $sock->EnableUfdbGuard();
    if (!is_numeric($EnableUfdbGuard)) {
        $EnableUfdbGuard = 0;
    }
    if (!$users->APP_UFDBGUARD_INSTALLED) {
        $EnableUfdbGuard = 0;
    }
    echo CompileTr3($tr, true);
}