当前位置: 首页>>代码示例>>PHP>>正文


PHP clladp::hash_Smtp_Tls_Policy_Maps方法代码示例

本文整理汇总了PHP中clladp::hash_Smtp_Tls_Policy_Maps方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::hash_Smtp_Tls_Policy_Maps方法的具体用法?PHP clladp::hash_Smtp_Tls_Policy_Maps怎么用?PHP clladp::hash_Smtp_Tls_Policy_Maps使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在clladp的用法示例。


在下文中一共展示了clladp::hash_Smtp_Tls_Policy_Maps方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: TLSAddSMTPServer

function TLSAddSMTPServer()
{
    $main = new main_cf();
    if ($_GET["tls_smtp_server"] != null) {
        $ldap = new clladp();
        $tool = new DomainsTools();
        $h = $ldap->hash_Smtp_Tls_Policy_Maps();
        $relayT = $tool->transport_maps_explode($_GET["tls_smtp_server"]);
        $tls_value = $h[$_GET["tls_smtp_server"]];
    }
    $field = Field_array_Hash($main->array_field_relay_tls, 'smtp_tls_policy_maps', $tls_value);
    $page = CurrentPageName();
    $html = "<div style='padding:20px'>\n\t<H3>{tls_smtp_server}</H3>\n\t<form name='tls_smtp_server'>\n<input type='hidden' name='TLSAddSMTPServerSave' value='yes'>\n\t<table style='width:100%'>\n\t<td align='right' nowrap><strong>{relay_address}:</strong></td>\n\t<td>" . Field_text('relay_address', $relayT[1]) . "</td>\t\n\t</tr>\n\t</tr>\n\t<td align='right' nowrap><strong>{smtp_port}:</strong></td>\n\t<td>" . Field_text('relay_port', $relayT[2]) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups', $relayT[3], '{enable_disable}') . "</td>\n\t<td>{MX_lookups}</td>\t\n\t</tr>\n\t</tr>\n\t<td align='right' nowrap valign='top'><strong>{tls_level}:</strong></td>\n\t<td>{$field}<div class='caption'>{use_tls_relay_explain}</div></td>\t\n\t</tr>\t\t\n\t<tr>\n\t<td align='right' class=caption colspan=2><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('tls_smtp_server','{$page}',true);TLSLoadTable();\"></td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='left' class=caption colspan=2><strong>{MX_lookups}</strong><br>{MX_lookups_text}</td>\n\t</tr>\t\t\t\t\t\n\t</form>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:16,代码来源:postfix.tls.php

示例2: SenderTable

function SenderTable(){
	
$page=CurrentPageName();
$ldap=new clladp();
if($_GET["domainName"]<>null){
	if(strpos($_GET["domainName"],'@')==0){
		$domain_f="@".$_GET["domainName"];
		$domain=$_GET["domainName"];
	}else{
		$domain_f=$_GET["domainName"];
		$email=$domain_f;
	}
	
	$domaintools=new DomainsTools();
	$h=$ldap->hash_Sender_Dependent_Relay_host();
	$table=$domaintools->transport_maps_explode($h[$domain_f]);
	$relay_address=$table[1];
	$MX_lookups=$table[3];
}

	$main=new main_cf();
	if($main->main_array["smtp_sasl_auth_enable"]=="yes"){
		$tls_table=$ldap->hash_Smtp_Tls_Policy_Maps();
		$tls_value=$tls_table[$relay_address];
		writelogs("server \"{$Table[$domainName]}\"=>$smtp_server_line=>".$tls_table[$smtp_server_line] ."($tls_value)",__FUNCTION__,__FILE__);
		
		$field=Field_array_Hash($main->array_field_relay_tls,'smtp_tls_policy_maps',$tls_value);
		$sasl="
		</tr>
			<td align='right' nowrap valign='top'><strong>{tls_level}:</strong></td>
			<td style='font-size:12px'>$field<div class='caption'>{use_tls_relay_explain}</div></td>	
		</tr>";
		
	}


	$html="
	<H1>{sender_dependent_relayhost_maps_title}</H1>
	<p class=caption>{sender_dependent_relayhost_maps_text}</p>
	" . RoundedLightWhite("
	<form name='FFMSenderTable'>
	<input type='hidden' name='SenderTableSave' value='yes'>
	<table style='width:100%'>
	<tr>
	<td align='right' nowrap class=legend>{email}:</strong></td>
	<td style='font-size:12px'>" . Field_text('email',$email) . "</td>	
	</tr>		
	<tr>
	<td align='right' nowrap class=legend>{domain}:</strong></td>
	<td style='font-size:12px'>{or} " . Field_text('domain',$domain) . "</td>	
	</tr>	
	<tr>
	<td align='right' nowrap class=legend>{relay_address}:</strong></td>
	<td style='font-size:12px'>" . Field_text('relay_address',$relay_address) . "</td>	
	</tr>
	<tr>
	<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups',$MX_lookups,'{enable_disable}')."</td>
	<td style='font-size:12px'>{MX_lookups}</td>	
	</tr>
	$sasl
	<tr>
	<td align='right' colspan=2>". button("{apply}","PostfixAddNewSenderTable()")."</td>
	</tr>		
	</table>
	</FORM>
	
	
	");

$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);		
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:73,代码来源:postfix.routing.table.php

示例3: PostfixAddRelayTable

function PostfixAddRelayTable()
{
    $ldap = new clladp();
    $page = CurrentPageName();
    $org = $ldap->hash_get_ou(true);
    $org[null] = '{select}';
    $listOrg = Field_array_Hash($org, 'org', $org);
    $tls_table = $ldap->hash_Smtp_Tls_Policy_Maps();
    $smtp_server_line = $Table[$domainName];
    $smtp_server_line = str_replace('smtp:', '', $smtp_server_line);
    $tls_value = $tls_table[$smtp_server_line];
    writelogs("server \"{$Table[$domainName]}\"=>{$smtp_server_line}=>" . $tls_table[$smtp_server_line] . "({$tls_value})", __FUNCTION__, __FILE__);
    $main = new main_cf();
    if ($main->main_array["smtp_sasl_auth_enable"] == "yes") {
        $field = Field_array_Hash($main->array_field_relay_tls, 'smtp_tls_policy_maps', $tls_value);
        $sasl = "\n\t\t</tr>\n\t\t\t<td align='right' nowrap valign='top' class=legend>{tls_level}:</strong></td>\n\t\t\t<td style='font-size:12px'>{$field}<div class='caption'>{use_tls_relay_explain}</div></td>\t\n\t\t</tr>";
    }
    if ($smtp_port == null) {
        $smtp_port = 25;
    }
    $html = "\n\t<h1>{add_routing_relay_domain_rule}</H1>\n\t<br>" . RoundedLightWhite("\n\t<form name='FFM3'>\n\t<input type='hidden' name='PostfixAddRoutingTableSave' value='yes'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td align='right' class=legend>{organization}:</strong></td>\n\t<td style='font-size:12px'>{$listOrg}</td>\n\t</tr>\t\n\t<tr>\n\t<td align='right' class=legend>{domainName}:</strong></td>\n\t<td style='font-size:12px'>" . Field_text('domain', $domainName) . "</td>\n\t</tr>\n\t<td align='right' nowrap class=legend>{relay_address}:</strong></td>\n\t<td style='font-size:12px'>" . Field_text('relay_address', $relay_address) . "</td>\t\n\t</tr>\n\t<td align='right' nowrap class=legend>{smtp_port}:</strong></td>\n\t<td style='font-size:12px'>" . Field_text('relay_port', $smtp_port) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups', $MX_lookups, '{enable_disable}') . "</td>\n\t<td style='font-size:12px'>{MX_lookups}</td>\t\n\t</tr>\n\t{$sasl}\n\t<tr>\n\t<td align='right' colspan=2>" . button("{apply}", "PostfixAddNewRelayTable()") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='left' colspan=2><hr><p class=caption>{MX_lookups}</strong><br>{MX_lookups_text}</p></td>\n\t</tr>\t\t\t\n\t\t\n\t</table>\n\t</FORM>\n\t//PostfixAddRoutingRuleTableSave\n<script>\nvar X_PostfixAddNewRelayTable= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif (results.length>0){alert(results);}\n\t\t\$('#container-tabs').tabs( 'load' ,3 );\n\t\tYahooWinHide();\n\t}\t\t\nfunction PostfixAddNewRelayTable(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('PostfixAddRoutingTableSave','yes');\n\t\tXHR.appendData('org',document.getElementById('org').value);\n\t\tXHR.appendData('domain',document.getElementById('domain').value);\n\t\tXHR.appendData('relay_address',document.getElementById('relay_address').value);\n\t\tXHR.appendData('MX_lookups',document.getElementById('MX_lookups').value);\n\t\tXHR.appendData('relay_port',document.getElementById('relay_port').value);\n\t\tif(document.getElementById('smtp_tls_policy_maps')){\n\t\t\tXHR.appendData('relay_port',document.getElementById('smtp_tls_policy_maps').value);\n\t\t}\n\t\t\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_PostfixAddNewRelayTable);\n\t\t\n\t}\t\t\n\t\n</script>\t\n\t");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:24,代码来源:postfix.routing.table.php


注:本文中的clladp::hash_Smtp_Tls_Policy_Maps方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。