function daemons_status()
{
    if (!isset($GLOBALS["CLASS_USERS_MENUS"])) {
        $users = new usersMenus();
        $GLOBALS["CLASS_USERS_MENUS"] = $users;
    } else {
        $users = $GLOBALS["CLASS_USERS_MENUS"];
    }
    $artica = new artica_general();
    $tpl = new templates();
    $sock = new sockets();
    $ONLY_SAMBA = false;
    if ($GLOBALS["VERBOSE"]) {
        echo "DEBUG:daemons_status:: -> Stating...\n";
    }
    $EnableArticaSMTPStatistics = $sock->GET_INFO("EnableArticaSMTPStatistics");
    if (!is_numeric($EnableArticaSMTPStatistics)) {
        $EnableArticaSMTPStatistics = 1;
    }
    $statusSpamassassinUpdateFile = "/usr/share/artica-postfix/ressources/logs/sa-update-status.html";
    $statusSpamassassinUpdateText = null;
    $service = null;
    $blacklist = null;
    $no_orgs = null;
    $zabbix = null;
    $samba = null;
    $computers = null;
    $nobackup = null;
    $check_apt = null;
    $services = null;
    $DisableMessaging = intval($sock->GET_INFO("DisableMessaging"));
    if ($DisableMessaging == 1) {
        $users->POSTFIX_INSTALLED = false;
    }
    $SambaEnabled = $sock->GET_INFO("SambaEnabled");
    if (!is_numeric($SambaEnabled)) {
        $SambaEnabled = 1;
    }
    if ($SambaEnabled == 0) {
        $users->SAMBA_INSTALLED = false;
    }
    if (!$users->SQUID_INSTALLED) {
        if (!$users->POSTFIX_INSTALLED) {
            if ($users->SAMBA_INSTALLED) {
                $ONLY_SAMBA = true;
            }
        }
    }
    if ($users->collectd_installed) {
        if ($artica->EnableCollectdDaemon == 1) {
            $collectd = NotifyAdmin("64-charts.png", "{collectd_statistics}", "{collectd_statistics_text}", "javascript:YahooWin(790,'collectd.index.php?PopUp=yes')", "services_status_text", 300, 76);
        }
    }
    $interface = new networking();
    $i = 0;
    if (is_array($interface->array_TCP)) {
        while (list($num, $val) = each($interface->array_TCP)) {
            if ($val == null) {
                continue;
            }
            $i++;
            $iptext = $iptext . "<div style='font-size:11px'><strong>{nic}:{$num}:<a href='#' OnClick=\"javascript:Loadjs('system.nic.config.php?js=yes')\">{$val}</a></strong></div>";
            if ($i > 2) {
                break;
            }
        }
    }
    if ($EnableArticaSMTPStatistics == 1) {
        if (!$users->KASPERSKY_WEB_APPLIANCE) {
            if ($users->POSTFIX_INSTALLED) {
                $monthly_stats = NotifyAdmin("statistics-network-32.png", "{monthly_statistics}", "{monthly_statistics_text}", "javascript:Loadjs('smtp.daily.statistics.php')", "{monthly_statistics_text}", 300, 76, 1);
            }
        }
    }
    $services = "\n\t{$collectd}\n\t";
    $ini = new Bs_IniHandler();
    $ini->loadFile("/etc/artica-postfix/smtpnotif.conf");
    $ArticaMetaEnabled = $sock->GET_INFO($ArticaMetaEnabled);
    $RootPasswordChanged = $sock->GET_INFO("RootPasswordChanged");
    if ($RootPasswordChanged != 1) {
        $RootPasswordChangedTXT = NotifyAdmin('warning64.png', "{root_password_not_changed}", "{root_password_not_changed_text}", "javascript:Loadjs('system.root.pwd.php')", "{root_password_not_changed_text}", 300, 80);
    }
    if ($ArticaMetaEnabled != 1) {
        if ($sock->GET_INFO("DisableWarnNotif") != 1) {
            if (trim($ini->_params["SMTP"]["enabled"] == null)) {
                $js = "javascript:Loadjs('artica.settings.php?ajax-notif=yes')";
                $services = NotifyAdmin('danger64.png', "{smtp_notification_not_saved}", "{smtp_notification_not_saved_text}", "{$js}", "{smtp_notification_not_saved}", 300, 80);
            }
        }
    }
    if (!$users->KASPERSKY_WEB_APPLIANCE) {
        if ($ArticaMetaEnabled != 1) {
            if ($sock->GET_INFO("WizardBackupSeen") != 1) {
                $js = "javascript:Loadjs('wizard.backup-all.php')";
                $nobackup = NotifyAdmin('danger64.png', "{BACKUP_WARNING_NOT_CONFIGURED}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", "{$js}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", 300, 80);
            }
        }
    }
    $DisableAPTNews = $sock->GET_INFO('DisableAPTNews');
    if (!is_numeric($DisableAPTNews)) {
        $DisableAPTNews = 0;
    }
    $EnableSystemUpdates = $sock->GET_INFO("EnableSystemUpdates");
    if (!is_numeric($EnableSystemUpdates)) {
        $EnableSystemUpdates = 0;
    }
    if ($EnableSystemUpdates == 0) {
        $DisableAPTNews = 1;
    }
    if ($DisableAPTNews == 0) {
        $datas = trim(@file_get_contents("/etc/artica-postfix/apt.upgrade.cache"));
        if (preg_match('#nb:([0-9]+)\\s+#is', $datas, $re)) {
            $check_apt = NotifyAdmin('32-infos.png', "{upgrade_your_system}", "{$re[1]}&nbsp;{packages_to_upgrade}", "javascript:Loadjs('artica.repositories.php?show=update')", null, 300, 76);
        }
    }
    $DisableNoOrganization = $sock->GET_INFO('DisableNoOrganization');
    if (!is_numeric($DisableNoOrganization)) {
        $DisableNoOrganization = 0;
    }
    if (!$users->KASPERSKY_WEB_APPLIANCE) {
        if ($users->POSTFIX_INSTALLED) {
            $ok = true;
            $main = new main_cf();
            if (!$main->CheckMyNetwork()) {
                NotifyAdmin('pluswarning64.png', '{postfix_mynet_not_conf}', '{postfix_mynet_not_conf_text}', "javascript:Loadjs('postfix.network.php?ajax=yes');", "{postfix_mynet_not_conf}", 300, 73);
            }
        }
    }
    if ($users->BadMysqlPassword == 1) {
        $services = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%><img src='img/superuser-64-bad.png'></td>\n\t<td valign='top'><H5>{error_mysql_user}</H5><p class=caption>{error_mysql_user_text}</p></td>\n\t</tr>\n\t</table>";
        $services = RoundedLightGrey($services, "artica.settings.php", 1);
    }
    if (!$users->KASPERSKY_WEB_APPLIANCE) {
        if (!is_file("/etc/artica-postfix/KASPER_MAIL_APP")) {
            if ($users->ZABBIX_INSTALLED) {
                $EnableZabbixServer = $sock->GET_INFO("EnableZabbixServer");
                if ($EnableZabbixServer == null) {
                    $EnableZabbixServer = 1;
                }
                if ($EnableZabbixServer == 1) {
                    $zabbix = NotifyAdmin("zabbix_med.gif", '{APP_ZABIX_SERVER}', '{APP_ZABIX_SERVER_TEXT}', "javascript:Loadjs('zabbix.php')", "{APP_ZABIX_SERVER_TEXT}", 300, 76, 1);
                }
            }
        }
    }
    if ($sock->GET_INFO("DisableFrontEndArticaEvents") != 1) {
        $q = new mysql();
        $sql = "SELECT COUNT(ID) as tcount FROM events";
        $events_sql = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_events"));
    }
    $kernel_mismatch = kernel_mismatch();
    $newversion = null;
    $kavicap_license_error = kavicap_license_error();
    $cicap_bad = CicapBadParams();
    if ($GLOBALS["VERBOSE"]) {
        echo "DEBUG:daemons_status:: -> squid_filters_infos()\n";
    }
    $squidfilters = squid_filters_infos();
    if ($users->POSTFIX_INSTALLED) {
        if (is_file("ressources/logs/web/blacklisted.html")) {
            $blacklist = @file_get_contents("ressources/logs/web/blacklisted.html");
        }
    }
    if ($users->KASPERSKY_WEB_APPLIANCE) {
        kavproxyInfos();
    }
    if (is_file($statusSpamassassinUpdateFile)) {
        if ($GLOBALS["VERBOSE"]) {
            echo "DEBUG:{$statusSpamassassinUpdateFile} file exists...\n";
        }
        $statusSpamassassinUpdateText = @file_get_contents($statusSpamassassinUpdateFile);
    } else {
        if ($GLOBALS["VERBOSE"]) {
            echo "DEBUG:{$statusSpamassassinUpdateFile} no such file...\n";
        }
    }
    @unlink("/usr/share/artica-postfix/ressources/logs/status.warnings.html");
    @unlink("/usr/share/artica-postfix/ressources/logs/status.inform.html");
    $DisableWarningCalculation = $sock->GET_INFO("DisableWarningCalculation");
    if (!is_numeric("DisableWarningCalculation")) {
        $DisableWarningCalculation = 0;
    }
    $final = "\n\t\n\t{$no_orgs}\n\t<span id='loadavggraph'></span>\n\t<span id='kav4proxyGraphs'></span>\t\t\n\t{$squidfilters}\n\t{$cicap_bad}\n\t{$events_NotifyAdmin}\n\t{$zabbix}\n\t{$monthly_stats}\n\t{$newversion}\n\t{$samba}\n\t{$computers}";
    events(__FUNCTION__ . "/usr/share/artica-postfix/ressources/logs/status.global.html ok");
    file_put_contents('/usr/share/artica-postfix/ressources/logs/status.global.html', $final);
    system('/bin/chmod 755 /usr/share/artica-postfix/ressources/logs/status.global.html');
}
function daemons_status()
{
    $users = new usersMenus();
    $artica = new artica_general();
    $tpl = new templates();
    $soc = new sockets();
    $ONLY_SAMBA = false;
    if (!$users->SQUID_INSTALLED) {
        if (!$users->POSTFIX_INSTALLED) {
            if ($users->SAMBA_INSTALLED) {
                $ONLY_SAMBA = true;
            }
        }
    }
    if ($users->collectd_installed) {
        if ($artica->EnableCollectdDaemon == 1) {
            $collectd = Paragraphe("64-charts.png", "{collectd_statistics}", "{collectd_statistics_text}", "javascript:YahooWin(790,'collectd.index.php?PopUp=yes')", "services_status_text", 300, 76);
        }
    }
    $interface = new networking();
    if (is_array($interface->array_TCP)) {
        while (list($num, $val) = each($interface->array_TCP)) {
            if ($val == null) {
                continue;
            }
            $i++;
            $iptext = $iptext . "<div style='font-size:11px'><strong>{nic}:{$num}:<a href='#' OnClick=\"javascript:Loadjs('system.nic.config.php?js=yes')\">{$val}</a></strong></div>";
            if ($i > 2) {
                break;
            }
        }
    }
    if ($users->POSTFIX_INSTALLED) {
        $monthly_stats = Paragraphe("statistics-network-64.png", "{monthly_statistics}", "{monthly_statistics_text}", "javascript:Loadjs('smtp.daily.statistics.php')", "{monthly_statistics_text}", 300, 76, 1);
    }
    $services = "\n\t{$interfaces_text}\n\t{$collectd}\n\t{$curlinit}\n\t";
    $sock = new sockets();
    $ini = new Bs_IniHandler();
    $ini->loadFile("/etc/artica-postfix/smtpnotif.conf");
    if ($sock->GET_INFO("DisableWarnNotif") != 1) {
        if (trim($ini->_params["SMTP"]["enabled"] == null)) {
            $js = "javascript:Loadjs('artica.settings.php?ajax-notif=yes')";
            $services = Paragraphe('danger64.png', "{smtp_notification_not_saved}", "{smtp_notification_not_saved_text}", "{$js}", "{smtp_notification_not_saved}", 300, 80);
        }
    }
    if ($sock->GET_INFO("WizardBackupSeen") != 1) {
        $js = "javascript:Loadjs('wizard.backup-all.php')";
        $nobackup = Paragraphe('danger64.png', "{BACKUP_WARNING_NOT_CONFIGURED}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", "{$js}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", 300, 80);
    }
    $datas = trim($sock->getfile('aptcheck'));
    if (preg_match('#nb:([0-9]+)\\s+#is', $datas, $re)) {
        $services = Paragraphe('i64.png', "{upgrade_your_system}", "{$re[1]}&nbsp;{packages_to_upgrade}", "javascript:Loadjs('artica.repositories.php?show=update')", null, 300, 76);
    }
    $ldap = new clladp();
    $hash = $ldap->hash_get_ou();
    $ldap->ldap_close();
    if (count($hash) < 1) {
        $no_orgs = Paragraphe('org-warning-64.png', "{no_organization}", "{no_organization_text_jgrowl}", "javascript:TreeAddNewOrganisation()", null, 300, 76);
    }
    if ($users->POSTFIX_INSTALLED) {
        if (!$users->POSTFIX_LDAP_COMPLIANCE) {
            $services = "\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<td valign='top' width=1%><img src='img/rouage_off.png'></td>\n\t\t\t\t\t<td valign='top'><a href='#' OnClick=\"javascript:YahooWin(600,'index.remoteinstall.php','Install');\">\n\t\t\t\t\t<H5>{error_postfix_ldap_compliance}</H5><p class=caption>{error_postfix_ldap_compliance_text}\n\t\t\t\t\t</A>\n\t\t\t\t\t</p></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>";
            $services = RoundedLightYellow($services);
        } else {
            $ok = true;
            $main = new main_cf();
            if (!$main->CheckMyNetwork()) {
                $services = "\n\t\t\t\t<div id='servinfos'>\n\t\t\t\t\t" . Paragraphe('pluswarning64.png', '{postfix_mynet_not_conf}', '{postfix_mynet_not_conf_text}', "javascript:Loadjs('postfix.network.php?ajax=yes');", "{postfix_mynet_not_conf}", 300, 73) . "\n\t\t\t\t</div>";
            }
        }
    }
    if ($users->BadMysqlPassword == 1) {
        $services = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%><img src='img/superuser-64-bad.png'></td>\n\t<td valign='top'><H5>{error_mysql_user}</H5><p class=caption>{error_mysql_user_text}</p></td>\n\t</tr>\n\t</table>";
        $services = RoundedLightGrey($services, "artica.settings.php", 1);
    }
    if ($ONLY_SAMBA) {
        $computers = Paragraphe("64-win-nic-browse.png", '{browse_computers}', '{browse_computers_text}', "javascript:Loadjs('computer-browse.php');", "{browse_computers_text}", 300, 76, 1);
        $samba = Paragraphe("explorer-64.png", '{explorer}', '{SHARE_FOLDER_TEXT}', "javascript:Loadjs('tree.php');", "{SHARE_FOLDER_TEXT}", 300, 76, 1);
    }
    if (!is_file("/etc/artica-postfix/KASPER_MAIL_APP")) {
        if ($users->ZABBIX_INSTALLED) {
            $EnableZabbixServer = $sock->GET_INFO("EnableZabbixServer");
            if ($EnableZabbixServer == null) {
                $EnableZabbixServer = 1;
            }
            if ($EnableZabbixServer == 1) {
                $zabbix = Paragraphe("zabbix_med.gif", '{APP_ZABIX_SERVER}', '{APP_ZABIX_SERVER_TEXT}', "javascript:Loadjs('zabbix.php')", "{APP_ZABIX_SERVER_TEXT}", 300, 76, 1);
            }
        }
    }
    if ($sock->GET_INFO("DisableFrontEndArticaEvents") != 1) {
        $q = new mysql();
        $sql = "SELECT COUNT(ID) as tcount FROM events";
        $events_sql = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_events"));
        if ($events_sql["tcount"] > 0) {
            $events_paragraphe = Paragraphe("events-64.png", '{artica_events}', "{artica_events_text}", "javascript:Loadjs('artica.events.php')", "{$events_sql["tcount"]} {events}", 300, 76, 1);
        }
    }
    $kernel_mismatch = kernel_mismatch();
    $newversion = null;
    $kavicap_license_error = kavicap_license_error();
    $final = "\n\t{$no_orgs}\n\t{$kernel_mismatch}\n\t{$kavicap_license_error}\n\t{$services}\n\t{$nobackup}\n\t{$events_paragraphe}\n\t{$all}\n\t{$zabbix}\n\t{$disks}\n\t{$monthly_stats}\n\t{$pureftp_error}\n\t{$newversion}\n\t{$roundcube}\n\t{$samba}\n\t{$computers}\n\t{$check_apt}";
    events(__FUNCTION__ . "/usr/share/artica-postfix/ressources/logs/status.global.html ok");
    file_put_contents('/usr/share/artica-postfix/ressources/logs/status.global.html', $final);
    system('/bin/chmod 755 /usr/share/artica-postfix/ressources/logs/status.global.html');
}
function daemons_status(){
if(!isset($GLOBALS["CLASS_USERS_MENUS"])){$users=new usersMenus();$GLOBALS["CLASS_USERS_MENUS"]=$users;}else{$users=$GLOBALS["CLASS_USERS_MENUS"];}
	$artica=new artica_general();
	$tpl=new templates();
	$sock=new sockets();
	$ONLY_SAMBA=false;
	if($GLOBALS["VERBOSE"]){echo "daemons_status:: -> Stating...\n";}
	$EnableArticaSMTPStatistics=$sock->GET_INFO("EnableArticaSMTPStatistics");
	if(!is_numeric($EnableArticaSMTPStatistics)){$EnableArticaSMTPStatistics=1;}
	$nobackup=null;
	
	
	
	
	if(!$users->SQUID_INSTALLED){
		if(!$users->POSTFIX_INSTALLED){
			if($users->SAMBA_INSTALLED){
				$ONLY_SAMBA=true;
			}
		}
	}
	
	if($users->collectd_installed){
		if($artica->EnableCollectdDaemon==1){
			$collectd=Paragraphe("64-charts.png","{collectd_statistics}","{collectd_statistics_text}","javascript:YahooWin(790,'collectd.index.php?PopUp=yes')","services_status_text",300,76);
		}
	}
	
	$interface=new networking();
	$i=0;
	if(is_array($interface->array_TCP)){
		while (list ($num, $val) = each ($interface->array_TCP) ){
			if($val==null){continue;}
			$i++;
			$iptext=$iptext."<div style='font-size:11px'><strong>{nic}:$num:<a href='#' OnClick=\"javascript:Loadjs('system.nic.config.php?js=yes')\">$val</a></strong></div>";
			if($i>2){break;}
		}
	}
	
	if($EnableArticaSMTPStatistics==1){
		if(!$users->KASPERSKY_WEB_APPLIANCE){
			if($users->POSTFIX_INSTALLED){
			$monthly_stats=Paragraphe("statistics-network-64.png","{monthly_statistics}","{monthly_statistics_text}","javascript:Loadjs('smtp.daily.statistics.php')","{monthly_statistics_text}",300,76,1);
			}
	}}
	
	$services="
	$collectd
	";
	
	
	
	
	$ini=new Bs_IniHandler();
	$ini->loadFile("/etc/artica-postfix/smtpnotif.conf");
	$ArticaMetaEnabled=$sock->GET_INFO($ArticaMetaEnabled);
	
	$RootPasswordChanged=$sock->GET_INFO("RootPasswordChanged");
	if($RootPasswordChanged<>1){
		$RootPasswordChangedTXT=Paragraphe('warning64.png',
		"{root_password_not_changed}",
		"{root_password_not_changed_text}",
		"javascript:Loadjs('system.root.pwd.php')",
		"{root_password_not_changed_text}",300,80);
	}
	
	
	
	if($ArticaMetaEnabled<>1){
	if($sock->GET_INFO("DisableWarnNotif")<>1){
		if(trim($ini->_params["SMTP"]["enabled"]==null)){
		$js="javascript:Loadjs('artica.settings.php?ajax-notif=yes')";
		$services=Paragraphe('danger64.png',
		"{smtp_notification_not_saved}",
		"{smtp_notification_not_saved_text}",
		"$js",
		"{smtp_notification_not_saved}",300,80);
		
	}}}
	
	
	if(!$users->KASPERSKY_WEB_APPLIANCE){
		if($ArticaMetaEnabled<>1){
		if($sock->GET_INFO("WizardBackupSeen")<>1){
			$js="javascript:Loadjs('wizard.backup-all.php')";
			$nobackup=Paragraphe('danger64.png',"{BACKUP_WARNING_NOT_CONFIGURED}","{BACKUP_WARNING_NOT_CONFIGURED_TEXT}","$js","{BACKUP_WARNING_NOT_CONFIGURED_TEXT}",300,80);
		}}}
	
	
	
	$datas=trim(@file_get_contents("/etc/artica-postfix/apt.upgrade.cache"));
	if(preg_match('#nb:([0-9]+)\s+#is',$datas,$re)){
		$check_apt=Paragraphe('i64.png',"{upgrade_your_system}","{$re[1]}&nbsp;{packages_to_upgrade}","javascript:Loadjs('artica.repositories.php?show=update')",null,300,76);
		
	}
	
	$ldap=new clladp();
	$hash=$ldap->hash_get_ou();
	$ldap->ldap_close();
	if(count($hash)<1){
		$no_orgs=Paragraphe('org-warning-64.png',"{no_organization}","{no_organization_text_jgrowl}","javascript:TreeAddNewOrganisation()",null,300,76);
	}
	
	
	if(!$users->KASPERSKY_WEB_APPLIANCE){
		if($users->POSTFIX_INSTALLED){
				$ok=true;
				$main=new main_cf();
				if(!$main->CheckMyNetwork()){		
					$services="
					<div id='servinfos'>
						".	Paragraphe('pluswarning64.png','{postfix_mynet_not_conf}','{postfix_mynet_not_conf_text}',"javascript:Loadjs('postfix.network.php?ajax=yes');","{postfix_mynet_not_conf}",300,73)."
					</div>";
					}
				}
	}
		
	
	
	
	if($users->BadMysqlPassword==1){
			$services="
	<table style='width:100%'>
	<tr>
	<td valign='top' width=1%><img src='img/superuser-64-bad.png'></td>
	<td valign='top'><H5>{error_mysql_user}</H5><p class=caption>{error_mysql_user_text}</p></td>
	</tr>
	</table>";
	$services=RoundedLightGrey($services,"artica.settings.php",1);	
	}


		
		
	if($ONLY_SAMBA){
			$computers=Paragraphe("64-win-nic-browse.png",'{browse_computers}','{browse_computers_text}',"javascript:Loadjs('computer-browse.php');","{browse_computers_text}",300,76,1);
			$samba=Paragraphe("explorer-64.png",'{explorer}','{SHARE_FOLDER_TEXT}',"javascript:Loadjs('tree.php');","{SHARE_FOLDER_TEXT}",300,76,1);
		}

		
	if(!$users->KASPERSKY_WEB_APPLIANCE){
			if(!is_file("/etc/artica-postfix/KASPER_MAIL_APP")){
				if($users->ZABBIX_INSTALLED){
				$EnableZabbixServer=$sock->GET_INFO("EnableZabbixServer");
				if($EnableZabbixServer==null){$EnableZabbixServer=1;}
				if($EnableZabbixServer==1){
					$zabbix=Paragraphe("zabbix_med.gif",'{APP_ZABIX_SERVER}','{APP_ZABIX_SERVER_TEXT}',
					"javascript:Loadjs('zabbix.php')","{APP_ZABIX_SERVER_TEXT}",300,76,1);
					}
				}
			}
	}	
	
	if($sock->GET_INFO("DisableFrontEndArticaEvents")<>1){
		$q=new mysql();
		$sql="SELECT COUNT(ID) as tcount FROM events";
		$events_sql=@mysql_fetch_array($q->QUERY_SQL($sql,"artica_events"));
		
		if($events_sql["tcount"]>0){
			$events_paragraphe=Paragraphe("events-64.png",'{artica_events}',"{artica_events_text}",
			"javascript:Loadjs('artica.events.php')","{$events_sql["tcount"]} {events}",300,76,1);
		}
	}
	
	$kernel_mismatch=kernel_mismatch();
	$newversion=null;
	$kavicap_license_error=kavicap_license_error();
	$cicap_bad=CicapBadParams();
	if($GLOBALS["VERBOSE"]){echo "daemons_status:: -> squid_filters_infos()\n";}
	$squidfilters=squid_filters_infos();
	if($users->POSTFIX_INSTALLED){
		if(is_file("ressources/logs/web/blacklisted.html")){
			$blacklist=@file_get_contents("ressources/logs/web/blacklisted.html");
		}
	}
	
	if($users->KASPERSKY_WEB_APPLIANCE){
		kavproxyInfos();
	}
	$informer=0;
	if($RootPasswordChangedTXT<>null){$informer++;}
	if($kernel_mismatch<>null){$informer++;}
	if($blacklist<>null){$informer++;}
	if($kavicap_license_error<>null){$informer++;}
	if($nobackup<>null){$informer++;}
	if($services<>null){$informer++;}
	
	writelogs("Inform: $informer",__FILE__,__FUNCTION__,__LINE__);
	
	if($informer>0){
		$inform=Paragraphe("warning64.png","$informer {warnings}","$informer {index_warnings_text}","javascript:Loadjs('admin.index.php?warnings=yes&count=$informer')","",300,76,1);
		file_put_contents('/usr/share/artica-postfix/ressources/logs/status.warnings.html',"$RootPasswordChangedTXT$kernel_mismatch$nobackup$blacklist$kavicap_license_error$services");
		system('/bin/chmod 755 /usr/share/artica-postfix/ressources/logs/status.warnings.html');	
	}
	

	$final="
	$inform
	$no_orgs
	<span id='loadavggraph'></span>	
	$squidfilters
	$cicap_bad
	$events_paragraphe
	$zabbix
	$monthly_stats
	$newversion
	$samba
	$computers
	$check_apt";

events(__FUNCTION__."/usr/share/artica-postfix/ressources/logs/status.global.html ok");	
file_put_contents('/usr/share/artica-postfix/ressources/logs/status.global.html',$final);
system('/bin/chmod 755 /usr/share/artica-postfix/ressources/logs/status.global.html');	
	
}