Example #1
0
function page_false()
{
    if (is_file(dirname(__FILE__) . '/ressources/install/APP_CLAMAV.dbg')) {
        $logs = "<br>" . RoundedLightYellow("<center>\n\t\t\t<a href=\"javascript:ShowClamavInstallLogs();\" style='font-size:14px;font-weight:bold'>{INSTALL_CLAMAV_PROGRESS}</a></center>");
    }
    $img = "must-install-128.png";
    $install = Paragraphe("64-install-soft.png", '{INSTALL_CLAMAV}', '{INSTALL_CLAMAV_TEXT}', "javascript:ClamavInstall();");
    $html = "<H1>{APP_CLAMAV}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/{$img}'>\n\t\t<td valign='top'>" . RoundedLightWhite('<div style="font-size:12px">{CLAMAV_NOT_INSTALLED_CLICK_TO_INSTALL}</div>') . "<br><br>\n\t\t<center>{$install}</center>\n\t\t{$logs}\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function start()
{
    $uri = $_GET["uri"];
    $page = CurrentPageName();
    $tpl = new templates();
    $success = $tpl->_ENGINE_parse_body('{success}');
    $title = $tpl->_ENGINE_parse_body('{unlock_web_site}');
    $dans = new dansguardian();
    $port = trim($dans->Master_array["filterport"]);
    $success = $form = "\n\t<script>\n\tvar timeout=0;\n\tfunction releasetouri(){\n\t\tdocument.getElementById('mmwait').innerHTML=\"\";\n\t\tdocument.location.href=\"{$_GET["uri"]}\";\n\t}\n\t\n\tfunction CheckUnlockForm(e){\n\t\tif(checkEnter(e)){ReleaseWebSite();}\n\t\n\t\t}\n\t\n\t\n\tvar x_ReleaseWebSite= function (obj) {\n\t\tvar text=obj.responseText;\n\t\t\n\t\tif(text=='SUCCESS'){\n\t\t\talert('{$success}');\n\t\t\ttimeout=0;\n\t\t\tsetTimeout(\"testingConnection()\",1000);\n\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\talert(text);\n\t\tdocument.getElementById('mmwait').innerHTML=\"\";\n\t}\n\t\n\t\nvar x_testingConnection= function (obj) {\n\t\tvar text=obj.responseText;\n\t\tif(text=='SUCCESS'){\n\t\t\tsetTimeout(\"releasetouri()\",1000);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetTimeout(\"testingConnection()\",1000);\n}\n\n\tfunction testingConnection(){\n\t\ttimeout=timeout+1;\n\t\tif(timeout>20){\n\t\t\treleasetouri();\n\t\t\treturn;\n\t\t\t}\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('testing-connection','{$port}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_testingConnection);\n\t\n\t}\n\t\n\tfunction ReleaseWebSite(){\n\t\tvar password=document.getElementById('password').value;\n\t\tvar user=document.getElementById('username').value;\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('password',password);\n\t\tXHR.appendData('userid',user);\n\t\tXHR.appendData('uri','{$uri}');\n\t\tdocument.getElementById('mmwait').innerHTML=\"<center style='width:100%'><img src='img/wait_verybig.gif'></center>\";\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_ReleaseWebSite);\t\n\t}\n\t</script>\n\t\n\t<span id='mmwait'></span>\n\t<center>\n\t<div style='width:700px;border:2px solid red;margin-top:100px;margin-left:100px;padding:20px;background-color:#d32d2d'>\n\t<div style='width:600px;border:2px solid red;padding:20px;background-color:white'>\n\t\t<div style='font-size:18px;margin:10px;text-align:center'>{$uri}</div>\n\t<div style='width:300px;margin-top:50px;margin-bottom:50px'>\n\t" . RoundedLightYellow("\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend>{username}:</td>\n\t\t<td>" . Field_text('username', null, 'width:120px', null, null, null, null, "CheckUnlockForm(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend>{password}:</td>\n\t\t<td>" . Field_password('password', null, 'width:120px', null, null, null, null, "CheckUnlockForm(event)") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr><input type='button' OnClick=\"javascript:ReleaseWebSite();\" value='{unlock}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>\n\t") . "\n\t</div>\n\t</div>\n\t</div>\n\t</center>\n\t\n\t\n\t";
    $tpl = new template_users($title, $form, 0, 1, 1, 0);
    $tpl->_BuildPopUp($form, $title);
    echo $tpl->web_page;
}
Example #3
0
function otherinfo()
{
    $conf = new main_cf();
    if ($conf->main_array["smtpd_sasl_auth_enable"] == 'yes') {
        $sls = new smtp_sasl_password_maps();
        $hash = $sls->smtp_sasl_password_hash;
        if (count($hash) == 0) {
            $warn = RoundedLightYellow("<img src='img/warning32.png' style='margin:5px' align='left'><strong>{warning_no_sasl_database}</strong>");
        }
    } else {
        return null;
    }
    $play_is = playis();
    $page = "<table style='width:100%'>\n<tr>\n<td valign='top'>{$warn}</td>\n<td>{$play_is}</td>\n</tr>\n</table>";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($page);
}
function daemons_status()
{
    $users = new usersMenus();
    $artica = new artica_general();
    $tpl = new templates();
    $ldap = new clladp();
    $sql = new mysql();
    $status = new status(1);
    $gd_info = gdinfos();
    if ($ldap->ldapFailed == true) {
        $ldap_error = $ldap->ErrorConnection() . "<br>";
    }
    $all = $status->StatusFailed();
    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)) {
            $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>";
        }
    }
    //$manage_services=Paragraphe("folder-tasks2-64.png","{services_status}","{services_status_text}$iptext","admin.index.services.status.php","services_status_text",300,76,1);
    $services = "\n\t{$collectd}\n\t";
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $ini->loadString($sock->GET_INFO("SmtpNotificationConfig"));
    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);
    }
    $sock = new sockets();
    $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);
    }
    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 (!is_array($main->array_mynetworks)) {
                $ok = false;
            } else {
                while (list($num, $ligne) = each($main->array_mynetworks)) {
                    if ($ligne != "127.0.0.1") {
                        $rr[] = $ligne;
                    }
                }
                if (count($rr) == 0) {
                    $ok = false;
                }
            }
            if (!$ok) {
                $services = "<div id='servinfos'>" . Paragraphe('danger64.png', '{postfix_mynet_not_conf}', '{postfix_mynet_not_conf_text}', "postfix.network.php", null, 300, 73) . "</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 (!$users->POSTFIX_INSTALLED) {
        if ($users->SAMBA_INSTALLED) {
            $sock = new sockets();
            $SambaEnabled = $sock->GET_INFO("SambaEnabled");
            if ($SambaEnabled == null) {
                $SambaEnabled = 1;
            }
            if ($SambaEnabled == 1) {
                $samba = Paragraphe("64-share.png", '{SHARE_FOLDER}', '{SHARE_FOLDER_TEXT}', "javascript:Loadjs('SambaBrowse.php');", "SHARE_FOLDER_TEXT", 300, 76, 1);
            }
        }
    }
    $newversion = null;
    if (is_file(dirname(__FILE) . "/ressources/index.ini")) {
        $ini = new Bs_IniHandler(dirname(__FILE) . "/ressources/index.ini");
        $remote_version = $ini->_params["NEXT"]["artica"];
        $local_version = $users->ARTICA_VERSION;
        $remote_version_bin = str_replace('.', '', $remote_version);
        $local_version_bin = str_replace('.', '', $local_version);
        if ($local_version < $remote_version) {
            $newversion = Paragraphe('i64.png', "{upgrade_artica} {$remote_version}", "{upgrade_artica_text}", "javascript:Loadjs('artica.update.php?js=yes')", null, 300, 76);
        }
    }
    $final = "\n\t{$switch}\n\t{$ldap_error}\n\t{$all}\n\t{$pureftp_error}\n\t{$samba}\n\t{$newversion}\n\t{$check_apt}";
    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');
}
Example #5
0
function USER_FETCHMAIL($uid)
{
    include_once dirname(__FILE__) . '/ressources/class.fdm.inc';
    $fdm = new fdm($uid);
    $users = new usersMenus();
    if (!$users->fdm_installed) {
        $warning = "<strong>{fdm_not_installed}</strong>";
    }
    $users->LoadModulesEnabled();
    if ($users->EnableFDMFetch != 1) {
        $warning = $warning . "<br><strong>{fdm_not_enabled}</strong>";
    }
    if (!$users->fdm_cache) {
        $warning = $warning . "<br><strong>{fdm_cache_not_exists}</strong>";
    }
    if (strlen($warning) > 0) {
        $warning = RoundedLightYellow($warning);
    }
    $html = "\n\t<hr>\n\t<H3>{$uid}::{fetch_mails}</H3>{$warning}\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' style='vertical-align:top' style='vertical-align:top'><br><div id='fdm_list' style='width:450px'>" . USER_FETCHMAIL_LIST($uid) . "</div></td>\n\t<td valign='top' style='vertical-align:top' style='vertical-align:top' width=1%>\n\t\n\t<table style='width:100%'><tr>\n\t<td>" . imgtootltip('add-fetchmail-48.png', '{add_rule}', "fdm_addrule('{$uid}')") . "</td>\n\t<td>" . imgtootltip('48-logs.png', '{all_events}', "fdm_events('{$uid}')") . "</td>\n\t\n\t</tr>\n\t</table>\n\t\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
Example #6
0
function response()
{
    $func = nl2br($_GET["response"]);
    echo RoundedLightYellow($func);
}
Example #7
0
function main_update(){
	$sock=new sockets();
	$datas=trim($sock->getFrameWork('cmd.php?aptcheck=yes'));
	$html=main_tabs()."<table style='width:100%'>
	<tr>
	<td valign='top'>
	<H5>{system_update}</H5>";
	
	if(preg_match('#nb:([0-9]+)\s+#is',$datas,$re)){
		$html=$html . RoundedLightYellow("
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%><img src='img/48-infos.png'></td>
			<td valign='top'>
				<p style='font-size:12px;font-weight:bold'>{$re[1]}&nbsp;{packages_to_upgrade}</p>
			</td>
		</tr>
		</table>");
		$datas=str_replace($re[0],'',$datas);
	}
	
	$html=$html."</td>
	<td valign='top'>".update_Apply_install()."</td>
	</tr>
	</table>";
	
	$tbl=explode("\n",$datas);
	$t="<table style='width:100%'>";
	
	
	while (list ($num, $ligne) = each ($tbl) ){
		if(trim($ligne)<>null){
				$uri="<a href='#' OnClick=\"javascript:PackageInfos('$ligne')\">";
			$t=$t."
			<tr ". CellRollOver_jaune().">
			<td width=1%><img src='img/fw_bold.gif'></td>
			<td width=99% nowrap>$uri$ligne</a></td>
			</tr>";
		}
		
	}
	
	$t=$t . "</table>";
	$t="<div style='width:100%;height:200px;overflow:auto'>$t</div>";
	$t=RoundedLightWhite($t);
	$tpl=new templates();
	return $tpl->_ENGINE_parse_body("$html$t");
	
	
}
Example #8
0
function main_update()
{
    $sock = new sockets();
    $datas = trim($sock->getFrameWork('cmd.php?aptcheck=yes'));
    $html = "<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=99%>";
    if (preg_match('#nb:([0-9]+)\\s+#is', $datas, $re)) {
        $html = $html . RoundedLightYellow("\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top' width=1%><img src='img/48-infos.png'></td>\n\t\t\t<td valign='top'>\n\t\t\t\t<p style='font-size:12px;font-weight:bold'>{$re[1]}&nbsp;{packages_to_upgrade}</p>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>");
        $datas = str_replace($re[0], '', $datas);
    }
    $html = $html . "</td>\n\t<td valign='top'>" . update_Apply_install() . "</td>\n\t</tr>\n\t</table>";
    $tbl = explode("\n", $datas);
    $t = "<center>\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:99%'>\n<thead class='thead'>\n\t<tr>\n\t\t<th colspan=2>{packages_to_upgrade}&nbsp;|&nbsp;{$search_regex}&nbsp;|&nbsp;{$search_sql}</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    while (list($num, $ligne) = each($tbl)) {
        if (trim($ligne) != null) {
            if ($classtr == "oddRow") {
                $classtr = null;
            } else {
                $classtr = "oddRow";
            }
            $uri = "<a href='#' OnClick=\"javascript:PackageInfos('{$ligne}')\" style='font-size:16px;text-decoration:underline'>";
            $t = $t . "\n\t\t\t<tr class={$classtr}>\n\t\t\t<td width=1%><img src='img/software-task-48.png'></td>\n\t\t\t<td width=99% nowrap>{$uri}{$ligne}</a></td>\n\t\t\t</tr>";
        }
    }
    $t = $t . "</table>";
    $t = "<div style='width:100%;height:300px;overflow:auto'>{$t}</div>";
    $t = RoundedLightWhite($t);
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body("{$html}{$t}");
}
function main_share_retranslation_issmbmount()
{
    $users = new usersMenus();
    if (!$users->smbmount_installed) {
        $html = "<H3>{error_smbmount_not_installed}</H3>\n\t\t<p class=caption>{error_need_smbmount_feature}</p>\n\t\t";
        $tpl = new templates();
        return "<br>" . RoundedLightYellow($tpl->_ENGINE_parse_body($html));
    }
}
Example #10
0
function main_stunnel_status()
{
    $users = new usersMenus();
    $tpl = new templates();
    if (!$users->stunnel4_installed) {
        return $tpl->_ENGINE_parse_body(RoundedLightYellow('{stunnel_not_installed}'));
    }
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $ini->loadString($sock->getfile('stunnel4status', $_GET["hostname"]));
    $status = DAEMON_STATUS_ROUND("STUNNEL", $ini);
    return $tpl->_ENGINE_parse_body($status);
}
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');
}