function main_index() { $users = new usersMenus(); if ($users->SAMBA_INSTALLED) { $samba = "\n\t<H3>{APP_SAMBA} V{$users->SAMBA_VERSION}</H3>\n\t<hr>\n\t<div id='samba_status'></div>\n\t<script>\n\t\tLoadAjax('samba_status','samba.index.php?status=yes');\n\t</script>\n\t"; } if ($users->PUREFTP_INSTALLED) { $pure = "\n\t<H3>{APP_PUREFTPD}</H3>\n\t<hr>\n\t" . pureftpd_status(); } $pure = $pure . "<br>\n<H3>{APP_RSYNC}</H3><hr>\n" . rsync_status(); $html = "<H1>{fileshare}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$samba}</td>\n\t\t<td valign='top'>{$pure}</td>\n\t</tr>\n\t</table>\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
if (isset($_GET["update-clamav"])) { ClamavUpdate(); exit; } //reports if (isset($_GET["pdf-quarantine-cron"])) { reports_build_quarantine_cron(); exit; } if (isset($_GET["pdf-quarantine-send"])) { reports_build_quarantine_send(); exit; } //pure-ftpd if (isset($_GET["pure-ftpd-status"])) { pureftpd_status(); exit; } //amavis restart if (isset($_GET["amavis-restart"])) { RestartAmavis(); exit; } if (isset($_GET["amavis-get-events"])) { amavis_get_events(); exit; } if (isset($_GET["amavis-configuration-file"])) { amavis_get_config(); exit; }
//clamav if(isset($_GET["update-clamav"])){ClamavUpdate();exit;} if(isset($_GET["clamd-restart"])){clamd_restart();exit;} if(isset($_GET["clamav-av-pattern-status"])){clamd_pattern_status();exit;} if(isset($_GET["clamd-reload"])){clamd_reload();exit;} //reports if(isset($_GET["pdf-quarantine-cron"])){reports_build_quarantine_cron();exit;} if(isset($_GET["pdf-quarantine-send"])){reports_build_quarantine_send();exit;} //pure-ftpd if(isset($_GET["pure-ftpd-status"])){pureftpd_status();exit;} if(isset($_GET["pure-ftpd-restart"])){pureftpd_restart();exit;} if(isset($_GET["pure-ftpd-users"])){pureftpd_users();exit;} //NFS if(isset($_GET["reload-nfs"])){NFS_RELOAD();exit;} //amavis restart if(isset($_GET["amavis-restart"])){RestartAmavis();exit;} if(isset($_GET["amavis-get-events"])){amavis_get_events();exit;} if(isset($_GET["amavis-configuration-file"])){amavis_get_config();exit;} if(isset($_GET["amavis-get-status"])){amavis_get_status();exit;} if(isset($_GET["amavis-template-load"])){amavis_get_template();exit;}