示例#1
0
function altermime_popup()
{
    $users = new usersMenus();
    if (!$users->ALTERMIME_INSTALLED) {
        echo altermime_failed();
        exit;
    }
    $sock = new sockets();
    $EnableAlterMime = $sock->GET_INFO('EnableAlterMime');
    $EnableArticaSMTPFilter = $sock->GET_INFO("EnableArticaSMTPFilter");
    if ($EnableArticaSMTPFilter != 1) {
        echo altermime_articafilter_failed();
        exit;
    }
    $level = Paragraphe_switch_img('{enable} {disclaimer}', "{altermime_switch}", "altermime_enable", $EnableAlterMime);
    $tinymce = Paragraphe('icon-html-64.png', '{edit_disclaimer}', '{edit_disclaimer_text}', "javascript:LoadDisclaimer()");
    $settings = Paragraphe('64-settings.png', '{parameters}', '{edit_paremeters}', "javascript:Loadjs('altermime.php')");
    $tpl = new templates();
    $html = "<H1>{disclaimer}</H1>\n\t<p class=caption>{disclaimer_explain}</p>\n\t<table style='widht:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t<div id='sanesecuid'>\n\t\t\t{$level}\n\t\t\t</div>\n\t\t\t<div style='text-align:right'>\n\t\t\t<input type='button' OnClick=\"javascript:altermime_enable();\" value='{edit}&nbsp;&raquo;'>\n\t\t\t</div>\n\t\t\t<hr>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t{$settings}\n\t\t\n\t\t{$tinymce}\n\t\t</td>\n\t</tr>";
    echo $tpl->_ENGINE_parse_body($html);
}
示例#2
0
function altermime_popup(){
	
	$users=new usersMenus();
	if(!$users->ALTERMIME_INSTALLED){echo altermime_failed();exit;}
	$sock=new sockets();
	$EnableAlterMime=$sock->GET_INFO('EnableAlterMime');
	$EnableArticaSMTPFilter=$sock->GET_INFO("EnableArticaSMTPFilter");
	if($EnableArticaSMTPFilter<>1){echo altermime_articafilter_failed();exit;}
	$level=Paragraphe_switch_img('{activate_disclaimer}',"{altermime_switch}","altermime_enable",$EnableAlterMime,null,280);
	$tinymce=Paragraphe('icon-html-64.png','{edit_disclaimer}','{edit_disclaimer_text}',"javascript:LoadDisclaimer()");
	$settings=Paragraphe('64-settings.png','{parameters}','{edit_paremeters}',"javascript:Loadjs('altermime.php')");
	
	
	
	$tpl=new templates();
	$html="
	<div class=explain>{disclaimer_explain}</div>
	<table style='widht:100%'>
	<tr>
		<td valign='top'>
			<div id='sanesecuid'>
			$level
			</div>
			<div style='text-align:right'><hr>". button("{apply}","altermime_enable()")."
			</div>
			<hr>
		</td>
		<td valign='top'>
		$settings
		
		$tinymce
		</td>
	</tr>";
	echo $tpl->_ENGINE_parse_body($html);	
	
}