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


PHP maincf_multi::GET方法代码示例

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


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

示例1: popup

function popup()
{
    $hostname = $_GET["hostname"];
    $page = CurrentPageName();
    $users = new usersMenus();
    $tpl = new templates();
    $t = time();
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $detect_8bit_encoding_header = $main->GET("detect_8bit_encoding_header");
    $disable_mime_input_processing = $main->GET("disable_mime_input_processing");
    $disable_mime_output_conversion = $main->GET("disable_mime_output_conversion");
    $mime_nesting_limit = $main->GET("mime_nesting_limit");
    if (!is_numeric($detect_8bit_encoding_header)) {
        $detect_8bit_encoding_header = 1;
    }
    if (!is_numeric($disable_mime_input_processing)) {
        $disable_mime_input_processing = 0;
    }
    if (!is_numeric($disable_mime_output_conversion)) {
        $disable_mime_output_conversion = 0;
    }
    if (!is_numeric($mime_nesting_limit)) {
        $mime_nesting_limit = 100;
    }
    $html = "\n\t<div id='{$t}'></div>\n\t\n\t<div style='width:98%' class=form>\n\t<table>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{detect_8bit_encoding_header}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("detect_8bit_encoding_header-{$t}", 1, $detect_8bit_encoding_header) . "</td>\n\t\t<td width=1%>" . help_icon("{detect_8bit_encoding_header_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_output_conversion}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_output_conversion-{$t}", 1, $disable_mime_output_conversion) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_output_conversion_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_input_processing}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_input_processing-{$t}", 1, $disable_mime_input_processing) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_input_processing_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:16px'>{mime_nesting_limit}</strong>:</td>\n\t\t<td>" . Field_text("mime_nesting_limit-{$t}", $mime_nesting_limit, 'width:70px;font-size:16px;padding:3px;text-align:right') . " </td>\n\t\t<td>" . help_icon('{mime_nesting_limit_text}') . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "Save{$t}()", "18px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar X_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t}\t\t\n\t\n\tfunction Save{$t}(){\n\t\tdetect_8bit_encoding_header=0;\n\t\tdisable_mime_output_conversion=0;\n\t\tdisable_mime_input_processing=0;\n\t\t\n\t\tif(document.getElementById('detect_8bit_encoding_header-{$t}').checked){detect_8bit_encoding_header=1;}\n\t\tif(document.getElementById('disable_mime_output_conversion-{$t}').checked){disable_mime_output_conversion=1;}\n\t\tif(document.getElementById('disable_mime_input_processing-{$t}').checked){disable_mime_input_processing=1;}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('detect_8bit_encoding_header',detect_8bit_encoding_header);\n\t\tXHR.appendData('disable_mime_output_conversion',disable_mime_output_conversion);\n\t\tXHR.appendData('disable_mime_input_processing',disable_mime_input_processing);\n\t\tXHR.appendData('mime_nesting_limit',document.getElementById('mime_nesting_limit-{$t}').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',X_Save{$t});\n\t}\n\t\n\t\n\t\n\t</script>\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:postfix.mime.php

示例2: popup

function popup()
{
    $sock = new sockets();
    $PostfixMultiCreateBubble = $sock->GET_INFO("PostfixMultiCreateBubble");
    if (!is_numeric($PostfixMultiCreateBubble)) {
        $PostfixMultiCreateBubble = 0;
    }
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $EnableSubmission = $main->GET("EnableSubmission");
    $TrustMyNetwork = $main->GET("TrustMyNetwork");
    if (!is_numeric($TrustMyNetwork)) {
        $TrustMyNetwork = 1;
    }
    $EnableSasl = $main->GET("EnableSasl");
    $sasl = Paragraphe_switch_img('{sasl_title}', '{sasl_intro}', 'EnableSasl', $EnableSasl, '{enable_disable}', 300);
    if ($PostfixMultiCreateBubble == 1) {
        $TrustMyNetwork = "<input type=hidden id='TrustMyNetwork' name=\"TrustMyNetwork\" value='{$TrustMyNetwork}'>" . Paragraphe_switch_disable('{TrustMyNetwork}', '{TrustMyNetwork_text}<hr><i style=color:#9E0000>{PostfixMultiCreateBubbleIsEnabled}</i>', '{TrustMyNetwork_text}', 300);
    } else {
        $TrustMyNetwork = Paragraphe_switch_img('{TrustMyNetwork}', '{TrustMyNetwork_text}', 'TrustMyNetwork', $TrustMyNetwork, '{enable_disable}', 300);
    }
    $PostfixEnableSubmission_field = Paragraphe_switch_img('{PostfixEnableSubmission}', '{PostfixEnableSubmission_text}', 'EnableSubmission', $EnableSubmission, '{enable_disable}', 300);
    $old = "" . Paragraphe("64-settings-black.png", "{SASL_STATUS}", "{SASL_STATUS_TEXT}", "javascript:SaslStatus();") . "\n\t\t\t{$settings}\n\t\t\t{$smtpd_sasl_exceptions_networks}";
    $html = "\n\t<div id='sasl-id'>\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t{$sasl}\n\t\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t\t</td>\n\t<td valign='top'>\n\t\t{$TrustMyNetwork}\n\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2>\n\t\t{$PostfixEnableSubmission_field}\n\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'postfix.sasl.php');
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:domains.postfix.multi.sasl.php

示例3: popup_index

function popup_index()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $add_server_domain = $tpl->_ENGINE_parse_body("{add_server_domain}");
    $main = new maincf_multi($_GET["hostname"]);
    $smtp_connection_cache_on_demand = $main->GET("smtp_connection_cache_on_demand");
    $smtp_connection_cache_time_limit = $main->GET("smtp_connection_cache_time_limit");
    $smtp_connection_reuse_time_limit = $main->GET("smtp_connection_reuse_time_limit");
    $connection_cache_ttl_limit = $main->GET("connection_cache_ttl_limit");
    $connection_cache_status_update_time = $main->GET("connection_cache_status_update_time");
    if (!is_numeric($smtp_connection_cache_on_demand)) {
        $smtp_connection_cache_on_demand = 1;
    }
    if ($smtp_connection_cache_time_limit == null) {
        $smtp_connection_cache_time_limit = "2s";
    }
    if ($smtp_connection_reuse_time_limit == null) {
        $smtp_connection_reuse_time_limit = "300s";
    }
    if ($connection_cache_ttl_limit == null) {
        $connection_cache_ttl_limit = "2s";
    }
    if ($connection_cache_status_update_time == null) {
        $connection_cache_status_update_time = "600s";
    }
    $html = "\n<div id='smtp_connection_cache_on_demand_div'></div>\n<table style='width:99%' class=form>\n<tbody>\n\t<tr>\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_on_demand}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_checkbox('smtp_connection_cache_on_demand', 1, $smtp_connection_cache_on_demand) . "</td>\n\t\t<td width=1%>" . help_icon("{smtp_connection_cache_destinations_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_cache_time_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_cache_time_limit', $smtp_connection_cache_time_limit, 'width:50px;font-size:14px', null, null, '') . "\n\t\t<td width=1%>" . help_icon("{smtp_connection_cache_time_limit_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_reuse_time_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_reuse_time_limit', $smtp_connection_reuse_time_limit, 'width:50px;font-size:14px', null, null, '') . "\n\t\t<td width=1%>" . help_icon("{smtp_connection_reuse_time_limit_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_ttl_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_ttl_limit', $connection_cache_ttl_limit, 'width:50px;font-size:14px', null, null, '') . "\n\t\t<td width=1%>" . help_icon("{connection_cache_ttl_limit_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_status_update_time}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_status_update_time', $connection_cache_status_update_time, 'width:50px;font-size:14px', null, null) . "\n\t\t<td width=1%>" . help_icon("{connection_cache_status_update_time_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap colspan='3' align='right'><hr>\n\t\t" . button("{apply}", "smtp_connection_cache_on_demand_save()") . "\n\t</td>\n\t\t\n\t</tr>\t\t\t\n\t</tbody>\n</table>\t\t\t\t\n\n<table style='width:99%' class=form>\n<tbody>\n\t<tr>\n\t\n\t\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_destinations_field}&nbsp;:</strong></td>\n\t\t<td align='left'><input type='button' value='{add_server_domain}&nbsp;&raquo;' OnClick=\"javascript:PostFixAddServerCache();\">\n\t</tr>\n</tbody>\n</table>\t\n\n\n</td>\n</tr>\n</table><div id='ServerCacheList'>" . PostFixServerCacheList() . "</div>\n\n<script>\n\n\tvar x_smtp_connection_cache_on_demand_save=function(obj){\n    \tvar tempvalue=trim(obj.responseText);\n\t  \tif(tempvalue.length>3){alert(tempvalue);}\n\t\tdocument.getElementById('smtp_connection_cache_on_demand_div').innerHTML='';\n\t\t}\n\nfunction smtp_connection_cache_on_demand_save(){\n\tvar XHR = new XHRConnection();\t\n\tif(document.getElementById('smtp_connection_cache_on_demand').checked){XHR.appendData('smtp_connection_cache_on_demand','1');}else{XHR.appendData('smtp_connection_cache_on_demand','0');}\n\tXHR.appendData('smtp_connection_cache_time_limit',document.getElementById('smtp_connection_cache_time_limit').value);\n\tXHR.appendData('smtp_connection_reuse_time_limit',document.getElementById('smtp_connection_reuse_time_limit').value);\n\tXHR.appendData('connection_cache_ttl_limit',document.getElementById('connection_cache_ttl_limit').value);\n\tXHR.appendData('connection_cache_status_update_time',document.getElementById('connection_cache_status_update_time').value);\n\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\tAnimateDiv('smtp_connection_cache_on_demand_div');\n\tXHR.sendAndLoad('{$page}', 'POST',x_smtp_connection_cache_on_demand_save);\t\n}\nfunction PostFixAddServerCache(){\n\tYahooWin3(550,'{$page}?PostFixAddServerCache=yes&hostname={$_GET["hostname"]}','{$add_server_domain}');\n\t}\n\t\nfunction CacheReloadList(){\n\tLoadAjax('ServerCacheList','{$page}?CacheReloadList=yes&hostname={$_GET["hostname"]}');\n\t}\t\n\tCacheReloadList();\n</script>\n\n\n";
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:30,代码来源:postfix.performances.cache.php

示例4: id_sender

function id_sender()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $main = new maincf_multi($_GET["hostname"]);
    $double_bounce_sender = $main->GET("double_bounce_sender");
    $address_verify_sender = $main->GET("address_verify_sender");
    $twobounce_notice_recipient = $main->GET("2bounce_notice_recipient");
    $error_notice_recipient = $main->GET("error_notice_recipient");
    $delay_notice_recipient = $main->GET("delay_notice_recipient");
    $empty_address_recipient = $main->GET("empty_address_recipient");
    $sock = new sockets();
    $PostfixPostmaster = $sock->GET_INFO("PostfixPostmaster");
    if (trim($PostfixPostmaster) == null) {
        $PostfixPostmaster = "postmaster";
    }
    if ($double_bounce_sender == null) {
        $double_bounce_sender = "double-bounce";
    }
    if ($address_verify_sender == null) {
        $address_verify_sender = "\$double_bounce_sender";
    }
    if ($twobounce_notice_recipient == null) {
        $twobounce_notice_recipient = "postmaster";
    }
    if ($error_notice_recipient == null) {
        $error_notice_recipient = $PostfixPostmaster;
    }
    if ($delay_notice_recipient == null) {
        $delay_notice_recipient = $PostfixPostmaster;
    }
    if ($empty_address_recipient == null) {
        $empty_address_recipient = $PostfixPostmaster;
    }
    $notify_class = unserialize(base64_decode($main->GET_BIGDATA("notify_class")));
    if (!is_array($notify_class)) {
        $notify_class["notify_class_resource"] = 1;
        $notify_class["notify_class_software"] = 1;
    }
    $notify_class_software = $notify_class["notify_class_software"];
    $notify_class_resource = $notify_class["notify_class_resource"];
    $notify_class_policy = $notify_class["notify_class_policy"];
    $notify_class_delay = $notify_class["notify_class_delay"];
    $notify_class_2bounce = $notify_class["notify_class_2bounce"];
    $notify_class_bounce = $notify_class["notify_class_bounce"];
    $notify_class_protocol = $notify_class["notify_class_protocol"];
    $html = "<div class=text-info>{POSTFIX_SMTP_NOTIFICATIONS_TEXT}</div>\n\t<div id='ffm1notif'>\n\t<table style='width:99%' class=form>\t\n\t<tr>\n\t\t<td class=legend nowrap>{double_bounce_sender}:</td>\n\t\t<td>" . Field_text('double_bounce_sender', $double_bounce_sender, 'font-size:13px;padding:3px;width:160px') . "</td>\n\t\t<td>" . help_icon("{double_bounce_sender_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap nowrap>{address_verify_sender}:</td>\n\t\t<td>" . Field_text('address_verify_sender', $address_verify_sender, 'font-size:13px;padding:3px;width:160px') . "</td>\n\t\t<td>" . help_icon("{address_verify_sender_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{2bounce_notice_recipient}:</td>\n\t\t<td>" . Field_text('2bounce_notice_recipient', $twobounce_notice_recipient, 'font-size:13px;padding:width:160px') . "</td>\n\t\t<td>" . help_icon("{2bounce_notice_recipient_text}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend nowrap>{error_notice_recipient}:</td>\n\t\t<td>" . Field_text('error_notice_recipient', $error_notice_recipient, 'font-size:13px;padding:width:160px') . "</td>\n\t\t<td>" . help_icon("{error_notice_recipient_text}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend nowrap>{delay_notice_recipient}:</td>\n\t\t<td>" . Field_text('delay_notice_recipient', $delay_notice_recipient, 'font-size:13px;padding:width:160px') . "</td>\n\t\t<td>" . help_icon("{delay_notice_recipient_text}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend nowrap>{empty_address_recipient}:</td>\n\t\t<td>" . Field_text('empty_address_recipient', $empty_address_recipient, 'font-size:13px;padding:width:160px') . "</td>\n\t\t<td>" . help_icon("{empty_address_recipient_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{empty_address_recipient}:</td>\n\t\t<td>" . Field_text('empty_address_recipient', $empty_address_recipient, 'font-size:13px;padding:width:160px') . "</td>\n\t\t<td>" . help_icon("{empty_address_recipient_text}") . "</td>\n\t</tr>\n\t</table>\n<div style='font-size:16px;margin:10px'>{notify_class}</div>\n<table style='width:99%' class=form>\t\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_bounce}:</td>\n\t\t<td>" . Field_checkbox('notify_class_bounce', 1, $notify_class_bounce) . "</td>\n\t\t<td>" . help_icon("{notify_class_bounce_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_2bounce}:</td>\n\t\t<td>" . Field_checkbox('notify_class_2bounce', 1, $notify_class_2bounce) . "</td>\n\t\t<td>" . help_icon("{notify_class_2bounce_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_delay}:</td>\n\t\t<td>" . Field_checkbox('notify_class_delay', 1, $notify_class_delay) . "</td>\n\t\t<td>" . help_icon("{notify_class_delay_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_policy}:</td>\n\t\t<td>" . Field_checkbox('notify_class_policy', 1, $notify_class_policy) . "</td>\n\t\t<td>" . help_icon("{notify_class_policy_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_protocol}:</td>\n\t\t<td>" . Field_checkbox('notify_class_protocol', 1, $notify_class_protocol) . "</td>\n\t\t<td>" . help_icon("{notify_class_protocol_text}") . "</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_resource}:</td>\n\t\t<td>" . Field_checkbox('notify_class_resource', 1, $notify_class_resource) . "</td>\n\t\t<td>" . help_icon("{notify_class_resource_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{notify_class_software}:</td>\n\t\t<td>" . Field_checkbox('notify_class_software', 1, $notify_class_software) . "</td>\n\t\t<td>" . help_icon("{notify_class_software_text}") . "</td>\n\t</tr>\n\t\n\n\t\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t<hr>\n\t\t" . button("{apply}", "SavePostfixNotificationsForm()") . "\n\t\t</td>\n\t</tr>\t\t\n</table>\t\n</div>\n\t<script>\n\t\n\tvar x_SavePostfixNotificationsForm= function (obj) {\n\t\tvar results=trim(obj.responseText);\n\t\tif(results.length>0){alert(results);}\n\t\tRefreshTab('main_config_postfix_notifs');\n\t}\t\n\t\n\tfunction SavePostfixNotificationsForm(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('double_bounce_sender',document.getElementById('double_bounce_sender').value);\n\t\tXHR.appendData('address_verify_sender',document.getElementById('address_verify_sender').value);\n\t\tXHR.appendData('2bounce_notice_recipient',document.getElementById('2bounce_notice_recipient').value);\n\t\tXHR.appendData('error_notice_recipient',document.getElementById('error_notice_recipient').value);\n\t\tXHR.appendData('delay_notice_recipient',document.getElementById('delay_notice_recipient').value);\n\t\tXHR.appendData('empty_address_recipient',document.getElementById('empty_address_recipient').value);\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tif(document.getElementById('notify_class_software').checked){XHR.appendData('notify_class_software','1');}else{XHR.appendData('notify_class_software','0');}\n\t\tif(document.getElementById('notify_class_resource').checked){XHR.appendData('notify_class_resource','1');}else{XHR.appendData('notify_class_resource','0');}\n\t\tif(document.getElementById('notify_class_policy').checked){XHR.appendData('notify_class_policy','1');}else{XHR.appendData('notify_class_policy','0');}\n\t\tif(document.getElementById('notify_class_delay').checked){XHR.appendData('notify_class_delay','1');}else{XHR.appendData('notify_class_delay','0');}\n\t\tif(document.getElementById('notify_class_2bounce').checked){XHR.appendData('notify_class_2bounce','1');}else{XHR.appendData('notify_class_2bounce','0');}\n\t\tif(document.getElementById('notify_class_bounce').checked){XHR.appendData('notify_class_bounce','1');}else{XHR.appendData('notify_class_bounce','0');}\n\t\tif(document.getElementById('notify_class_protocol').checked){XHR.appendData('notify_class_protocol','1');}else{XHR.appendData('notify_class_protocol','0');}\n\t\n\t\tdocument.getElementById('ffm1notif').innerHTML='<div style=\"width:100%\"><center style=\"margin:20px;padding:20px\"><img src=\"img/wait_verybig.gif\"></center></div>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_SavePostfixNotificationsForm);\n\t}\n\t\t\n\t\n\t</script>\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:49,代码来源:postfix.notifs.php

示例5: settings_perfs

function settings_perfs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $master = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $in_flow_delay = $master->GET("in_flow_delay");
    $minimal_backoff_time = $master->GET("minimal_backoff_time");
    $maximal_backoff_time = $master->GET("maximal_backoff_time");
    $bounce_queue_lifetime = $master->GET("bounce_queue_lifetime");
    $default_process_limit = $master->GET("default_process_limit");
    $maximal_queue_lifetime = $master->GET("maximal_queue_lifetime");
    $queue_run_delay = $master->GET("queue_run_delay");
    if ($in_flow_delay == null) {
        $in_flow_delay = "1s";
    }
    if ($minimal_backoff_time == null) {
        $minimal_backoff_time = "300s";
    }
    if ($maximal_backoff_time == null) {
        $maximal_backoff_time = "4000s";
    }
    if ($default_process_limit == null) {
        $default_process_limit = "100";
    }
    if ($bounce_queue_lifetime == null) {
        $bounce_queue_lifetime = "5d";
    }
    if ($maximal_queue_lifetime == null) {
        $maximal_queue_lifetime = "5d";
    }
    if ($queue_run_delay == null) {
        $queue_run_delay = "5m";
    }
    $qmgr_message_active_limit = $master->GET("qmgr_message_active_limit");
    $qmgr_message_recipient_limit = $master->GET("qmgr_message_recipient_limit");
    $qmgr_message_recipient_minimum = $master->GET("qmgr_message_recipient_minimum");
    if (!is_numeric($qmgr_message_active_limit)) {
        $qmgr_message_active_limit = 20000;
    }
    if (!is_numeric($qmgr_message_recipient_limit)) {
        $qmgr_message_recipient_limit = 20000;
    }
    if (!is_numeric($qmgr_message_recipient_minimum)) {
        $qmgr_message_recipient_minimum = 10;
    }
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'><img src='img/global-settings-128.png' id='global-settings-128'></td>\n\t\t<td valign='top'>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{in_flow_delay}:</td>\n\t\t\t\t<td>" . Field_text("in_flow_delay", $in_flow_delay, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{in_flow_delay_text}") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{queue_run_delay}:</td>\n\t\t\t\t<td>" . Field_text("queue_run_delay", $queue_run_delay, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{queue_run_delay_text}") . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{minimal_backoff_time}:</td>\n\t\t\t\t<td>" . Field_text("minimal_backoff_time", $minimal_backoff_time, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{minimal_backoff_time_text}") . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{maximal_backoff_time}:</td>\n\t\t\t\t<td>" . Field_text("maximal_backoff_time", $maximal_backoff_time, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{maximal_backoff_time_text}") . "</td>\n\t\t\t</tr>\n\n\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{default_process_limit}:</td>\n\t\t\t\t<td>" . Field_text("default_process_limit", $default_process_limit, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{default_process_limit_text}") . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=3 style='font-size:16px;font-weight:bold'>{parameters}:&nbsp;&laquo;&nbsp;{queue}&nbsp;&raquo;<hr></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{bounce_queue_lifetime}:</td>\n\t\t\t\t<td>" . Field_text("bounce_queue_lifetime", $bounce_queue_lifetime, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{bounce_queue_lifetime_text}") . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend valign='top' nowrap>{maximal_queue_lifetime}&nbsp;:</strong></td>\n\t\t\t\t<td>" . Field_text("maximal_queue_lifetime", $maximal_queue_lifetime, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{maximal_queue_lifetime_text}") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend valign='top' nowrap>{qmgr_message_active_limit}&nbsp;:</strong></td>\n\t\t\t\t<td>" . Field_text("qmgr_message_active_limit", $qmgr_message_active_limit, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%></td>\n\t\t\t</tr>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\n\t\t\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_limit}&nbsp;:</strong></td>\n\t\t\t\t<td>" . Field_text("qmgr_message_recipient_limit", $qmgr_message_recipient_limit, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{qmgr_message_recipient_limit_text}") . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\t\t\t\t\t\t\t\t\n\t\t\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_minimum}&nbsp;:</strong></td>\n\t\t\t\t<td>" . Field_text("qmgr_message_recipient_minimum", $qmgr_message_recipient_minimum, "width:90px;padding:3px;font-size:13px") . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{qmgr_message_recipient_minimum_text}") . "</td>\n\t\t\t</tr>\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=3 align='right'>\n\t\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "SaveHostTunePostfix()") . "</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t\n\t<script>\n\tvar x_SaveHostTunePostfix= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tdocument.getElementById('global-settings-128').src='img/global-settings-128.png';\n\t}\t\n\t\n\t\n\t\tfunction SaveHostTunePostfix(){\t\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('settings-perfs-save','yes');\n\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\t\tXHR.appendData('in_flow_delay',document.getElementById('in_flow_delay').value);\n\t\t\tXHR.appendData('minimal_backoff_time',document.getElementById('minimal_backoff_time').value);\n\t\t\tXHR.appendData('maximal_backoff_time',document.getElementById('maximal_backoff_time').value);\n\t\t\tXHR.appendData('bounce_queue_lifetime',document.getElementById('bounce_queue_lifetime').value);\n\t\t\tXHR.appendData('default_process_limit',document.getElementById('default_process_limit').value);\n\t\t\tXHR.appendData('maximal_queue_lifetime',document.getElementById('maximal_queue_lifetime').value);\n\t\t\t\n\t\t\t\n\t\t\tXHR.appendData('queue_run_delay',document.getElementById('queue_run_delay').value);\n\t\t\tXHR.appendData('qmgr_message_active_limit',document.getElementById('qmgr_message_active_limit').value);\n\t\t\tXHR.appendData('qmgr_message_recipient_limit',document.getElementById('qmgr_message_recipient_limit').value);\n\t\t\tXHR.appendData('qmgr_message_recipient_minimum',document.getElementById('qmgr_message_recipient_minimum').value);\n\t\t\t\n\t\t\tdocument.getElementById('global-settings-128').src='img/wait_verybig.gif';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_SaveHostTunePostfix);\t\n\t\t\t}\t\n\t\n\t\n\t</script>\n\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:48,代码来源:domains.postfix.performances.php

示例6: popup

function popup()
{
    $hostname = $_GET["hostname"];
    $page = CurrentPageName();
    $users = new usersMenus();
    $tpl = new templates();
    $t = time();
    if (preg_match("#^([0-9]+)\\.([0-9]+)#", $users->POSTFIX_VERSION, $re)) {
        $major = intval($re[1]);
        $minor = intval($re[2]);
        $binver = "{$major}{$minor}";
        if ($binver < 210) {
            echo error_not_compatible();
            die;
        }
    }
    $main = new maincf_multi($hostname);
    $EnablePostfixHaProxy = $main->GET("EnablePostfixHaProxy");
    if (!is_numeric($EnablePostfixHaProxy)) {
        $EnablePostfixHaProxy = 0;
    }
    $p = Paragraphe_switch_img("{enable_smtp_haproxy}", "{enable_smtp_haproxy_explain}", "EnablePostfixHaProxy-{$t}", $EnablePostfixHaProxy, null, 880);
    $html = "\n\t<div id='{$t}'>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td>{$p}</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right'>" . button("{apply}", "SaveHapProxyCompliant{$t}()", "16px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar X_SaveHapProxyCompliant{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tYahooWin5Hide();\n\t\t}\t\t\n\t\n\tfunction SaveHapProxyCompliant{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('EnablePostfixHaProxy',document.getElementById('EnablePostfixHaProxy-{$t}').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',X_SaveHapProxyCompliant{$t});\n\t}\n\t\n\t</script>\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:25,代码来源:postfix.haproxy.php

示例7: 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);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:18,代码来源:postfix.other.php

示例8: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $main = new maincf_multi($_GET["hostname"]);
    $t = time();
    $html = "\n\t<div id='{$t}'></div>\n\t<div class=text-info style='font-size:14px'>{postfix_mailbox_transport_art_expl}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{agent_address}:</td>\n\t\t<td class=legend>" . Field_text("mailbox_transport-{$t}", $main->GET("mailbox_transport"), "font-size:16px;width:300px", null, null, null, false, "SaveMailBoxTransportCK{$t}(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveMailBoxTransport{$t}()", "18px") . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\tvar X_SaveMailBoxTransport{$t}= function (obj) {\n\t\t\t\tvar results=obj.responseText;\n\t\t\t\tif (results.length>0){alert(results);}\n\t\t\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\t\n\t\tfunction SaveMailBoxTransportCK{$t}(e){\n\t\t\tif(checkEnter(e)){SaveMailBoxTransport{$t}();}\n\t\t}\n\t\t\n\t\tfunction SaveMailBoxTransport{$t}(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\t\t\tXHR.appendData('mailbox_transport',document.getElementById('mailbox_transport-{$t}').value);\n\t\t\t\tAnimateDiv('{$t}');\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',X_SaveMailBoxTransport{$t});\n\t\t\t\t\n\t\t\t}\t\n\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:9,代码来源:postfix.mailbox_transport.php

示例9: popup_index

function popup_index()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $main = new maincf_multi($_GET["hostname"]);
    $address_verify_map = $main->GET("address_verify_map");
    $address_verify_negative_cache = $main->GET("address_verify_negative_cache");
    $address_verify_poll_count = $main->GET("address_verify_poll_count");
    $address_verify_poll_delay = $main->GET("address_verify_poll_delay");
    $address_verify_sender = $main->GET("address_verify_sender");
    $address_verify_negative_expire_time = $main->GET("address_verify_negative_expire_time");
    $address_verify_negative_refresh_time = $main->GET("address_verify_negative_refresh_time");
    $address_verify_positive_expire_time = $main->GET("address_verify_positive_expire_time");
    $address_verify_positive_refresh_time = $main->GET("address_verify_positive_refresh_time");
    if ($address_verify_map == null) {
        if ($_GET["hostname"] == "master") {
            $address_verify_map = "btree:/var/lib/postfix/verify";
        } else {
            $address_verify_map = "btree:/var/lib/postfix-{$_GET["hostname"]}/verify";
        }
    }
    if (!is_numeric($address_verify_negative_cache)) {
        $address_verify_negative_cache = 1;
    }
    if (!is_numeric($address_verify_poll_count)) {
        $address_verify_poll_count = 3;
    }
    if ($address_verify_poll_delay == null) {
        $address_verify_poll_delay = "3s";
    }
    if ($address_verify_sender == null) {
        $address_verify_sender = "double-bounce";
    }
    if ($address_verify_negative_expire_time == null) {
        $address_verify_negative_expire_time = "3d";
    }
    if ($address_verify_negative_refresh_time == null) {
        $address_verify_negative_refresh_time = "3h";
    }
    if ($address_verify_positive_expire_time == null) {
        $address_verify_positive_expire_time = "31d";
    }
    if ($address_verify_positive_refresh_time == null) {
        $address_verify_positive_refresh_time = "7d";
    }
    $html = "\n<span id='PostFixVerifyDatabaseSaveDiv'></span>\n<div style='font-size:16px'>{address_verify_map_minitext}</div><div class=explain>{address_verify_map_text}</div><br>\n\n\t\t<table style='width:99%;margin:10px;' class='form'>\n\t\t<tbody>\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', $address_verify_map, "font-size:14px;width:220px") . "</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_checkbox('address_verify_negative_cache', 1, $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', $address_verify_poll_count, 'width:60px;font-size:14px', 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', $address_verify_poll_delay, 'width:60px;font-size:14px', 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<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', $address_verify_sender, 'width:160px;font-size:14px', 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', $address_verify_negative_expire_time, 'width:60px;font-size:14px', 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', $address_verify_negative_refresh_time, 'width:60px;font-size:14px', 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', $address_verify_positive_expire_time, 'width:60px;font-size:14px', 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', $address_verify_positive_refresh_time, 'width:60px;font-size:14px', 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<tr>\n\t\t\t\t<td align='right' colspan=2>\n\t\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "PostFixVerifyDatabaseSave()") . "\n\t\t\t\t</td>\n\t\t\t\t\n\t\t\t</tr>\n\t\t\t</tbody>\t\t\t\t\n\t\t</table>\n\t<script>\n\t\n\tvar x_PostFixVerifyDatabaseSave=function(obj){\n    \tvar tempvalue=trim(obj.responseText);\n\t  \tif(tempvalue.length>3){alert(tempvalue);}\n\t\tdocument.getElementById('PostFixVerifyDatabaseSaveDiv').innerHTML='';\n\t\t}\t\n\t\n\t\tfunction PostFixVerifyDatabaseSave(){\n\t\t\tvar XHR = new XHRConnection();\t\n\t\t\tif(document.getElementById('address_verify_negative_cache').checked){XHR.appendData('address_verify_negative_cache','1');}else{XHR.appendData('address_verify_negative_cache','0');}\n\t\t\tXHR.appendData('address_verify_map',document.getElementById('address_verify_map').value);\n\t\t\tXHR.appendData('address_verify_poll_count',document.getElementById('address_verify_poll_count').value);\n\t\t\tXHR.appendData('address_verify_poll_delay',document.getElementById('address_verify_poll_delay').value);\n\t\t\tXHR.appendData('address_verify_sender',document.getElementById('address_verify_sender').value);\n\t\t\tXHR.appendData('address_verify_negative_expire_time',document.getElementById('address_verify_negative_expire_time').value);\n\t\t\tXHR.appendData('address_verify_negative_refresh_time',document.getElementById('address_verify_negative_refresh_time').value);\n\t\t\tXHR.appendData('address_verify_positive_expire_time',document.getElementById('address_verify_positive_expire_time').value);\n\t\t\tXHR.appendData('address_verify_positive_refresh_time',document.getElementById('address_verify_positive_refresh_time').value);\n\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\tAnimateDiv('PostFixVerifyDatabaseSaveDiv');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_PostFixVerifyDatabaseSave);\t\t\t\t\n\t\t\n\t\t}\n\t</script>\t\t\n\t\t";
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:49,代码来源:postfix.performances.verify.map.php

示例10: popup

function popup()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $tpl = new templates();
    $PostFixEnableAiguilleuse = $main->GET("PostFixEnableAiguilleuse");
    $enable = Paragraphe_switch_img("{PostFixEnableAiguilleuse}", "{PostFixEnableAiguilleuse_text}", "PostFixEnableAiguilleuse", $PostFixEnableAiguilleuse, null, 350);
    $html = "\n<table style='width:100%'>\n<td valign='top' width=1%>\n<center>\n\t<img src='img/128-nodes.png' id='128-nodes'>\n</center>\n\t\t<table style='width:100%;margin-top:10px;padding:10px;width:220px'>\n\t\t<tr " . CellRollOver("PostFixEnableAiguilleuseAdd()") . ">\n\t\t\t<td valign=top width=1% style='padding:5px'><img src='img/48-network-server-add.png'></td>\n\t\t\t<td valign='top' style='padding:5px'>\n\t\t\t<div>\n\t\t\t\t<strong style='font-size:13px'>{add_mail_server}</strong>\n\t\t\t</div>\n\t\t\t<div><i style='font-size:11px'>{postfix_multi_add_aiguilleuse_server}</i></div>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n</td>\n<td valign='top' width=99%>\n{$enable}\n<div style='margin:12px;text-align:right'>\t\n\t" . button("{apply}", "PostFixEnableAiguilleuseSave()") . "<hr>\n</div>\n<div id='PostFixEnableAiguilleuse-list' style='height:250px;width:100%;overflow:auto'>\t\n\n\n\n<script>\n\nvar x_PostFixEnableAiguilleuseSave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tdocument.getElementById('PostFixEnableAiguilleuse').src='img/128-nodes.png';\n\t}\n\t\n\t\n\tfunction PostFixEnableAiguilleuseSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('PostFixEnableAiguilleuse',document.getElementById('PostFixEnableAiguilleuse').value);\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tdocument.getElementById('PostFixEnableAiguilleuse').src='img/img/wait_verybig.gif';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_PostFixEnableAiguilleuseSave);\n\t\n\t}\n\n\tfunction RefreshPostfixAiguilleuseList(){\n\t\tLoadAjax('PostFixEnableAiguilleuse-list','{$page}?PostFixEnableAiguilleuse-list=yes&ou={$_GET["ou"]}&hostname={$_GET["hostname"]}');\n\t}\n\t\n\tRefreshPostfixAiguilleuseList();\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:domains.postfix.aiguilleuse.php

示例11: popup

function popup()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $tpl = new templates();
    $PostfixHideClientMua = $main->GET("PostfixHideClientMua");
    $enable = Paragraphe_switch_img("{ENABLE_HIDE_CLIENT_MUA}", "{HIDE_CLIENT_MUA_TEXT}", "PostfixHideClientMua", $PostfixHideClientMua, null, 330);
    $html = "\n\t<div id='PostfixHideClientMuaDiv'>\n\t\t{$enable}\n\t<hr>\n\t\t<div style='text-align:right'>" . button("{apply}", "PostfixHideClientMuaMultiSave()") . "</div>\t\n\t\t\n\t</div>\n\t\n\t<script>\nvar x_PostfixHideClientMua= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tLoadjs('{$page}?ou={$_GET["ou"]}&hostname={$_GET["hostname"]}');\n\t}\n\t\n\t\n\tfunction PostfixHideClientMuaMultiSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('PostfixHideClientMua',document.getElementById('PostfixHideClientMua').value);\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_PostfixHideClientMua);\n\t\n\t}\t\t\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:domains.postfix.hide.headers.php

示例12: popup

function popup()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $tpl = new templates();
    $PostFixEnableQueueInMemory = $main->GET("PostFixEnableQueueInMemory");
    $PostFixQueueInMemory = $main->GET("PostFixQueueInMemory");
    $enable = Paragraphe_switch_img("{PostFixEnableQueueInMemory}", "{PostFixEnableQueueInMemory_text}", "PostFixEnableQueueInMemory", $PostFixEnableQueueInMemory, null, 350);
    if ($PostFixQueueInMemory == null) {
        $PostFixQueueInMemory = 0;
    }
    $sock = new sockets();
    $datas = unserialize(base64_decode($sock->getFrameWork("cmd.php?postfix-mem-disk-status={$_GET["hostname"]}")));
    $MOUTED = $datas["MOUTED"];
    $TOTAL_MEMORY_MB = $datas["TOTAL_MEMORY_MB"];
    $TOTAL_MEMORY_MB_FREE = $datas["TOTAL_MEMORY_MB_FREE"];
    $html = "\n<table style='width:100%'>\n<td valign='top' width=1%>\n<center>\n\t<img src='img/bg_memory-150.png' id='bg_memory-150'>\n\t<div id='postfix-mem-status'></div>\n</center>\n</td>\n<td valign='top' width=99%>\n{$enable}\n<hr>\n\n<table style='width:100%'>\n<tr>\n<td class=legend style='font-size:16px'>{memory}:</td>\n<td style='font-size:16px'>" . Field_text("PostFixQueueInMemory", $PostFixQueueInMemory, "font-size:16px;padding:5px;width:120px") . "&nbsp;MB/{$TOTAL_MEMORY_MB_FREE}MB</td>\n</tr>\n</table>\n\n<div style='margin:12px;text-align:right'>\t\n\t" . button("{apply}", "PostFixEnableQueueInMemorySave()") . "<hr>\n</div>\n<script>\n\nvar x_PostFixEnableQueueInMemorySave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tdocument.getElementById('bg_memory-150').src='img/bg_memory-150.png';\n\tmem_status();\n\t}\n\t\n\t\n\tfunction PostFixEnableQueueInMemorySave(){\n\t\tvar TOTAL_MEMORY_MB_FREE={$TOTAL_MEMORY_MB_FREE};\n\t\tvar mem=document.getElementById('PostFixQueueInMemory').value;\n\t\tif(mem>TOTAL_MEMORY_MB_FREE){\n\t\t\talert(mem+'M >'+TOTAL_MEMORY_MB_FREE+' M');\n\t\t\treturn;\n\t\t}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('PostFixEnableQueueInMemory',document.getElementById('PostFixEnableQueueInMemory').value);\n\t\tXHR.appendData('PostFixQueueInMemory',document.getElementById('PostFixQueueInMemory').value);\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tdocument.getElementById('bg_memory-150').src='img/wait_verybig.gif';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_PostFixEnableQueueInMemorySave);\n\t\n\t}\n\t\n\tfunction mem_status(){\n\t\tLoadAjax('postfix-mem-status','{$page}?mem-status&hostname={$_GET["hostname"]}&ou={$_GET["ou"]}');\n\t}\n\tmem_status();\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:20,代码来源:domains.postfix.memory.php

示例13: popup

function popup()
{
    $ou = $_GET["ou"];
    $hostname = $_GET["hostname"];
    $main = new maincf_multi($hostname, $ou);
    $relayhost = $main->GET("relayhost");
    if (preg_match("#(.+?):(.+)#", $main->GET("relayhost_authentication"), $re)) {
        $username = $re[1];
        $password = $re[2];
    }
    $page = CurrentPageName();
    if ($relayhost != null) {
        $tools = new DomainsTools();
        $relayhost = "smtp:{$relayhost}";
        $relayT = $tools->transport_maps_explode($relayhost);
    }
    if ($relayT[1] != null) {
        $delete = imgtootltip("delete-48.png", "{delete}", "RelayHostDelete()");
    }
    $form = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<div class=explain>{relayhost_text}</div>\n\t\t\t<div id='relayhostdiv'>\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{relay_address}:</strong></td>\n\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('relay_address', $relayT[1], "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{smtp_port}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('relay_port', $relayT[2], ";font-size:14px;padding:3px;width:90px") . "</td>\t\n\t\t\t\t\t\t</tr>\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align='right' nowrap style='font-size:14px'>" . Field_yesno_checkbox_img('MX_lookups', $relayT[3], '{enable_disable}') . "</td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>{MX_lookups}</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{username}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('username', $username, "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{password}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_password('password', $password, "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right' colspan=2 align='right'>" . button("{apply}", "PostfixSaveRelayHost()") . "</td>\n\t\t\t\t\t\t</tr>\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='left' colspan=2><hr><div class=explain>{MX_lookups}<br>{MX_lookups_text}</div></td>\n\t\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign='top'>{$delete}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t</div>\n\t\t</td>\n\t</tr>\n</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body("{$form}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:23,代码来源:domains.postfix.multi.relayhost.php

示例14: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $freeze_delivery_queue = $main->GET('freeze_delivery_queue');
    if ($freeze_delivery_queue == 1) {
        $value = 0;
    } else {
        $value = 1;
    }
    $html = "\n\t<div id='freeze-id'>\n\t" . Paragraphe_switch_img("{pause_the_queue}", "{pause_the_queue_explain}", "freeze", $value, null, 320) . "<hr>\n\t<div style='text-align:right'>" . button("{apply}", "SaveFreeze()") . "</div>\n\t</div>\n\t<script>\n\t\tvar x_SaveFreeze= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\tYahooWin3Hide();\n\t\t\tif(document.getElementById('postfix-multi-servers-listed')){\n\t\t\t\tRefreshPostfixMultiList();\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\n\t\t\tfunction SaveFreeze(site){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\tXHR.appendData('freeze_delivery_queue',document.getElementById('freeze').value);\n\t\t\tdocument.getElementById('freeze-id').innerHTML=\"<center style='margin:10px'><img src='img/wait_verybig.gif'></center>\";\n\t\t\tXHR.sendAndLoad(\"{$page}\", 'GET',x_SaveFreeze);\t\t\n\t\t}\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:14,代码来源:postfix.freeze.queue.php

示例15: popup

function popup()
{
    $hostname = $_GET["hostname"];
    $page = CurrentPageName();
    $users = new usersMenus();
    $tpl = new templates();
    $t = time();
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $smtpd_banner = $main->GET('smtpd_banner');
    if ($smtpd_banner == null) {
        $smtpd_banner = "\$myhostname ESMTP \$mail_name";
    }
    $html = "\n\t<div id='{$t}'></div>\n\t<div class=text-info style='font-size:14px'>{SMTP_BANNER_TEXT}</div>\n\t\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{SMTP_BANNER}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_text("SMTP_BANNER-{$t}", $smtpd_banner, "font-size:16px;width:300px;font-weight:bold") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "Save{$t}()", "18px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar X_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t}\t\t\n\t\n\tfunction Save{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('SMTP_BANNER',document.getElementById('SMTP_BANNER-{$t}').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',X_Save{$t});\n\t}\n\t\n\t\n\t\n\t</script>\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:15,代码来源:postfix.banner.php


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