本文整理汇总了PHP中Templates::_ENGINE_parse_body方法的典型用法代码示例。如果您正苦于以下问题:PHP Templates::_ENGINE_parse_body方法的具体用法?PHP Templates::_ENGINE_parse_body怎么用?PHP Templates::_ENGINE_parse_body使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Templates
的用法示例。
在下文中一共展示了Templates::_ENGINE_parse_body方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup_index
function popup_index()
{
$html = "\n<table style='width:600px' align=center>\n<td valign='top' style='text-align:justify'>" . RoundedLightWhite("<p class=caption>{smtp_fallback_relay_tiny}<br>{smtp_fallback_relay_text}</p>") . "</td>\n</tr>\n</table>\n<table style='width:600px' align=center>\n<tr>\n<td align='center'><input type='button' value='{add_server} »' OnClick=\"javascript:PostfixAddFallBackServer();\"></td></tr>\n<tr>\n<td>" . RoundedLightWhite("<div id='table_list'>" . PostfixAddFallBackerserverList() . "</div>") . "</td></tr>\n</table>\n";
$js["JS"][] = 'js/postfix-fallback.js';
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例2: popup_index
function popup_index()
{
$main = new main_cf();
$html = "<H1>{address_verify_map_minitext}</H1>" . RoundedLightWhite("<p class=caption>{address_verify_map_text}</p>") . "<br>\n\n\n<form name='FFMDBCache'>\n\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n\t\t" . RoundedLightWhite("\n\t\t<table style='width:100%;margin:10px'>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_map_field}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_map', str_replace('btree:', '', $main->main_array["address_verify_map"])) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_negative_cache}:</strong></td>\n\t\t\t\t<td>" . Field_yesno_checkbox_img('address_verify_negative_cache', $main->main_array["address_verify_negative_cache"], '{address_verify_negative_cache_text}') . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_count}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_count', $main->main_array["address_verify_poll_count"], 'width:30%', null, null, '{address_verify_poll_count_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_delay}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_delay', $main->main_array["address_verify_poll_delay"], 'width:30%', null, null, '{address_verify_poll_delay_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_sender}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_sender', $main->main_array["address_verify_sender"], 'width:30%', null, null, '{address_verify_sender_text}') . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_expire_time', $main->main_array["address_verify_negative_expire_time"], 'width:30%', null, null, '{address_verify_negative_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_refresh_time', $main->main_array["address_verify_negative_refresh_time"], 'width:30%', null, null, '{address_verify_negative_refresh_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_expire_time', $main->main_array["address_verify_positive_expire_time"], 'width:30%', null, null, '{address_verify_positive_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_refresh_time', $main->main_array["address_verify_positive_refresh_time"], 'width:30%', null, null, '{address_verify_positive_refresh_time_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\t\n\n\t\t\t\n\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' colspan=2><input type='button' value='{delete} »' OnClick=\"PostFixVerifyDatabaseDeleteSave();\"> <input type='button' value='{edit} »' OnClick=\"PostFixVerifyDatabaseSave();\"></td>\n\t\t\t</tr>\t\t\t\t\n\t\t</table>") . "\n</td>\n</tr>\n</table></form>";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例3: popup_index
function popup_index()
{
$main = new main_cf();
$html = "\n<H1>{smtp_connection_cache_destinations}</H1>\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n" . RoundedLightWhite("<div style='text-align:justify;font-size:12px;height:200px;overflow:auto;width:99%'>{smtp_connection_cache_destinations_text}</div>") . "\n<br>\n" . RoundedLightWhite("\n<form name='FFMA'>\n<table style='width:500px'>\n\t<tr>\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_on_demand} :</strong></td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('smtp_connection_cache_on_demand', $main->main_array["smtp_connection_cache_on_demand"], '{enable_disable}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_cache_time_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_cache_time_limit', $main->main_array["smtp_connection_cache_time_limit"], 'width:20%', null, null, '{smtp_connection_cache_time_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_reuse_time_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_reuse_time_limit', $main->main_array["smtp_connection_reuse_time_limit"], 'width:20%', null, null, '{smtp_connection_reuse_time_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_ttl_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_ttl_limit', $main->main_array["connection_cache_ttl_limit"], 'width:20%', null, null, '{connection_cache_ttl_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_status_update_time} :</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_status_update_time', $main->main_array["connection_cache_status_update_time"], 'width:20%', null, null, '{connection_cache_status_update_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:PostFixSaveServerCacheSettings();\"></td>\n\t\t\n\t</tr>\t\t\t\n\t\t\t\t\t\n\t\t\n</form>\t") . "\n\t\n\t<tr>\n\t\n\t\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_destinations_field} :</strong></td>\n\t\t<td align='left'><input type='button' value='{add_server_domain} »' OnClick=\"javascript:PostFixAddServerCache();\">\n\t</tr>\n</table>\t\n\n\n</td>\n</tr>\n</table><div id='ServerCacheList'>" . PostFixServerCacheList() . "</div>";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例4: popup_index
function popup_index()
{
$main = new main_cf();
$page = CurrentPageName();
$html = "<table style='width:600px' align=center>\n<tr>\n<td valign='top'><div style='width:100%;height:400px;overflow:auto'>\n<form name='FFMAP'>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_1}</H5></td></tr>\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_1_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_error_sleep_time} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_error_sleep_time', $main->main_array["smtpd_error_sleep_time"], 'width:20%', null, null, '{smtpd_error_sleep_time_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n\n\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_2}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_2_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_soft_error_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_soft_error_limit', $main->main_array["smtpd_soft_error_limit"], 'width:20%', null, null, '{smtpd_soft_error_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_hard_error_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_hard_error_limit', $main->main_array["smtpd_hard_error_limit"], 'width:20%', null, null, '{smtpd_hard_error_limit_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_3}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_3_text}') . "</td></tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_connection_count_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_connection_count_limit', $main->main_array["smtpd_client_connection_count_limit"], 'width:20%', null, null, '{smtpd_client_connection_count_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_connection_rate_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_connection_rate_limit', $main->main_array["smtpd_client_connection_rate_limit"], 'width:20%', null, null, '{smtpd_client_connection_rate_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_message_rate_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_message_rate_limit', $main->main_array["smtpd_client_message_rate_limit"], 'width:20%', null, null, '{smtpd_client_message_rate_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_recipient_rate_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_recipient_rate_limit', $main->main_array["smtpd_client_recipient_rate_limit"], 'width:20%', null, null, '{smtpd_client_recipient_rate_limit_text}') . "\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_new_tls_session_rate_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_new_tls_session_rate_limit', $main->main_array["smtpd_client_new_tls_session_rate_limit"], 'width:20%', null, null, '{smtpd_client_new_tls_session_rate_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_event_limit_exceptions} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_event_limit_exceptions', $main->main_array["smtpd_client_event_limit_exceptions"], 'width:70%', null, null, '{smtpd_client_event_limit_exceptions_text}') . "\n\t</tr>\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\t\t\t\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_4}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_4_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{in_flow_delay} :</strong></td>\n\t\t<td align='left'>" . Field_text('in_flow_delay', $main->main_array["in_flow_delay"], 'width:10%', null, null, '{in_flow_delay_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_connect_timeout} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connect_timeout', $main->main_array["smtp_connect_timeout"], 'width:50%', null, null, '{smtp_connect_timeout_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_helo_timeout} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_helo_timeout', $main->main_array["smtp_helo_timeout"], 'width:50%', null, null, '{smtp_helo_timeout_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\n\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_8}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_8_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{initial_destination_concurrency} :</strong></td>\n\t\t<td align='left'>" . Field_text('initial_destination_concurrency', $main->main_array["initial_destination_concurrency"], 'width:50%', null, null, '{initial_destination_concurrency_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_destination_concurrency_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('default_destination_concurrency_limit', $main->main_array["default_destination_concurrency_limit"], 'width:50%', null, null, '{default_destination_concurrency_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{local_destination_concurrency_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('local_destination_concurrency_limit', $main->main_array["local_destination_concurrency_limit"], 'width:50%', null, null, '{local_destination_concurrency_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_destination_concurrency_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_destination_concurrency_limit', $main->main_array["smtp_destination_concurrency_limit"], 'width:80%', null, null, '{smtp_destination_concurrency_limit_text}') . "\n\t</tr\t\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_5}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_5_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_destination_recipient_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('default_destination_recipient_limit', $main->main_array["default_destination_recipient_limit"], 'width:50%', null, null, '{default_destination_recipient_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_recipient_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_recipient_limit', $main->main_array["smtpd_recipient_limit"], 'width:50%', null, null, '{smtpd_recipient_limit_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_6}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_6_text}') . "</td></tr>\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{queue_run_delay} :</strong></td>\n\t\t<td align='left'>" . Field_text('queue_run_delay', $main->main_array["queue_run_delay"], 'width:50%', null, null, '{queue_run_delay_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{minimal_backoff_time} :</strong></td>\n\t\t<td align='left'>" . Field_text('minimal_backoff_time', $main->main_array["minimal_backoff_time"], 'width:50%', null, null, '{minimal_backoff_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{queue_run_delay} :</strong></td>\n\t\t<td align='left'>" . Field_text('maximal_backoff_time', $main->main_array["maximal_backoff_time"], 'width:50%', null, null, '{maximal_backoff_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{maximal_queue_lifetime} :</strong></td>\n\t\t<td align='left'>" . Field_text('maximal_queue_lifetime', $main->main_array["maximal_queue_lifetime"], 'width:50%', null, null, '{maximal_queue_lifetime_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{bounce_queue_lifetime} :</strong></td>\n\t\t<td align='left'>" . Field_text('bounce_queue_lifetime', $main->main_array["bounce_queue_lifetime"], 'width:50%', null, null, '{bounce_queue_lifetime_text}') . "\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('qmgr_message_recipient_limit', $main->main_array["qmgr_message_recipient_limit"], 'width:50%', null, null, '{qmgr_message_recipient_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_minimum} :</strong></td>\n\t\t<td align='left'>" . Field_text('qmgr_message_recipient_minimum', $main->main_array["qmgr_message_recipient_minimum"], 'width:50%', null, null, '{qmgr_message_recipient_minimum_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\t\t\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_7}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_7_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_process_limit} :</strong></td>\n\t\t<td align='left'>" . Field_text('default_process_limit', $main->main_array["default_process_limit"], 'width:50%', null, null, '{default_process_limit_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit} »' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\n</form>\t\n</table>") . "\t\n\n</div>\n</td>\n</tr>\n</table>";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例5: about
function about()
{
$page = CurrentPageName();
$tpl = new Templates();
$time = time();
$html = "\n<div class=text-info style='font-size:14px'>{smtp_fallback_relay_tiny}<br>{smtp_fallback_relay_text}</div>\n\n";
echo $tpl->_ENGINE_parse_body($html);
}
示例6: GeneralSettings
function GeneralSettings()
{
$ave = new kav4mailservers(1, null, 1);
$page = CurrentPageName();
$tpl = new Templates(null, null, null, 1);
$html = Tabs() . "\n\t<fieldset>\n\t\t<legend>{general_settings}</legend>\n\t<form name='ffm1'>\t\t\n\t<table style='width:100%'>\n\t<input type='hidden' name='KEY' value='smtpscan.general'>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyFromAddress}:</strong></td>\n\t\t\t<td>" . Field_text('NotifyFromAddress', $ave->array_conf["smtpscan.general"]["NotifyFromAddress"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupport8BITMIME', $ave->array_conf["smtpscan.general"]["EHLOsupport8BITMIME"], '{enable_disable}') . "</td>\n\t\t\t<td align='left' class='caption'><strong>:{EHLOsupport8BITMIME}</strong>{EHLOsupport8BITMIME_text}</td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t<tr><td colspan=2> </td></tr>\n\t\t\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupportDSN', $ave->array_conf["smtpscan.general"]["EHLOsupportDSN"], '{enable_disable}') . "</td>\n\t\t\t<td align='left' class=caption><strong>:{EHLOsupportDSN}</strong>{EHLOsupportDSN_text}</td>\n\t\t</tr>\n\t\t\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupportXFORWARD', $ave->array_conf["smtpscan.general"]["EHLOsupportXFORWARD"], '{enable_disable}') . "</td>\n\t\t\t<td align='left'><strong>:{EHLOsupportXFORWARD}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align='right'><strong>{EHLOattrsXFORWARD}:</strong></td>\n\t\t\t<td align='right' valign='top'>" . Field_text('EHLOattrsXFORWARD', $ave->array_conf["smtpscan.general"]["EHLOattrsXFORWARD"]) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td> </td>\n\t\t<td class='caption'>{EHLOsupportXFORWARD_text}<br><b>protocol:</b>{$ave->array_conf["smtpscan.general"]["Protocol"]} « {$ave->array_conf["smtpscan.general"]["ForwardMailer"]} »</td>\n\t\t</tr>\n\t\t<tr><td colspan=2 style='text-align:right;padding-right:10px'><input type='button' value='{submit} »' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\"></td></tr>\n\t</table>\n\t</form>\n\t</fieldset>";
return $tpl->_ENGINE_parse_body($html);
}
示例7: popup_old
function popup_old()
{
$page = CurrentPageName();
$tpl = new templates();
if (strpos($_GET["uid"], '$') > 0) {
$add = "\n\t\t<div style='text-align:right;margin:8px'>" . imgtootltip("32-group-icon-add.png", "{add_group}", "AddNewGroupComp()") . "</div>\n\t\t\n\t\t";
}
$html = "{$add}\n\t<div style='width:100%;height:300px;overflow:auto' id='AddGroupAffectDiv'></div>\n\t\n\t\n\t<script>\n\t\t\n\t\t\n\n\n\tfunction RefreshGroup(){\n\t\tLoadAjax('AddGroupAffectDiv','{$page}?popup-list=yes&ou={$_GET["ou"]}&uid={$_GET["uid"]}');\n\t}\n\tRefreshGroup();\t\n\t</script>\n\t\n\t";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例8: SystemStatistics
function SystemStatistics($nopage = 0)
{
$users = new usersMenus();
$graph1 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?MonthsBlocketType=yes", 600, 180, "", true, $users->ChartLicence);
$js = "<script>\t\n\t\t\n\tfunction wait(){\n\t\tdocument.getElementById('blank').src='img/blank.gif';\n\t\tsetTimeout(\"Refreshit()\",10000)\n\t\t\n\t}\n\t\n\tfunction Refreshit(){\n\t\tdocument.getElementById('blank').src='img/wait.gif';\n\t\tsetTimeout(\"Send()\",2000);\n\t}\n\t\n\tfunction Send(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('SystemStatistics','yes');\n\t\tXHR.setRefreshArea('rrd');\t\t\t\t\t\t\t\t\t\n\t\tXHR.sendAndLoad(CurrentPageName(), 'GET');\n\t\twait();\n\t}\n\n</script>";
$time = serialize(date('Y-m-d H:I:s'));
$html = "\n\t\n\t\n\t\n\t<div id='rrd'>\n\t<center style='border:1px dotted #CCCCCC;margin:4px;padding:4px'>\n\t\t<H3>{detected_this_month}</H3>\n\t\t{$graph1}\n\t\t</center>\n\t\t<div id='graph2'></div>\n\t\t<div id='graph3'></div>\n\t</div>\n";
// <script>wait()</script>
if ($nopage == 0) {
$tpl = new template_users("{more_stats}", $js . $html);
echo $tpl->web_page;
} else {
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
}
示例9: otherpage
function otherpage()
{
$page = CurrentPageName();
$main = new maincf_multi($_GET["hostname"]);
$enable_original_recipient = $main->GET("enable_original_recipient");
$smtpd_discard_ehlo_keywords = $main->GET("smtpd_discard_ehlo_keywords");
if (!is_numeric($enable_original_recipient)) {
$enable_original_recipient = 1;
}
$undisclosed_recipients_header = $main->GET("undisclosed_recipients_header");
if ($undisclosed_recipients_header == null) {
$undisclosed_recipients_header = "To: undisclosed-recipients:;";
}
$t = time();
$html = "\n<div id='otherpagedvi' style='width:98%' class=form>\n\t\t\n<table style='width:99%'>\n<tr>\n\t<td class=legend nowrap style='font-size:22px'>{undisclosed_recipients_header}:</td>\n\t<td>" . Field_text("undisclosed_recipients_header-{$t}", $undisclosed_recipients_header, 'width:90%;font-size:22px') . "</td>\n\t<td>" . help_icon("{undisclosed_recipients_header_text}") . "</td>\n</tr>\n<tr>\n\t<td class=legend nowrap style='font-size:22px'>{smtpd_discard_ehlo_keywords}:</td>\n\t<td>" . Field_text("smtpd_discard_ehlo_keywords-{$t}", $smtpd_discard_ehlo_keywords, 'width:90%;font-size:22px') . "</td>\n\t<td>" . help_icon("{smtpd_discard_ehlo_keywords_text}") . "</td>\n</tr>\t\t\t\n\t\t\t\n\t\t\t\n<tr>\n\t<td class=legend nowrap style='font-size:22px'>{enable_original_recipient}:</td>\n\t<td>" . Field_checkbox_design('enable_original_recipient', 1, $enable_original_recipient) . "</td>\n\t<td>" . help_icon("{enable_original_recipient_text}") . "</td>\n</tr>\n\n\n\n<tr><td colspan=2 align='right'><hr>" . button("{apply}", "SavePostfixOtherSection{$t}()", "36") . "</td></tr>\n</table>\n</div>\n<script>\n\tvar x_SavePostfixOtherSection= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue);return;}\n\t\t\n\t}\t\n\t\n\tfunction SavePostfixOtherSection(){\n\t\tvar undisclosed_recipients_header=document.getElementById('undisclosed_recipients_header').value;\n\t\tvar enable_original_recipient=document.getElementById('enable_original_recipient').value;\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tXHR.appendData('enable_original_recipient',document.getElementById('enable_original_recipient-{$t}').value);\n\t\tXHR.appendData('undisclosed_recipients_header',document.getElementById('undisclosed_recipients_header-{$t}').value);\n\t\tXHR.appendData('smtpd_discard_ehlo_keywords',document.getElementById('smtpd_discard_ehlo_keywords-{$t}').value);\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SavePostfixOtherSection{$t});\t\t \n\t}\n</script>\t\t\n";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例10: maillog
function maillog()
{
include_once dirname(__FILE__) . "/ressources/class.status.logs.inc";
$user = new usersMenus();
$tpl = new Templates();
if ($user->AsPostfixAdministrator == false) {
echo DIV_SHADOW($tpl->_ENGINE_parse_body('{no privileges}'));
exit;
}
$sock = new sockets();
if ($_GET["maillog_filter"] != null) {
switch ($_GET["maillog_filter"]) {
case 'articaweb':
$datas = file_get_contents(dirname(__FILE__) . '/ressources/logs/artica-web.log');
break;
case 'procmail':
$datas = $sock->getfile('procmail_logs');
break;
default:
$datas = $sock->getfile('maillog:' . $_GET["maillog_filter"]);
break;
}
} else {
$tbl = unserialize(base64_decode($sock->getFrameWork('cmd.php?postfix-tail=yes')));
}
$datas = htmlentities($datas);
$tbl = explode("\n", $datas);
$tbl = array_reverse($tbl, TRUE);
$html = "<table style='width:100%'>";
while (list($num, $val) = each($tbl)) {
if (trim($val) != null) {
if ($class == "rowA") {
$class = "rowB";
} else {
$class = "rowA";
}
$html = $html . "<tr>\n\t\t<td width=1% style='border-bottom:1px dotted #CCCCCC' align='center'><img src='" . statusLogs($val) . "'></td>\n\t\t<td width=99%' style='border-bottom:1px dotted #CCCCCC;font-size:10px;'>{$val}</td>\n\t\t</tr>\n\t\t";
}
}
$html = $html . "</table>";
return $html;
}
示例11: TreeProcMailApplyConfig
function TreeProcMailApplyConfig()
{
$usr = new usersMenus();
$tpl = new Templates();
if ($usr->AsMailBoxAdministrator == false) {
echo $tpl->_ENGINE_parse_body('{no_privileges}');
exit;
}
$proc = new procmail();
$proc->SaveItToDisk();
echo $tpl->_ENGINE_parse_body('{success}');
exit;
}
示例12: popup_index
function popup_index()
{
$html = "\n\n<table style='width:99%' align=center class=form>\n<tr>\n<td valign='top'><img src='img/bg_perf.jpg'></td>\n<td valign='top'>\n" . ParagrapheTEXT('cache-refresh-48.png', '{smtp_connection_cache_destinations}', '{smtp_connection_cache_destinations_minitext}', "javascript:Loadjs('postfix.performances.cache.php?hostname={$_GET["hostname"]}')") . ParagrapheTEXT('cache-refresh-48.png', '{address_verify_map}', '{address_verify_map_minitext}', "javascript:Loadjs('postfix.performances.verify.map.php?hostname={$_GET["hostname"]}')") . "\n" . ParagrapheTEXT('folder-equerre-48.png', '{title_postfix_tuning}', '{title_postfix_tuning_text}', "javascript:Loadjs('postfix.performances.tuning.php?hostname={$_GET["hostname"]}')") . "\n" . ParagrapheTEXT('folder-fallback-48.png', '{smtp_fallback_relay}', '{smtp_fallback_relay_tiny}', "javascript:Loadjs('postfix.fallback.relay.php?hostname={$_GET["hostname"]}')") . "\n</td>\n</tr>\n</table>\n<div class=text-info style='font-size:14px'>{performances_settings_text}</div>\n";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例13: gmdate
<?php
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
session_start();
include_once "ressources/class.templates.inc";
include_once "ressources/class.ldap.inc";
include_once "ressources/class.sockets.inc";
$user = new usersMenus();
$tpl = new Templates();
if ($user->AsPostfixAdministrator == false) {
echo $tpl->_ENGINE_parse_body('{no privileges}');
exit;
}
$sock = new sockets();
$datas = $sock->getfile('procmail_logs');
if ($sock->error == true) {
echo $tpl->_ENGINE_parse_body('{socket_error}');
exit;
}
$datas = htmlentities($datas);
$tbl = explode("\n", $datas);
$tbl = array_reverse($tbl, TRUE);
$html = "<table style='width:100%'>";
while (list($num, $val) = each($tbl)) {
if (trim($val) != null) {
if ($class == "rowA") {
$class = "rowB";
} else {
示例14: Cyrus_mailbox_apply_settings
function Cyrus_mailbox_apply_settings()
{
$usr = new usersMenus();
$tpl = new Templates();
$show = array();
$uid = $_GET["Cyrus_mailbox_apply_settings"];
if ($usr->AsMailBoxAdministrator == false) {
echo $tpl->_ENGINE_parse_body('{no_privileges}');
exit;
}
$cyrus = new cyrus();
$ldap = new clladp();
$show[] = "{mailbox_creation_results}: {$uid}";
$hash = $ldap->UserDatas($uid);
if ($hash["MailboxActive"] == "TRUE") {
$show[] = "{mailbox_enabled}";
$createMailbox = true;
if ($cyrus->CreateMailbox($uid) == false) {
$createMailbox = false;
$error = "{failed}:{creating_mailbox}:{$uid}\n{$cyrus->cyrus_last_error}\n";
} else {
$error = "{success}:{creating_mailbox}:{$uid}\n";
}
$show[] = $cyrus->cyrus_infos;
} else {
$show[] = "{mailbox_not_enabled}";
}
while (list($num, $ligne) = each($show)) {
$html = $html . "<div style='font-size:12px;font-weight:bold;'>{$ligne}</div>\n";
}
echo "<div style='width:100%;height:250px;overflow:auto'>" . $tpl->_ENGINE_parse_body($html) . "</div>";
}
示例15: popup_index
function popup_index()
{
$html = "\n<h1>{performances_settings_text}</H1>\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>" . RoundedLightWhite("<img src='img/bg_perf.jpg'>") . "</td>\n<td valign='top'>\n\t" . Paragraphe('folder-cache-64.png', '{smtp_connection_cache_destinations}', '{smtp_connection_cache_destinations_minitext}', "javascript:Loadjs('postfix.performances.cache.php')") . Paragraphe('folder-cache-64.png', '{address_verify_map}', '{address_verify_map_minitext}', "javascript:Loadjs('postfix.performances.verify.map.php')") . "</td>\n\n</td>\n</tr>\n</table>\n<table>\n\t<tr>\n\t<td valign='top' >" . Paragraphe('folder-equerre-64.png', '{title_postfix_tuning}', '{title_postfix_tuning_text}', "javascript:Loadjs('postfix.performances.tuning.php')") . "</td>\n\t<td valign='top' >" . Paragraphe('folder-fallback-64.png', '{smtp_fallback_relay}', '{smtp_fallback_relay_tiny}', "javascript:Loadjs('postfix.fallback.relay.php')") . "</td>\n\t</tr>\t\n</table>";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}