コード例 #1
0
ファイル: configure.server.php プロジェクト: rsd/artica-1.5
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 section_computers_infos()
{
    $tr[] = sysinfos();
    $tr[] = icon_system();
    $tr[] = icon_memory();
    $tr[] = icon_harddrive();
    $tr[] = icon_adduser();
    $tr[] = scancomputers();
    $tables[] = "<table style='width:100%' class=form><tr>";
    $t = 0;
    while (list($key, $line) = each($tr)) {
        $line = trim($line);
        if ($line == null) {
            continue;
        }
        $t = $t + 1;
        $tables[] = "<td valign='top'>{$line}</td>";
        if ($t == 2) {
            $t = 0;
            $tables[] = "</tr><tr>";
        }
    }
    if ($t < 2) {
        for ($i = 0; $i <= $t; $i++) {
            $tables[] = "<td valign='top'>&nbsp;</td>";
        }
    }
    $links = @implode("\n", $tables);
    $heads = section_computer_header();
    $html = "\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>{$heads}</td>\n\t<td valign='top'>{$links}</td>\n</tr>\n</table>\n";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #3
0
ファイル: quicklinks.php プロジェクト: brucewu16899/1.6.x
function section_computers_infos_OS_2()
{
    $page = CurrentPageName();
    if (CACHE_SESSION_GET(__FUNCTION__, __FILE__, 120)) {
        return;
    }
    $users = new usersMenus();
    $syslog = Paragraphe("syslog-64.png", "{system_log}", "{system_log_text}", "javascript:Loadjs('syslog.engine.php?windows=yes');");
    $dmesg = Paragraphe("syslog-64.png", "{kernel_infos}", "{kernel_infos_text}", "javascript:Loadjs('syslog.dmesg.php?windows=yes');");
    $clock = Paragraphe("clock-gold-64.png", "{server_time2}", "{server_time2_text}", "javascript:Loadjs('index.time.php?settings=yes');");
    if ($users->autofs_installed) {
        $automount = Paragraphe("magneto-64.png", "{automount_center}", "{automount_center_text}", "javascript:Loadjs('autofs.php?windows=yes');");
    }
    $movefilestsem = Paragraphe("folder-move-64.png", "{move_filesystem}", "{move_filesystem_text}", "javascript:Loadjs('system.move.php');");
    $tr[] = sysinfos();
    $tr[] = icon_system();
    $tr[] = icon_memory();
    $tr[] = icon_harddrive();
    $tr[] = $automount;
    $tr[] = $movefilestsem;
    $tr[] = $clock;
    $tr[] = icon_terminal();
    $tr[] = $snmp;
    $tr[] = $syslog;
    $tr[] = $dmesg;
    $tr[] = scancomputers();
    $links = CompileTr2($tr);
    $t = time();
    $html = "\n<table style='width:100%'>\n<tr>\n\t<td valign='top'><span id='{$t}'></span></td>\n\t<td valign='top'>{$links}</td>\n</tr>\n</table>\n<script>\n\tQuickLinkShow('quicklinks-system_information');\n\tLoadAjax('{$t}','{$page}?function=section_computer_header',true);\n</script>\n";
    $tpl = new templates();
    CACHE_SESSION_SET(__FUNCTION__, __FILE__, $tpl->_ENGINE_parse_body($html));
}
コード例 #4
0
function section_computers_infos_OS(){
	$page=CurrentPageName();
	if(CACHE_SESSION_GET( __FUNCTION__,__FILE__,120)){return;}
	$syslog=Paragraphe("syslog-64.png","{system_log}","{system_log_text}","javascript:Loadjs('syslog.engine.php?windows=yes');");
	$dmesg=Paragraphe("syslog-64.png","{kernel_infos}","{kernel_infos_text}","javascript:Loadjs('syslog.dmesg.php?windows=yes');");
	$articacron=Paragraphe("folder-tasks-64.png","{internal_scheduler}","{internal_scheduler_text}","javascript:Loadjs('artica.internal.cron.php');");
	
	
	$tr[]=sysinfos();
	$tr[]=icon_system();
	$tr[]=icon_memory();
	$tr[]=icon_harddrive();
	$tr[]=icon_terminal();
	$tr[]=$syslog;
	$tr[]=$dmesg;
	$tr[]=$articacron;
	$tr[]=scancomputers();
	


$links=CompileTr2($tr);
$t=time();
$html="
<table style='width:100%'>
<tr>
	<td valign='top'><span id='$t'></span></td>
	<td valign='top'>$links</td>
</tr>
</table>
<script>
	QuickLinkShow('quicklinks-system_information');
	LoadAjax('$t','$page?function=section_computer_header');
</script>
";

	$tpl=new templates();
	CACHE_SESSION_SET(__FUNCTION__,__FILE__, $tpl->_ENGINE_parse_body($html));
	
}