Exemple #1
0
function popup()
{
    echo main_tabs();
    exit;
    $html = "\n\t\n\n\t<p class=caption>{ntp_about}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Paragraphe('connection-add-64.png', '{add_title_server}', '{add_text_server}', "javascript:ntpdAdd();", 'add_title_server') . "</td>\n\t<td valign='top'><div id='ntpd_services_status'></div><br></td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'><br>\n\t\t\t<div id='ntpd_main_config'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function main_switch()
{
    $md = md5(date('Ymdhis'));
    $mime = new mimedefang();
    $html = main_tabs() . "\n\t<input type='hidden' name='selected' id='selected' value='{$_GET["main"]}'>\n\t<br><H5>{{$_GET["main"]}} {statistics}";
    while (list($num, $ligne) = each($mime->graph_array)) {
        if (preg_match("#{$_GET["main"]}#", $ligne)) {
            $html = $html . "\n\t\t\t<div style='border:1px dotted #CCCCCC;margin:4px'><img src='images.listener.php?uri=graphdefang/{$ligne}&md={$md}'></div>\n\t\t\t\n\t\t\t";
        }
    }
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function popup(){
	
	$html="
	<input type='hidden' id='filterby' value='{$_GET["filterby"]}'>
	<div id='myfilter' style='width:370px;padding:3px;border:0px dotted #CCCCCC;text-align:right;margin-left:350px'>".filter(true)."</div>

	
	
</td>
</tr>
</table>	
	". main_tabs()."
	<br>
	<div id=events></div>";
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
}
function folders_list()
{
    $hard = new harddrive();
    $hard->BuildSizes();
    $html = "<table style='width:100%'>";
    if (is_array($hard->main_array["folders_list"])) {
        reset($hard->main_array["folders_list"]);
        while (list($num, $ligne) = each($hard->main_array["folders_list"])) {
            $id = md5($ligne);
            $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text($id, $ligne) . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:SaveFolderList({$num},'{$id}');\" value='{apply}&nbsp;&raquo;'></td>\n\t\t\t<td>" . imgtootltip('x.gif', '{delete}', "DeleteFolderList({$num})") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
        }
    }
    $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text('addfodler') . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:AddFolderList();\" value='{add}&nbsp;&raquo;'></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    $html = $html . "</table>";
    $html = main_tabs() . "<br><h5>{parameters}</h5><br><p class=caption>{parameters_text}</p>" . RoundedLightGrey($html);
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
function main_script()
{
    $page = CurrentPageName();
    $mailfromd = new mailfromd();
    $html = main_tabs() . "\n\t<form name='ffm1'>\n\t<input type='hidden' name='UserUpdated' value='1'>\n\t<H5>{script}</H5>\n\t<br>\n\t<textarea style='margin:10px;font-size:12px;padding:10px;border:1px dotted #CCCCCC;width:100%;height:440px;background-image:none' name='MailFromdUserScript'>{$mailfromd->MailFromdUserScript}</textarea>\n\t<br>\n\t<div style='text-align:right;width:100%'><input type='button' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\" value='{edit}&nbsp;&raquo;&raquo;'></div>\n\t</form>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemple #6
0
function popup()
{
    echo main_tabs();
}
Exemple #7
0
function main_configfile()
{
    $users = new usersMenus();
    if ($_GET["hostname"] == null) {
        $hostname = $users->hostname;
    } else {
        $hostname = $_GET["hostname"];
    }
    $dans = new dansguardian($hostname);
    $conf = $dans->BuildConfig();
    $table = explode("\n", $conf);
    $html = main_tabs() . "\n\t\n\t<br>\n\t<div style='padding:5px;margin:5px'>\n\t<table style='width:100%'>\n\t\n\t";
    while (list($num, $val) = each($table)) {
        $html = $html . "<tr><td width=1% style='background-color:#CCCCCCC'><strong>{$num}</strong></td><td width=99%'><code>{$val}</code></td></tr>";
    }
    $html = $html . "</table>\n\t\n\t</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function main_logs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = main_tabs() . "\n\t<H5>{events}</H5>\n\t<iframe src='miltergreylist.events.php' style='width:100%;height:500px;border:0px'></iframe>";
    echo $tpl->_ENGINE_parse_body($html);
}
Exemple #9
0
function popup_index()
{
    echo main_tabs();
}
Exemple #10
0
function popup_index()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return;
    }
    $page = CurrentPageName();
    $html = main_tabs();
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
Exemple #11
0
function ajax_pop()
{
    echo main_tabs();
}
Exemple #12
0
function main_config()
{
    $bind = new bind9();
    $datas = $bind->NamedConf;
    $datas = htmlentities($datas);
    $datas = explode("\n", $datas);
    while (list($num, $ligne) = each($datas)) {
        if (trim($ligne) != null) {
            $ligne = str_replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $ligne);
            $conf = $conf . "<div><code style='font-size:10px'>{$ligne}</div>\n";
        }
    }
    $tab = main_tabs();
    $html = "{$tab}<H3>{config_file}</H3>{$conf}";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function main_share_retranslation()
{
    $page = CurrentPageName();
    $html = main_tabs() . "\n\n<H5>{share_retranslation}</h5>\n<table style='width:100%'>\n<tr>\n<td valign='top' width=70%>\n<p class=caption>{share_retranslation_text}</p>\n<div style='text-align:right'><input type='button' OnCLick=\"javascript:Loadjs('{$page}?jsscript=addshare')\" value='{add_share_folder}&nbsp;&raquo;'></div>\n<br>\n" . RoundedLightGrey("<H3>{shares_list}</H3><hr><div id='share_list'>" . main_share_retranslation_list() . "</div>") . "\n</td>\n<td valign='top' width=30%>\n<div id='dar_status'>" . dar_status() . "</div>" . main_share_retranslation_issmbmount() . "<br>\n<div id='networks_shares'>" . main_share_retranslation_list_shares() . "</div>\n\n</td>\n</table>\n<table style='width:100%'>\n</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemple #14
0
function blacklist(){
	$ldap=new clladp();
	
	$domain=$ldap->hash_get_all_domains();
	if(!is_array($domain)){return null;}
	
	while (list ($num, $line) = each ($domain)){
		$html=$html . blacklistdom($num);
		
		
	}
	$page=main_tabs () . "<br>" . RoundedLightGreen("
		<table style='width:99%'>
			<tr>
			<td><strong>{from}:</td>
			<td>" . Field_text('wlfrom',$_GET["whitelist"],'width:120px',
			null,null,null,false,"AddblwformCheck(1,event)") ."</td>
			<td><strong>{recipient}:</td>
			<td>" . Field_text('wlto',$_GET["recipient"],'width:120px',
			null,null,null,false,"AddblwformCheck(1,event)") ."</td>
			<td align='right'><input type='button' OnClick=\"javascript:Addblwform(1);\" value='{add}&nbsp;&raquo;'></td>
			</tr>
		</table>")."
	<br>	
	
	
	$html";
	
	$tpl=new templates();
	return $tpl->_ENGINE_parse_body($page);
	
}
Exemple #15
0
function main_conf(){
	
	$master=new master_cf();
	$datas=$master->Build();
	
$html="<H1>master.cf</h1>".main_tabs()."
	<div style='text-align:right'><input type='button' value='{rebuild_configuration}&nbsp;&raquo;' OnClick=\"javascript:RebuildMaster();\"></div>
	<textarea style='width:100%;height:350px'>$datas</textarea>
	";
	
$tpl=new templates();
return $tpl->_ENGINE_parse_body($html);	
	
	
	
}
Exemple #16
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.postfix-multi.inc');
	include_once('ressources/class.kas-filter.inc');
	
	
	
	
$users=new usersMenus();
$tpl=new templates();
if(!$users->AsOrgPostfixAdministrator){
		echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
		die();
	}
	
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["popup"])){main_tabs();exit;}
	if(isset($_GET["ACTION_SPAM_MODE"])){SAVE();exit;}
	if(isset($_GET["OPT_FILTRATION_ON"])){SAVE();exit;}
	if(isset($_GET["OPT_SPAM_RATE_LIMIT"])){SAVE();exit;}
	if(isset($_GET["apply-config"])){APPLY();exit;}
	
	
js();

function js(){
		
	$ou=base64_decode($_GET["ou"]);
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_KAS3}:: => '.$ou,"user.kas.php");
	
function main_today(){
	$today=date('Y-m-d');
	$yesterday=date("Y-m-d",mktime(0,0,0,date("m") ,date("d")-1,date("Y")));
	$mysql=new mysql();
	$query_aliases=query_aliases();
	$search_pattern=$_GET["search"];
	if(!isset($_GET["section"])){$_GET["section"]='today';}
	if(!isset($_GET["page"])){$_GET["page"]=0;}
	$limit_start=$_GET["page"]*50;
	
	
	if(strlen($search_pattern)>0){
		$search_patternq="AND MATCH (MessageBody) AGAINST ('".addslashes($search_pattern)."') >0";
		}

	
	
	
	$sql="SELECT count(*) as tcount FROM quarantine,storage_recipients WHERE 
		`quarantine`.MessageID=storage_recipients.MessageID 
		 $todate 
		 AND (".query_aliases().")
		 $search_patternq";
	
	$ligne=mysql_fetch_array($mysql->QUERY_SQL($sql,'artica_backup'));
	$messages_number=$ligne["tcount"];
	$pagenumber=round($messages_number/50);
	
	for($i=0;$i<=$pagenumber;$i++){
		$array[$i]="{page}&nbsp;" .($i+1);
	}
	
	
	$sql="SELECT 
		`quarantine`.MessageID,
		`quarantine`.subject,
		mailfrom,
		DATE_FORMAT(`quarantine`.zDate,'%H:%I:%S') AS time 
		$date_plus
		FROM `quarantine`,storage_recipients WHERE 
		`quarantine`.MessageID=storage_recipients.MessageID 
		$todate
		$search_patternq
		AND (".query_aliases().") 
		ORDER BY zDate DESC LIMIT $limit_start,50";
	
	
	
	$html=$html ."<br>
	<input type='hidden' id='search_intro' value='{search_intro}'>
	<input type='hidden' id='section' value='{$_GET["section"]}'>
	<input type='hidden' id='Search' value='{$_GET["search"]}'>
	<input type='hidden' id='main' value='{$_GET["main"]}'>
	<table style='width:100%'>
	<tr><td><strong style='font-size:12px'>$messages_number emails</td>
	<td align='right'><strong>{go_to_page}:</strong></td>
	<td width=1%>" . Field_array_Hash($array,'page',$_GET["page"],"quarantine_showpage()",null,0,'width:90px')."</td>
	</table>
	<table style='width:100%'>";
	
	
		$results=$mysql->QUERY_SQL($sql,'artica_backup');
		while($ligne=@mysql_fetch_array($results,MYSQL_ASSOC)){
			if(isset($ligne["WeekDay"])){$weekday="<i>{$ligne["WeekDay"]}</i>&nbsp;";}
			$html=$html  . "
				<tr " . CellRollOver("ShowMessage('{$ligne["MessageID"]}')","{view_message}").">
					<td width=1%><img src='img/fw_bold.gif'></td>
					<td>$weekday{$ligne["time"]}</td>
					<td>{$ligne["mailfrom"]}</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td colspan=2 style='margin-bottom:3px;border-bottom:1px dotted #CCCCCC;padding-bottom:3px'>
						<strong>{$ligne["subject"]}</strong>
					</td>
				</tr>";
					
			}
			
		$html=$html . "</table>";
		
		$page=main_tabs().$html;
		$tpl=new templates();
		echo $tpl->_ENGINE_parse_body($page);
	
}	
Exemple #18
0
function page_index_status()
{
    $tabs = main_tabs();
    $squid = new squid($_GET["hostname"]);
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $ini->loadString(base64_decode($sock->getFrameWork('cmd.php?squid-ini-status=yes')));
    $tpl = new templates();
    //echo "<H1>ouou</H1>";
    $squid_status = DAEMON_STATUS_ROUND("SQUID", $ini, null, 1);
    $dansguardian_status = DAEMON_STATUS_LINE("DANSGUARDIAN", $ini, null, 1);
    $kav = DAEMON_STATUS_LINE("KAV4PROXY", $ini, null, 1);
    $cicap = DAEMON_STATUS_LINE("C-ICAP", $ini, null, 1);
    $proxy_pac = DAEMON_STATUS_LINE("APP_PROXY_PAC", $ini, null, 1);
    $md = md5(date('Ymhis'));
    $squid = new squidbee();
    if (count($squid->network_array) == 0) {
        $net = Paragraphe("warning64.png", "{no_squid_network}", "{no_squid_network_text}", "javascript:Loadjs('squid.popups.php?script=network')", null, 350);
        echo $tpl->_ENGINE_parse_body($net);
        return;
    }
    if ($dansguardian_status != null) {
        $dansguardian_status = "<tr><td valign='top'>{$dansguardian_status}</td></tr>";
    }
    if ($kav != null) {
        $kav = "<tr><td valign='top'>{$kav}</td></tr>";
    }
    if ($cicap != null) {
        $cicap = "<tr><td valign='top'>{$cicap}</td></tr>";
    }
    if ($proxy_pac != null) {
        $proxy_pac = "<tr><td valign='top'>{$proxy_pac}</td></tr>";
    }
    $html = "\n\t<table style='width=99%'>'\n\t<tr>\n\t<td valign='top'><img src='img/crion-128.png'></td>\n\t<td valign='top'>\n\t<table style='width:99%'>\n\t\t<tr><td valign='top'>{$squid_status}</td></tr>\n\t\t{$kav}\n\t\t{$cicap}\n\t\t{$dansguardian_status}\n\t\t{$proxy_pac}\n\t</table>\n\t</td>\n\t</tr>\n\t</table>\t\n\t";
    echo $tpl->_parse_body($html);
}
function popup_index()
{
    $html = main_tabs();
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function main_license()
{
    $sock = new sockets();
    $license_data = $sock->getfile('kav4proxy_license');
    $license_data = htmlentities($license_data);
    $license_data = nl2br($license_data);
    $license_data = str_replace("<br />\n<br />", "<br />", $license_data);
    $license_data = str_replace("License info:", "<strong style='font-size:12px'>License info:</strong>", $license_data);
    $license_data = str_replace("Active key info:", "<strong style='font-size:12px'>Active key info:</strong>", $license_data);
    $license_data = str_replace("Expiration date", "<strong style='color:red'>Expiration date</strong>", $license_data);
    $license_data = str_replace("Kaspersky license manager for Linux", "<H6 style='margin-top:0px'>Kaspersky license manager for Linux</H6>", $license_data);
    $license_data = RoundedLightGreen($license_data);
    $add_key = $html = main_tabs() . "<br>\n\t<form name='ffm1'>\n\t<H5>{licenseproxy}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t<div id='license_data'>\t\n\t{$license_data}\n\t</div>\n\t</td>\n\t<td valign='top'>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>" . Paragraphe('add-key-64.png', '{add_a_license}', '{add_a_license_text}', "javascript:kav4proxy_add_key()") . "</td>\n\t</tr>\n\t</table>") . "<br>\n\t\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>" . Paragraphe('shopping-cart-64.png', '{by_a_license}', '{by_a_license_text}', "javascript:MyHref(\"http://www.kaspersky.com/buy_kaspersky_security_internet_gateway\")") . "</td>\n\t</tr>\n\t</table>") . "<br>\n\t\n\t</td>\n\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'milter.index.php');
}
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.mimedefang.inc';
$user = new usersMenus();
if ($user->AsPostfixAdministrator == false) {
    header('location:users.index.php');
    exit;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["popup"])) {
    echo main_tabs();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{APP_KAS3} ({statistics})");
    $html = "\n\t\tfunction APP_KAS3_STATS_SHOW(){\n\t\t\tYahooWin(780,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\t\n\tAPP_KAS3_STATS_SHOW();";
    echo $html;
}
function main_page()
{
    $html = "\n<script language=\"JavaScript\">       \nvar timerID  = null;\nvar timerID1  = null;\nvar tant=0;\nvar reste=0;\n\nfunction demarre(){\n   tant = tant+1;\n   reste=10-tant;\n\tif (tant < 10 ) {                           \n      timerID = setTimeout(\"demarre()\",5000);\n      } else {\n               tant = 0;\n               //document.getElementById('wait').innerHTML='<img src=img/wait.gif>';\n               ChargeLogs();\n               demarre();                                //la boucle demarre !\n   }\n}\n\n\nfunction ChargeLogs(){\n\tvar selected=document.getElementById('selected').value;\n\tLoadAjax('main_config','{$page}?main='+selected);\n\t}\n</script>\t\n<div id='main_config'></div>\n\n<script>demarre();LoadAjax('main_config','{$page}?main=hourly');</script>\n\t\n\t";
    $cfg["JS"][] = 'js/mimedefang.js';
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");
	
	
}
Exemple #23
0
function main_configfile(){
$users=new usersMenus();
	if($_GET["hostname"]==null){$hostname=$users->hostname;}else{$hostname=$_GET["hostname"];}
	$squid=new squid($hostname);
	$squid->BuildConfig();
	$squid->SaveToLdap();
	$conf=$squid->squid_conf;
	$table=explode("\n",$conf);
	
	$html=
	main_tabs() . "
	
	<br>
	<div style='padding:5px;margin:5px'>
	<table style='width:100%'>
	
	"; 
	
	while (list ($num, $val) = each ($table) ){
		$linenum=$num+1;
		$html=$html . "<tr><td width=1% style='background-color:#CCCCCCC'><strong>$linenum</strong></td><td width=99%'><code>$val</code></td></tr>";
		
		
	}
	$html=$html . "</table>
	
	</div>";
	
	$tpl=new templates();
	echo $tpl->_parse_body($html);
	
}
Exemple #24
0
function popup()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body(main_tabs(), 'squid.index.php');
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
Exemple #25
0
function popup(){
	
	$tpl=new templates();
	$html=$tpl->_ENGINE_parse_body(main_tabs(),'squid.index.php');
	
	echo $html;
	}
Exemple #26
0
function main_kav4samba()
{
    if ($_GET["kavTab"] == "Objectsaction") {
        main_kav4samba_Objects_action();
        exit;
    }
    if ($_GET["kavTab"] == "events") {
        main_kav4samba_events();
        exit;
    }
    if ($_GET["kavTab"] == "license") {
        main_kav4samba_license();
        exit;
    }
    $tabs = main_tabs();
    $kav = new kav4samba();
    $UseAVbasesSet = Field_array_Hash(array("standard" => "standard", "extended" => "extended"), "UseAVbasesSet", $kav->main_array["scanner.options"]["UseAVbasesSet"]);
    $page = CurrentPageName();
    $html = "{$tabs}<br><H5>{APP_KAV4SAMBA}</H5>" . main_kav4samba_tabs() . "\n\t<p class=caption>{kav4samba_about}</p>\n\t\n\t<FORM NAME=FFM1>\n\t\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr><td colspan=2><strong style='font-size:13px;font-weight:bold'>{how_to_scan}<hr></td></tr>\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{UseAVbasesSet}:</td>\n\t<td align='left'>{$UseAVbasesSet}</td>\n\t</tr>\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{MaxLoadAvg}:</td>\n\t<td align='left'>" . Field_text('MaxLoadAvg', $kav->main_array["scanner.options"]["MaxLoadAvg"], 'width:50px') . "</td>\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{Ichecker}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('Ichecker', $kav->main_array["scanner.options"]["Ichecker"]) . "</td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{LocalFS}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('LocalFS', $kav->main_array["scanner.options"]["LocalFS"]) . "</td>\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{Recursion}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('Recursion', $kav->main_array["scanner.options"]["Recursion"]) . "</td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{Cure}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('Cure', $kav->main_array["scanner.options"]["Cure"]) . "</td>\n\t</tr>\t\t\n\t<tr>\n\t<tr><td colspan=2><strong style='font-size:13px;font-weight:bold'>{wich_to_scan}<hr></td></tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{Packed}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('Packed', $kav->main_array["scanner.options"]["Packed"]) . "</td>\n\t</tr>\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{Archives}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('Archives', $kav->main_array["scanner.options"]["Archives"]) . "</td>\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{SelfExtArchives}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('SelfExtArchives', $kav->main_array["scanner.options"]["SelfExtArchives"]) . "</td>\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{MailPlain}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('MailPlain', $kav->main_array["scanner.options"]["MailPlain"]) . "</td>\n\t</tr>\n\t<tr>\n\t<td align='right' nowrap style='font-size:22px;vertical-align:middle' class=legend>{MailBases}:</td>\n\t<td align='left'>" . Field_yesno_checkbox('MailBases', $kav->main_array["scanner.options"]["MailBases"]) . "</td>\n\t</tr>\t\t\t\n\n\t<tr><td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('FFM1','{$page}',true)\" value='{apply}&nbsp;&raquo;'><hr></td></tr>\n\t\n\t\n\t\n\t</table></div>\n\t</form>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function popup()
{
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body(main_tabs());
}
function main_statistics()
{
    $tab = main_tabs();
    $html = "{$tab}";
    if ($_GET["tab"] != null) {
        $html = $html . "<H3>{statistics} &raquo;{{$_GET["tab"]}}</H3>\n\t<p class=caption>{{$_GET["tab"]}_text}</p>\n\t";
    }
    $html = $html . "\t<table style='width:100%'>\n\t<tr>\n\t\t<td>\n\t\t<H3>{day}</H3>\n\t\t<center><img src='cgi-bin/bindrrd-grapher.pl?zone=overall&height=200&width=500&timeunit=days&ds={$_GET["tab"]}'></center></td>\n\t</tr>\n\t<tr>\n\t\t\n\t\t<td>\n\t\t<hr>\n\t\t<H3>{week}</H3>\n\t\t<center><img src='cgi-bin/bindrrd-grapher.pl?zone=overall&height=200&width=500&timeunit=weeks&ds={$_GET["tab"]}'></center></td>\n\t</tr>\n\t<tr>\n\t\t\n\t\t<td>\n\t\t<hr>\n\t\t<H3>{month}</H3>\n\t\t<center><img src='cgi-bin/bindrrd-grapher.pl?zone=overall&height=200&width=500&timeunit=months&ds={$_GET["tab"]}'></center></td>\n\t</tr>\n\t<tr>\n\t\t\n\t\t<td>\n\t\t<hr>\n\t\t<H3>{year}</H3>\n\t\t<center><img src='cgi-bin/bindrrd-grapher.pl?zone=overall&height=200&width=500&timeunit=years&ds={$_GET["tab"]}'></center></td>\n\t</tr>\t\t\t\n\t</table>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.postfix-multi.inc';
include_once 'ressources/class.kas-filter.inc';
$users = new usersMenus();
$tpl = new templates();
if (!$users->AsOrgPostfixAdministrator) {
    echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
    die;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["popup"])) {
    main_tabs();
    exit;
}
if (isset($_GET["ACTION_SPAM_MODE"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_FILTRATION_ON"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_SPAM_RATE_LIMIT"])) {
    SAVE();
    exit;
}
if (isset($_GET["apply-config"])) {
Exemple #30
0
function ajax_pop()
{
    if (!is_file("/usr/share/roundcube/index.php")) {
        $html = "\n\t\t<center>\n\t\t\n\t\t" . FATAL_ERROR_SHOW_128("{ERROR_NOT_INSTALLED_REDIRECT}<p>{about_roundcube}</p>\n\t\t\t\t<div style='text-align:right'><hr>" . button("{install_now}", "Loadjs('roundcube.install.progress.php')", 24) . "</div") . "\n\t\t</center>";
        $tpl = new templates();
        echo $tpl->_ENGINE_parse_body($html);
        return;
    }
    echo main_tabs();
}