function page() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $ini = new Bs_IniHandler(); $ini->loadString(@file_get_contents(dirname(__FILE__) . '/ressources/index.ini')); $users = new usersMenus(); $ArchStruct = $users->ArchStruct; if ($ArchStruct == "32") { $ArchStruct = "i386"; } if ($ArchStruct == "64") { $ArchStruct = "x64"; } $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); $GLOBALS["GlobalApplicationsStatus"] = $GlobalApplicationsStatus; } $squid_version = ParseAppli($GlobalApplicationsStatus, "APP_SQUID"); $availableversion = $ini->_params["NEXT"]["squid32-{$ArchStruct}"]; $actualversion = $sock->getFrameWork("squid.php?full-version=yes"); if ($actualversion == null) { $actualversion = "0.0.0"; } $availableversion_dansguardian = $ini->_params["NEXT"]["dansguardian2-{$ArchStruct}"]; $actualversion_dansguardian = $sock->getFrameWork("squid.php?full-dans-version=yes"); $html = "\n<H2>In dev progress, don't use ! - no 64 bits support...</H2>\n<div style='font-size:18px'>{current}: {APP_SQUID}: <strong>{$squid_version}</strong> | {architecture}: <strong>{$ArchStruct}</strong></div>\n<table style='width:100%;margin-top:15px'>\n<tbody>\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_squid.jpg'></td>\n\t<td valign='top'>\n\t\t\t<table style='width:100%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_SQUID2}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'> </td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t\t\n\t\t\t</table>\n\t\t\t<div style='font-size:12px'>{APP_SQUID_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='squid-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "squid_install_status()") . "</div>\n\t</td>\n</tr>\n\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_dansguardian.jpg'></td>\n\t<td valign='top'>\n\t\t\t<table style='width:100%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_DANSGUARDIAN}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'> </td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion_dansguardian}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:14px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion_dansguardian}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t\t\n\t\t\t</table>\n\t\t\t<div style='font-size:12px'>{danseguardian_simple_intro}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='dansguardian-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "dansguardian_install_status()") . "</div>\n\t</td>\n</tr>\n\n\n\n\n</tbody>\n</table>\n<script>\n\tfunction squid_install_status(){\n\t\tLoadAjaxTiny('squid-install-status','{$page}?install-status=yes&APPLI=APP_SQUID2');\n\t}\n\t\n\tfunction dansguardian_install_status(){\n\t\tLoadAjaxTiny('dansguardian-install-status','{$page}?install-status=yes&APPLI=APP_DANSGUARDIAN2');\n\t}\t\nsquid_install_status();\ndansguardian_install_status();\n</script>\n"; echo $tpl->_ENGINE_parse_body($html); }
function popup() { $sock = new sockets(); $datas = $sock->APC_GET(md5(__FILE__ . __FUNCTION__), 10); if ($datas != null) { echo $datas; return; } $table = events_table(); $html = "<H1>{artica_events}</H1>\n\t\n\t<div style='width:100%;height:500px;overflow:auto' id='articaevents'>{$table}</div>\n\t\n\t\n\t"; $tpl = new templates(); $datas = $tpl->_ENGINE_parse_body($html); $sock->APC_SAVE(md5(__FILE__ . __FUNCTION__), $html); echo $datas; }
function popup() { $sock = new sockets(); $datas = $sock->APC_GET(md5(__FILE__ . __FUNCTION__), 10); if ($datas != null) { echo $datas; return; } $page = CurrentPageName(); $tpl = new templates(); $delete_all_items = $tpl->javascript_parse_text("{delete_all_items}"); $html = "\n\t<div style='text-align:right;width:750px'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=99%><span style='font-size:16px;'>{artica_events}</span> </td>\n\t<td width=1% class=legend>{search}:</td>\n\t<td width=1%>" . Field_text("event-search", null, "font-size:14px;padding:3px;width:210px", null, null, null, false, "EventSearchCheck(event)") . "</td>\n\t<td width=1%>" . button("{submit}", "tripar()") . "</td>\n\t<td width=1% nowrap> </td>\n\t<td width=1%>" . imgtootltip("delete-24.png", "{delete_all_items}", "DeleteAllArticaEvents()") . "\n\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t\t\n\t<div style='width:100%;height:500px;width:750px;overflow:auto' id='articaevents'></div>\n\t\n\t\n\t<script>\n\t\tLoadAjax('articaevents','{$page}?events-table=yes&LockBycontext={$_GET["LockBycontext"]}');\n\t\t\n\t\tvar x_DeleteAllArticaEvents= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tLoadAjax('articaevents','{$page}?events-table=yes&LockBycontext={$_GET["LockBycontext"]}');\n\t\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\tfunction DeleteAllArticaEvents(){\n\t\t\tif(confirm('{$delete_all_items}\\n')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('delete_all_items','yes');\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_DeleteAllArticaEvents);\t\n\t\t}\n\n\t}\t\n\t\t\n\t\t\n\t\t\n\t</script>\n\t\t"; $tpl = new templates(); $datas = $tpl->_ENGINE_parse_body($html); $sock->APC_SAVE(md5(__FILE__ . __FUNCTION__), $html); echo $datas; }
function system_packages() { $sock = new sockets(); $users = new usersMenus(); $KASPERSKY_APPLIANCE = FALSE; if ($users->KASPERSKY_SMTP_APPLIANCE) { $KASPERSKY_APPLIANCE = TRUE; } if ($users->KASPERSKY_WEB_APPLIANCE) { $KASPERSKY_APPLIANCE = TRUE; } if ($users->OPENVPN_APPLIANCE) { $OPENVPN_APPLIANCE = TRUE; } $MEM_TOTAL_INSTALLEE = $users->MEM_TOTAL_INSTALLEE; $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); } $html = "\n\n<br>\n<table style='width:100%;padding:2px:margin:3px;border:1px solid #CCCCCC'>\n<tr style='background-color:#CCCCCC'>\n<td> </td>\n<td style='font-size:13px'><strong>{software}</strong></td>\n<td style='font-size:13px'><strong>{current_version}</strong></td>\n<td style='font-size:13px'><strong>{available_version}</strong></td>\n<td style='font-size:13px'> </td>\n<td style='font-size:13px'><strong>{status}</strong></td>\n</tr>"; if ($users->VMWARE_HOST) { $html = $html . BuildRows("APP_VMTOOLS", $GlobalApplicationsStatus, "VMwareTools"); } if ($users->VIRTUALBOX_HOST) { $html = $html . BuildRows("APP_VBOXADDITIONS", $GlobalApplicationsStatus, "VBoxLinuxAdditions-{$users->ArchStruct}"); } if ($users->LinuxDistriCode == 'DEBIAN' or $users->LinuxDistriCode == 'UBUNTU') { $html = $html . BuildRows("APP_OPENLDAP", $GlobalApplicationsStatus, "openldap"); } //if(!$users->AS_VPS_CLIENT){$html=$html.BuildRows("APP_MYSQL",$GlobalApplicationsStatus,"mysql-cluster-gpl");} if (!$KASPERSKY_APPLIANCE) { if ($MEM_TOTAL_INSTALLEE > 700000) { if (!$users->AS_VPS_CLIENT) { $html = $html . BuildRows("APP_LXC", $GlobalApplicationsStatus, "lxc"); } } } $html = $html . BuildRows("APP_PHPLDAPADMIN", $GlobalApplicationsStatus, "phpldapadmin"); $html = $html . BuildRows("APP_MYSQL", $GlobalApplicationsStatus, "mysql-server"); $html = $html . BuildRows("APP_PHPMYADMIN", $GlobalApplicationsStatus, "phpMyAdmin"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_GREENSQL", $GlobalApplicationsStatus, "greensql-fw"); } if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_TOMCAT", $GlobalApplicationsStatus, "apache-tomcat"); } //$html=$html.BuildRows("APP_EACCELERATOR",$GlobalApplicationsStatus,"eaccelerator"); if (!$KASPERSKY_APPLIANCE) { $html = $html . spacer('{smtp_packages}'); $html = $html . BuildRows("APP_MSMTP", $GlobalApplicationsStatus, "msmtp"); if ($MEM_TOTAL_INSTALLEE > 500000) { $html = $html . BuildRows("APP_EMAILRELAY", $GlobalApplicationsStatus, "emailrelay"); } } $html = $html . spacer('{network_softwares}'); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_DHCP", $GlobalApplicationsStatus, "dhcp"); } if (!$KASPERSKY_APPLIANCE) { if ($MEM_TOTAL_INSTALLEE > 700000) { $html = $html . BuildRows("APP_PDNS", $GlobalApplicationsStatus, "pdns"); } } if (!$KASPERSKY_APPLIANCE) { if ($MEM_TOTAL_INSTALLEE > 700000) { $html = $html . BuildRows("APP_POWERADMIN", $GlobalApplicationsStatus, "poweradmin"); } } if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_OPENVPN", $GlobalApplicationsStatus, "openvpn"); } $html = $html . BuildRows("APP_IPTACCOUNT", $GlobalApplicationsStatus, "iptaccount"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_AMACHI", $GlobalApplicationsStatus, "hamachi"); } if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_PUREFTPD", $GlobalApplicationsStatus, "pure-ftpd"); } if (!$KASPERSKY_APPLIANCE) { if (!$OPENVPN_APPLIANCE) { $html = $html . BuildRows("APP_MLDONKEY", $GlobalApplicationsStatus, "mldonkey"); } } if (!$KASPERSKY_APPLIANCE) { if (!$OPENVPN_APPLIANCE) { $html = $html . spacer('{storagebakcup_softwares}'); $html = $html . BuildRows("APP_AMANDA", $GlobalApplicationsStatus, "amanda"); $html = $html . BuildRows("APP_DROPBOX", $GlobalApplicationsStatus, "dropbox-32"); $html = $html . BuildRows("APP_FUSE", $GlobalApplicationsStatus, "fuse"); $html = $html . BuildRows("APP_ZFS_FUSE", $GlobalApplicationsStatus, "zfs-fuse"); $html = $html . BuildRows("APP_TOKYOCABINET", $GlobalApplicationsStatus, "tokyocabinet"); $html = $html . BuildRows("APP_LESSFS", $GlobalApplicationsStatus, "lessfs"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_DAR", $GlobalApplicationsStatus, "dar"); } } } if (!$KASPERSKY_APPLIANCE) { $html = $html . spacer('{secuirty_softwares}'); if ($MEM_TOTAL_INSTALLEE > 700000) { $html = $html . BuildRows("APP_CLAMAV", $GlobalApplicationsStatus, "clamav"); } $html = $html . BuildRows("APP_SNORT", $GlobalApplicationsStatus, "snort"); $html = $html . BuildRows("APP_NMAP", $GlobalApplicationsStatus, "nmap"); $html = $html . BuildRows("APP_SMARTMONTOOLS", $GlobalApplicationsStatus, "smartmontools"); if (!$OPENVPN_APPLIANCE) { $html = $html . spacer('{computers_management}'); $html = $html . BuildRows("APP_WINEXE", $GlobalApplicationsStatus, "winexe-static"); $html = $html . BuildRows("APP_OCSI", $GlobalApplicationsStatus, "OCSNG_UNIX_SERVER"); $html = $html . BuildRows("APP_OCSI2", $GlobalApplicationsStatus, "OCSNG_UNIX_SERVER2"); $html = $html . BuildRows("APP_OCSI_LINUX_CLIENT", $GlobalApplicationsStatus, "OCSNG_LINUX_AGENT"); } } if (!$KASPERSKY_APPLIANCE) { if (!$OPENVPN_APPLIANCE) { $html = $html . spacer('{xapian_packages}'); $html = $html . BuildRows("APP_XAPIAN", $GlobalApplicationsStatus, "xapian-core"); $html = $html . BuildRows("APP_XAPIAN_OMEGA", $GlobalApplicationsStatus, "xapian-omega"); $html = $html . BuildRows("APP_XAPIAN_PHP", $GlobalApplicationsStatus, "xapian-bindings"); $html = $html . BuildRows("APP_XPDF", $GlobalApplicationsStatus, "xpdf"); //$html=$html.BuildRows("APP_UNZIP",$GlobalApplicationsStatus,"unzip"); $html = $html . BuildRows("APP_UNRTF", $GlobalApplicationsStatus, "unrtf"); $html = $html . BuildRows("APP_CATDOC", $GlobalApplicationsStatus, "catdoc"); $html = $html . BuildRows("APP_ANTIWORD", $GlobalApplicationsStatus, "antiword"); } } $html = $html . "</table>"; if (posix_getuid() == 0) { file_put_contents(dirname(__FILE__) . "/ressources/logs/setup.index." . __FUNCTION__ . ".html", $html); return null; } $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function install_status() { $appname = $_GET["APPLI"]; $users = new usersMenus(); $page = CurrentPageName(); $ini = new Bs_IniHandler(); $sock = new sockets(); $tpl = new templates(); $dbg_exists = false; if (file_exists(dirname(__FILE__) . "/ressources/install/{$appname}.ini")) { $data = file_get_contents(dirname(__FILE__) . "/ressources/install/{$appname}.ini"); $ini->loadString($data); $status = $ini->_params["INSTALL"]["STATUS"]; $text_info = $ini->_params["INSTALL"]["INFO"]; if (strlen($text_info) > 0) { $text_info = "<span style='color:black;font-size:10px'>{$text_info}...</span>"; } } else { if ($appname == "APP_SQUID2") { if (file_exists(dirname(__FILE__) . "/ressources/install/APP_SQUID.ini")) { $data = file_get_contents(dirname(__FILE__) . "/ressources/install/{$appname}.ini"); $ini->loadString($data); $status = $ini->_params["INSTALL"]["STATUS"]; $text_info = $ini->_params["INSTALL"]["INFO"]; if (strlen($text_info) > 0) { $text_info = "<span style='color:black;font-size:10px'>{$text_info}...</span>"; } } } } if ($status == null) { if ($appname == "APP_SQUID2") { if (file_exists(dirname(__FILE__) . "/ressources/install/APP_SQUID.ini")) { $data = file_get_contents(dirname(__FILE__) . "/ressources/install/{$appname}.ini"); $ini->loadString($data); $status = $ini->_params["INSTALL"]["STATUS"]; $text_info = $ini->_params["INSTALL"]["INFO"]; if (strlen($text_info) > 0) { $text_info = "<span style='color:black;font-size:10px'>{$text_info}...</span>"; } } } } if ($appname == "APP_SQUID2") { $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); $GLOBALS["GlobalApplicationsStatus"] = $GlobalApplicationsStatus; } $squid_version = ParseAppli($GlobalApplicationsStatus, "APP_SQUID"); if (preg_match("#^([0-9]+)\\.([0-9]+)#", $squid_version, $re)) { $MAJOR = $re[1]; $MINOR = $re[2]; } if ($MAJOR == 3 && $MINOR == 1) { if ($users->LinuxDistriCode != "CENTOS") { $button31 = "<div style='margin-top:8px'>" . button("{install_upgrade} 3.1x", "Loadjs('setup.index.progress.php?product=APP_SQUID&start-install=yes')", 14) . "</div>"; } } } if ($status == null) { $status = 0; } if ($status == 0) { if ($appname != "APP_SQUID2") { echo $tpl->_ENGINE_parse_body("<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product={$appname}&start-install=yes')", 14) . "{$button31}</center>"); return; } else { if ($users->LinuxDistriCode != "CENTOS") { echo $tpl->_ENGINE_parse_body("<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product={$appname}&start-install=yes')", 14) . "{$button31}</center>"); } return; } } if ($status > 100) { $color = "#D32D2D"; $status = 100; $text = '{failed}'; } else { $color = "#5DD13D"; $text = $status . '%'; } if ($status == 0) { $color = "transparent"; } $pourc = pourcentage($status); $html = "\n\t<table style='width:100%'>\n\t<tbody>\n\t<tr>\n\t\t<td>{$pourc}</td>\n\t\t<td style='font-size:12px;font-weight:bold;background-color:{$color}'>{$text} {$text_info}</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t<script>\n\tLoadAjaxTiny('is31','{$page}?is31=yes');\n\t</script>\n\t"; echo $tpl->_ENGINE_parse_body($html); }
function tous_les_clients() { $sock = new sockets(); $d = $sock->APC_GET("SQUID_STATS_CLIENTS_TOT"); if ($d != null) { return unserialize($d); } $q = new mysql(); $sql = "SELECT CLIENT FROM squid_events_clients_day GROUP BY CLIENT ORDER BY CLIENT"; $results = $q->QUERY_SQL($sql, "artica_events"); while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) { $array[$ligne["CLIENT"]] = $ligne["CLIENT"]; } $sock->APC_SAVE("SQUID_STATS_CLIENTS_TOT", serialize($array)); return $array; }
function update_zoom() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $ini = new Bs_IniHandler(); $ini->loadString(@file_get_contents(dirname(__FILE__) . '/ressources/index.ini')); $users = new usersMenus(); $ArchStruct = $users->ArchStruct; if ($ArchStruct == "32") { $ArchStruct = "i386"; } if ($ArchStruct == "64") { $ArchStruct = "x64"; } $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); $GLOBALS["GlobalApplicationsStatus"] = $GlobalApplicationsStatus; } $squid_version = ParseAppli($GlobalApplicationsStatus, "APP_SQUID"); $availableversion32 = $ini->_params["NEXT"]["squid32-i386"]; $availableversion64 = $ini->_params["NEXT"]["squid32-x64"]; $availableversion_ufdbguard = $ini->_params["NEXT"]["ufdbGuard"]; $actualversion_ufdbguard = $sock->getFrameWork("squid.php?full-ufdbg-version=yes"); if ($actualversion_ufdbguard == null) { $actualversion_ufdbguard = "0.0.0"; } $availableversion_kav4proxy = $ini->_params["NEXT"]["kav4proxy"]; $actualversion_kav4proxy = ParseAppli($GlobalApplicationsStatus, "APP_KAV4PROXY"); if ($actualversion_kav4proxy == null) { $actualversion_kav4proxy = "0.0.0"; } $q = new blackboxes(); $availableversion32 = $q->last_available_squidx32_version(); $availableversion64 = $q->last_available_squidx64_version(); $html = "\n<div style='width:100%;height:650px;overflow:auto'>\n\n<table style='width:100%;margin-top:15px'>\n<tbody>\n<tr>\n\t<td valign='top' width=1%><img src='img/artica-350px.png'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_ARTICA_AGENT}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 32/64bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>" . $q->last_available_version() . "</td>\n\t\t\t\t\t</tr>\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_ARTICA_AGENT_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product=APP_ARTICA_AGENT&start-install=yes')", 14) . "</center>\n\t</td>\n</tr>\n\n\n<table style='width:100%;margin-top:15px'>\n<tbody>\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_squid.jpg'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_SQUID2}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 32bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion32}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 64bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion64}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_SQUID_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product=APP_SQUID32_REPOS&start-install=yes')", 14) . "</center>\n\t</td>\n</tr>\n\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_kav4proxy.jpg'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_KAV4PROXY}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion_kav4proxy}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion_kav4proxy}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t\t\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_KAV4PROXY_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='kav4proxy-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "kav4proxy_install_status()") . "</div>\n\t</td>\n</tr>\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_ufdbguard.png'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_UFDBGUARD}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion_ufdbguard}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion_ufdbguard}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{ufdbguard_simple_intro}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='ufdbguard-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "ufdbguard_install_status()") . "</div>\n\t</td>\n</tr>\n\n\n\n</tbody>\n</table>\n</div>\n<script>\n\n</script>\n"; echo $tpl->_ENGINE_parse_body($html); }
function system_packages() { $sock = new sockets(); $users = new usersMenus(); $KASPERSKY_APPLIANCE = FALSE; if ($users->KASPERSKY_SMTP_APPLIANCE) { $KASPERSKY_APPLIANCE = TRUE; } if ($users->KASPERSKY_WEB_APPLIANCE) { $KASPERSKY_APPLIANCE = TRUE; } $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); } $html = "\n\n<br>\n<table style='width:100%;padding:2px:margin:3px;border:1px solid #CCCCCC'>\n<tr style='background-color:#CCCCCC'>\n<td> </td>\n<td style='font-size:13px'><strong>{software}</strong></td>\n<td style='font-size:13px'><strong>{current_version}</strong></td>\n<td style='font-size:13px'><strong>{available_version}</strong></td>\n<td style='font-size:13px'> </td>\n<td style='font-size:13px'><strong>{status}</strong></td>\n</tr>"; if ($users->VMWARE_HOST) { $html = $html . BuildRows("APP_VMTOOLS", $GlobalApplicationsStatus, "VMwareTools"); } $html = $html . BuildRows("APP_MYSQL", $GlobalApplicationsStatus, "mysql-cluster-gpl"); $html = $html . BuildRows("APP_PDNS", $GlobalApplicationsStatus, "pdns"); //$html=$html.BuildRows("APP_EACCELERATOR",$GlobalApplicationsStatus,"eaccelerator"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_DAR", $GlobalApplicationsStatus, "dar"); } $html = $html . BuildRows("APP_MSMTP", $GlobalApplicationsStatus, "msmtp"); $html = $html . BuildRows("APP_EMAILRELAY", $GlobalApplicationsStatus, "emailrelay"); $html = $html . BuildRows("APP_OCSI_LINUX_CLIENT", $GlobalApplicationsStatus, "OCSNG_LINUX_AGENT"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_PUREFTPD", $GlobalApplicationsStatus, "pure-ftpd"); } $html = $html . BuildRows("APP_SMARTMONTOOLS", $GlobalApplicationsStatus, "smartmontools"); $html = $html . BuildRows("APP_PHPLDAPADMIN", $GlobalApplicationsStatus, "phpldapadmin"); $html = $html . BuildRows("APP_PHPMYADMIN", $GlobalApplicationsStatus, "phpMyAdmin"); if (!$KASPERSKY_APPLIANCE) { $html = $html . BuildRows("APP_CLAMAV", $GlobalApplicationsStatus, "clamav"); $html = $html . BuildRows("APP_AMACHI", $GlobalApplicationsStatus, "hamachi"); $html = $html . BuildRows("APP_MLDONKEY", $GlobalApplicationsStatus, "mldonkey"); $html = $html . spacer('{computers_management}'); $html = $html . BuildRows("APP_NMAP", $GlobalApplicationsStatus, "nmap"); $html = $html . BuildRows("APP_WINEXE", $GlobalApplicationsStatus, "winexe-static"); $html = $html . BuildRows("APP_OCSI", $GlobalApplicationsStatus, "OCSNG_UNIX_SERVER"); } if (!$KASPERSKY_APPLIANCE) { $html = $html . spacer('{xapian_packages}'); $html = $html . BuildRows("APP_XAPIAN", $GlobalApplicationsStatus, "xapian-core"); $html = $html . BuildRows("APP_XAPIAN_OMEGA", $GlobalApplicationsStatus, "xapian-omega"); $html = $html . BuildRows("APP_XAPIAN_PHP", $GlobalApplicationsStatus, "xapian-bindings"); $html = $html . BuildRows("APP_XPDF", $GlobalApplicationsStatus, "xpdf"); //$html=$html.BuildRows("APP_UNZIP",$GlobalApplicationsStatus,"unzip"); $html = $html . BuildRows("APP_UNRTF", $GlobalApplicationsStatus, "unrtf"); $html = $html . BuildRows("APP_CATDOC", $GlobalApplicationsStatus, "catdoc"); $html = $html . BuildRows("APP_ANTIWORD", $GlobalApplicationsStatus, "antiword"); } $html = $html . "</table>"; if (posix_getuid() == 0) { file_put_contents(dirname(__FILE__) . "/ressources/logs/setup.index." . __FUNCTION__ . ".html", $html); return null; } $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }