示例#1
0
function main_page(){
	if(isset($_SESSION["$key_cache"])){return $_SESSION["$key_cache"];}
	$clamav=clamav();
	$kaspersky=kaspersky();
	$fetchmail=fetchmail();
	$samba1=samba_domain();
	$system_links=icon_system();
	$samab=samba_links();
	$applis=applis();
	$K=statkaspersky();
	$sysinfos=sysinfos();
	$cert=certificate();
	$ar_perf=atica_perf();
	$apt=apt();
	$sock=new sockets();
	$backup=incremental_backup();
	$firstsettings=FirstWizard();
	$wizard_postmaster=postmaster();
	$Postfix_links=Postfix_links();
	$button_messaging=button_messaging();
	$users=new usersMenus();
	$icon_events=icon_events();
	$nic_settings=nic_settings();
	$icon_memory=icon_memory();
	$icon_view_queue=icon_view_queue();
	$icon_amavis=icon_amavisdnew();
	$icon_openvpn=icon_openvpn();
	$icon_adduser=icon_adduser();
	$scancomputers=scancomputers();
	$icon_harddrive=icon_harddrive();
	$postfix_events=postfix_events();
	$postfix_reports=postfix_reports();
	$icon_troubleshoot=icon_troubleshoot();
	$icon_update_clamav=icon_update_clamav();
	$dmidecode=dmidecode();
	$external_ports=icon_externalports();
	$icon_update_artica=icon_update_artica();
	$icon_update_spamassassin_blacklist=icon_update_spamassassin_blacklist();
	$sharenfs=sharenfs();
	$clientnfs=clientnfs();
	$wizard_kasperAPPSMTP=wizard_kaspersky_appliance_smtp();
	$wizard_backup=wizard_backup();
	
	if(!$users->POSTFIX_INSTALLED){$button_messaging=null;}
	
	if($users->KASPERSKY_SMTP_APPLIANCE){
		$clamav=null;
		$icon_amavis=null;
		$icon_update_spamassassin_blacklist=null;
		}
	
	
if($_COOKIE["configure_your-server-tab"]==null){$_COOKIE["configure_your-server-tab"]="section_system";}
$form_display["section_system"]="none";
$form_display["section_apps"]="none";
$form_display["section_security"]="none";
$form_display["section_wizard"]="none";
$form_display["section_messaging"]="none";
$form_display[$_COOKIE["configure_your-server-tab"]]="block";


	
	
	$form_system="
	<div id='section_system' style='display:{$form_display["section_system"]};width:100%;height:300px;overflow:auto'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$sysinfos$ar_perf$icon_events$icon_openvpn$scancomputers$sharenfs$clientnfs
			</td>
			<td valign='top'>
				$system_links$nic_settings$icon_memory$icon_harddrive$dmidecode$icon_adduser</td>
		</tr>
		</table>
	</div>
	";
	
	$form_apps="
		<div id='section_apps' style='display:{$form_display["section_apps"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$applis$apt
			</td>
			<td valign='top' width=1%>$icon_update_clamav$icon_update_spamassassin_blacklist$icon_update_artica</td>
		</tr>
		</table>
	</div>
	";
	
	$form_security="
		<div id='section_security' style='display:{$form_display["section_security"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$kaspersky$K$clamav$icon_troubleshoot
			</td>
			<td valign='top' width=1%>
			$cert$external_ports$backup
			</td>
		</tr>
		</table>
	</div>
	";	
	
	$form_wizard="
		<div id='section_wizard' style='display:{$form_display["section_wizard"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$wizard_kasperAPPSMTP$firstsettings$wizard_postmaster$icon_adduser
			</td>
			<td valign='top' width=1%>
			$wizard_backup$samab$samba1
			</td>
		</tr>
		</table>
	</div>
	";		
	
$section_messaging="<div id='section_messaging' style='display:{$form_display["section_messaging"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$Postfix_links
			</td>
			<td valign='top' width=1%>
				$icon_view_queue$icon_amavis$postfix_events$postfix_reports
			</td>
		</tr>
		</table>
	</div>
	";		
	

$buttons=button_system().button_apps().button_security().button_wizard().$button_messaging;
$buttons=RoundedLightWhite($buttons);



$html="
<table style='width:100%;style='margin:-2px;'>
<tr>
<td valign='top' style='background-color:#005446;padding:3px;'>
	$buttons
</td>
<td valign='top' style='padding:3px;'><div style='width:510px'>".RoundedLightWhite($form_system.$form_apps.$form_security.$form_wizard.$section_messaging)."</div>
</td>
</tr>
</table>
";


	$_SESSION["$key_cache"]=$html;
	return $html;
}
示例#2
0
function postfix_plugins_main_mailbox()
{
    $sock = new sockets();
    $users = new usersMenus();
    $conf = $sock->getfile('daemons_status');
    $ini = new Bs_IniHandler();
    $ini->loadString($conf);
    $tab = main_tabs_glob();
    $html = "{$tab}\n\t<table style='width:100%'>\n\t<tr>\n\t\t<th style='text-align:center' width=1% nowrap>{module_name}</th>\n\t\t<th style='text-align:center' width=1%>{enabled}</th>\n\t\t<th style='text-align:center'>{module_features}</th>\n\t</tr>";
    $html = $html . fetchmail($ini->_params);
    $html = $html . fdm($ini->_params);
    $html = $html . MimeDefang($ini->_params);
    $html = $html . P3scan($ini->_params);
    //$html=$html . Sqlgrey($ini->_params);
    $html = $html . Amavis($ini->_params);
    $html = $html . "</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
示例#3
0
    exit;
}
if ($argv[1] == "--auth-tail") {
    auth_tail();
    exit;
}
if ($argv[1] == "--roundcube") {
    roundcube_http();
    exit;
}
if ($argv[1] == "--spawnfcgi") {
    spawnfcgi();
    exit;
}
if ($argv[1] == "--fetchmail") {
    fetchmail();
    exit;
}
if ($argv[1] == "--pdns") {
    pdns();
    exit;
}
if ($argv[1] == "--snmpd") {
    snmpd();
    exit;
}
if ($argv[1] == "--stunnel") {
    stunnel();
    exit;
}
if ($argv[1] == "--iscsi") {
示例#4
0
$mem=round(((memory_get_usage()/1024)/1000),2);events("{$mem}MB after declarations","MAIN",__LINE__);

if(strlen($argv[1])>2){events("parsing command line {$argv[1]}","MAIN",__LINE__);}

if($argv[1]=="--all"){
	events("-> launch_all_status()","MAIN",__LINE__);
	launch_all_status();
	die();
}
if($argv[1]=="--free"){echo getmem();exit;}
if($argv[1]=="--squid"){echo squid_master_status();exit;}
if($argv[1]=="--c-icap"){echo c_icap_master_status();exit;}
if($argv[1]=="--kav4proxy"){echo kav4Proxy_status();exit;}
if($argv[1]=="--dansguardian"){echo dansguardian_master_status();exit;}
if($argv[1]=="--wifi"){echo wpa_supplicant();;exit;}
if($argv[1]=="--fetchmail"){echo fetchmail();;exit;}
if($argv[1]=="--milter-greylist"){echo milter_greylist();;exit;}
if($argv[1]=="--framework"){echo framework();;exit;}
if($argv[1]=="--pdns"){echo pdns_server()."\n".pdns_recursor();exit;}
if($argv[1]=="--cyrus-imap"){echo cyrus_imap();exit;}
if($argv[1]=="--mysql"){echo "\n".mysql_server()."\n".mysql_mgmt()."\n". mysql_replica();exit;}
if($argv[1]=="--openldap"){echo "\n".openldap();;exit;}
if($argv[1]=="--saslauthd"){echo "\n".saslauthd();;exit;}
if($argv[1]=="--sysloger"){echo "\n".syslogger();;exit;}
if($argv[1]=="--squid-tail"){echo "\n".squid_tail();;exit;}
if($argv[1]=="--amavis"){echo "\n".amavis();exit;}
if($argv[1]=="--amavis-milter"){echo"\n". amavis_milter();exit;}
if($argv[1]=="--boa"){echo"\n". boa();exit;}
if($argv[1]=="--lighttpd"){echo"\n". lighttpd();exit;}
if($argv[1]=="--fcron"){echo"\n". fcron1()."\n".fcron2(); exit;}
if($argv[1]=="--clamav"){echo"\n". clamd()."\n".clamscan()."\n".clammilter()."\n".freshclam(); exit;}
示例#5
0
    exit;
}
if ($argv[1] == "--kav4proxy") {
    echo kav4Proxy_status();
    exit;
}
if ($argv[1] == "--dansguardian") {
    echo dansguardian_master_status();
    exit;
}
if ($argv[1] == "--wifi") {
    echo wpa_supplicant();
    exit;
}
if ($argv[1] == "--fetchmail") {
    echo fetchmail();
    exit;
}
if ($argv[1] == "--milter-greylist") {
    echo milter_greylist();
    exit;
}
if ($argv[1] == "--framework") {
    echo framework();
    exit;
}
if ($argv[1] == "--pdns") {
    echo pdns_server() . "\n" . pdns_recursor();
    exit;
}
if ($argv[1] == "--cyrus-imap") {