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); }
function PostFixAddServerCache() { $page = CurrentPageName(); $html = "<div style='padding:20px'>\n\t<H3>{add_server_domain}</H3>\n\t<p> </p>\n\t<form name='FFM3Cache'>\n\t<input type='hidden' name='PostFixAddServerCacheSave' value='yes'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td class=legend nowrap><strong>{domain}:</strong></td>\n\t<td>" . Field_text('domain', $domainName) . "</td>\n\t</tr>\n\t<td class=legend nowrap nowrap><strong>{or} {relay_address}:</strong></td>\n\t<td>" . Field_text('relay_address', $relay_address) . "</td>\t\n\t</tr>\n\t</tr>\n\t<td class=legend nowrap nowrap><strong>{smtp_port}:</strong></td>\n\t<td>" . Field_text('relay_port', $smtp_port) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td class=legend nowrap nowrap>" . Field_yesno_checkbox_img('MX_lookups', 'yes', '{enable_disable}') . "</td>\n\t<td>{MX_lookups}</td>\t\n\t</tr>\n\t{$sasl}\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"PostFixSaveServerCache();\"></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\n\t\t\n\t</table>\n\t</FORM>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function PostfixAddFallBackServer() { $ldap = new clladp(); if ($_GET["domainName"] != null) { $main = new main_cf(); $tool = new DomainsTools(); $arr = explode(',', $main->main_array["smtp_fallback_relay"]); if (is_array($arr)) { $array = $tool->transport_maps_explode($arr[$_GET["domainName"]]); $relay_address = $array[1]; $smtp_port = $array[2]; $MX_lookup = $array[3]; $hidden = "<input type='hidden' name='TableIndex' value='{$_GET["domainName"]}'>"; } } if ($smtp_port == null) { $smtp_port = 25; } if ($MX_lookup == null) { $MX_lookup = 'yes'; } $html = "<div style='padding:20px'>\n\t<H3>{add_server}</H3>\n\t<p> </p>\n\t<form name='FFM3'>\n\t{$hidden}\n\t<input type='hidden' name='PostfixAddFallBackerserverSave' 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', $relay_address) . "</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', $smtp_port) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups', $MX_lookup, '{enable_disable}') . "</td>\n\t<td>{MX_lookups}</td>\t\n\t</tr>\n\n\t<tr>\n\t<td align='right' class=caption colspan=2><input type='button' value='{edit} »' OnClick=\"javascript:XHRPostfixAddFallBackerserverSave();\"></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\n\t\t\n\t</table>\n\t</FORM>\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
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); }
function PagePostFixQueue_1() { $main = new main_cf(); $save = "<input type='button' value='{submit}»' OnClick=\"javascript:ParseForm('ffmStorageQueue','tree.listener.postfix.php',true);\">"; $html = "\n\t\t<div id=tablist>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(1)\" id=tab_current>{bounce_messages_rules}</a></li>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(2)\">{queue_settings}</a></li>\n\t\t</div>\n\t\t\n\t\t<H5 style='margin:0px;margin-bottom:4px;font-size:14px;'>{bounce_messages_rules}</H5>\n\t\t\t<p class=caption >{bounce_messages_rules_text}</p>\n\t\t" . RoundedLightWhite("<div style='width:100%;height:400px;overflow:auto'>\n\t\t<form name='ffmStorageQueue'>\n\t\t<input type='hidden' name='save_bounce_maincf' value='yes'>\n\t\t<table>\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{soft_bounce}</strong>:</td>\n\t\t\t <td>" . Field_yesno_checkbox_img('soft_bounce', $main->main_array["soft_bounce"], '{enable_disable}') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{soft_bounce_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 nowrap align='right' class=legend>{bounce_queue_lifetime}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_queue_lifetime', $main->main_array["bounce_queue_lifetime"], 'width:20%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_queue_lifetime_text}</td>\n\t\t</tr>\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_service_name}</strong>:</td>\n\t\t\t <td>" . Field_array_Hash($main->services_lists, 'bounce_service_name', $main->main_array["bounce_service_name"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_service_name_text}</td>\n\t\t</tr>\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_size_limit}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_size_limit', $main->main_array["bounce_size_limit"], 'width:20%') . " (bytes)</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_size_limit_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' valign='top'><strong>{bounce_template_file}</strong>:</td>\n\t\t\t <td><table>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('failure_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('failure_template');\"><strong>{failure_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('delay_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('delay_template');\"><strong>{delay_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('success_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('success_template');\"><strong>{success_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('verify_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('verify_template');\"><strong>{verify_template}</strong></a>\n\t\t\t \t</tr>\t\n\t\t\t\t</table>\n\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_template_file_text}</td>\n\t\t</tr>\t\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_notice_recipient}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_notice_recipient', $main->main_array["bounce_notice_recipient"], 'width:40%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_notice_recipient_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\t\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{double_bounce_sender}</strong>:</td>\n\t\t\t <td>" . Field_text('double_bounce_sender', $main->main_array["double_bounce_sender"], 'width:40%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{double_bounce_sender_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\t\t\t\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t</table>\n\t\t</form></div>"))))); $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function postfix_sasl() { $conf = new main_cf(); $enable_sasl = Field_yesno_checkbox_img('smtpd_sasl_auth_enable', $conf->main_array["smtpd_sasl_auth_enable"], '{enable_disable}'); $smtpd_sasl_authenticated_header = Field_yesno_checkbox_img('smtpd_sasl_authenticated_header', $conf->main_array["smtpd_sasl_authenticated_header"], '{enable_disable}'); $smtp_sender_dependent_authentication = Field_yesno_checkbox_img('smtp_sender_dependent_authentication', $conf->main_array["smtp_sender_dependent_authentication"], '{enable_disable}'); $html = "\n\t\t<form name='sasl'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td width=40% valign='top'>" . RoundedLightBlue("\n\t\t<div style='padding:5px;font-size:11px;'>\n\t\t<img src=\"img/infowarn-64.png\" align=left style=\"margin:3px\">{sasl_intro}</div>") . "\n\t\t</td>\n\t\t<td width='60%' valign='top'>\n\t" . RoundedLightGreen("\n\t\t<table style='width:100%;padding:5px'>\n\t\t\t<tr>\n\t\t\t<td width=1% align='center'>{$enable_sasl}</td>\n\t\t\t<td><strong>{smtpd_sasl_auth_enable}</strong>\n\t\t\t</tr>\n\t\t\t<td width=1% align='center'>{$smtpd_sasl_authenticated_header}</td>\n\t\t\t<td><strong>{smtpd_sasl_authenticated_header}</strong>\n\t\t\t</tr>\n\t\t\t</tr>\n\t\t\t<td width=1% align='center' valign='top'>{$smtp_sender_dependent_authentication}</td>\n\t\t\t<td><strong>{smtp_sender_dependent_authentication}</strong><div class=caption>{smtp_sender_dependent_authentication_text}</div>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t<td colspan=2 align='right'><input type='button' value='{apply} »' OnClick=\"javascript:SaveEnableSasl();\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\t<br><br><br>") . "</td></tr></table></form>"; $page = otherinfo(); $js["JS"][] = 'js/postfix-sasl.js'; $tplusr = new template_users('{sasl_title}', "{$html}<br><div id='infos'>{$page}</div>", 0, 0, 0, 0, $js); echo $tplusr->web_page; }
function Page() { $main = new main_cf(); $smtp_sasl_auth_enable = $main->main_array["smtp_sasl_auth_enable"]; $page = CurrentPageName(); $intro = applysettings("postfix") . RoundedLightBlue('<p style="text-align:justify;"><img src="img/infowarn-64.png" align=left style="margin:3px">{smtp_sasl_auth_enable_text}</p>'); $intro = $intro . "<br>" . "" . "<script>LoadAjax('sasllist','{$page}?loadsaslList=yes');</script>"; $form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Field_yesno_checkbox_img('smtp_sasl_auth_enable', $smtp_sasl_auth_enable, '{enable_disable}') . "</td>\n\t<td>\n\t\t<H5>{smtp_sasl_auth_enable}</H5>\n\t\t<br>\n\t\t{smtp_sasl_auth_enable_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditSasl();\" value='{apply} »'></td>\n\t</tr>\n\t</table>") . "\n\t<br>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/klakcon_285.png'></td>\n\t<td>\n\t\t<H5>{add_credentials}</H5>\n\t<br>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td colspan=2><strong>{isp_server_name}:</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_name', null) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td width=1% nowrap align='right'><strong>{username}:</strong></td>\n\t\t\t<td>" . Field_text('username', null) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right'><strong>{password}:</strong></td>\n\t\t\t<td>" . Field_text('password', null) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"javascript:sasl_add_isp_relay();\">\n\t\t</tr>\t\t\t\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>") . "<br>" . RoundedLightGrey("<H5>{table}</H5><div id='sasllist'></div>"); $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=50%>\t\n\t{$form}</td>\n\t<td valign='top' width=50%>" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>{$intro}</td>\n\t</tr>\n\t</table>"; $cfg["LANG_FILE"] = "artica.wizard.php"; $cfg["JS"][] = "js/postfix-sasl.js"; $tpl = new template_users('{send_to_isp}', $html, 0, 0, 0, 0, $cfg); echo $tpl->web_page; }
function PageAveServerUpdateConfig() { $yum = new usersMenus(); $tpl = new templates(); if ($yum->AsPostfixAdministrator == false) { return $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>"); } include_once dirname(__FILE__) . '/ressources/kav4mailservers.inc'; $kav = new kav4mailservers(1); $array_conf = $kav->array_conf["updater.options"]; $cron = $kav->CronTask(); $UseUpdateServerUrl = Field_yesno_checkbox_img('UseUpdateServerUrl', $array_conf["UseUpdateServerUrl"]); $UseUpdateServerUrlOnly = Field_yesno_checkbox_img('UseUpdateServerUrlOnly', $array_conf["UseUpdateServerUrlOnly"]); $PassiveFtp = Field_yesno_checkbox_img('PassiveFtp', $array_conf["PassiveFtp"]); $html = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top'><img src='img/bg_download.jpg'></td>\n\t\t<td valign='top'>\n\t\t" . RoundedLightGreen("<strong>{schedule}:« {$cron} »</strong>") . "<br>" . RoundedLightGrey("<form name=ffmupdate>\n\t\t<input type='hidden' value='{$array_conf["PostUpdateCmd"]}' name='PostUpdateCmd'>\n\t\t<H4>{keepup2date settings}</H4>\n\t\t<table>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrl}</td>\n\t\t<td align='left' nowrap>{UseUpdateServerUrl}</td>\n\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrlOnly}</td>\n\t\t<td align='left'>{UseUpdateServerUrlOnly}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$PassiveFtp}</td>\n\t\t<td align='left'>{PassiveFtp}</td>\n\t\t</tr>\t\t\t\n\t\t</table>\n\t\t<table>\n\t\t<tr>\n\t\t<td align='right' nowrap>{UpdateServerUrl}:</td>\n\t\t<td align='left'>" . Field_text('UpdateServerUrl', $array_conf["UpdateServerUrl"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right'>{ProxyAddress}:</td>\n\t\t<td align='left'>" . Field_text('ProxyAddress', $array_conf["ProxyAddress"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right'>{ConnectTimeout}:</td>\n\t\t<td align='left'>" . Field_text('ConnectTimeout', $array_conf["ConnectTimeout"], '') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffmupdate','users.kav.php',true);\" value='{submit} »'></td>\n\t\t</tr>\n\t\t</table>\n\t\t</form>") . "<br>\n\n\t\t\n\t\t\t\n\t\t<br>\n\t\t</td>\n\t\t</tr>\n\t\t<tr><td align='center' colspan=2><input type='button' OnClick=\"javascript:KavUpdates()\" value='« {update_now} »'></td></tr>\n\t\t<tr><td colspan=2>" . UpdatesError() . UpdatesSuccess() . "</td>\n\t\t</tr>\n\t\t</table>\n\t\t"; return $tpl->_ENGINE_parse_body($html); }
function config_antispam() { $hostname = $_GET["hostname"]; $ou = $_GET["ou"]; $page = CurrentPageName(); $main = new maincf_multi($_GET["hostname"], base64_decode($_GET["ou"])); $conf = unserialize(base64_decode($main->GET_BIGDATA("amavis_config"))); $users = new usersMenus(); $tpl = new templates(); $sa_quarantine_cutoff_level = $tpl->_ENGINE_parse_body('{sa_quarantine_cutoff_level}', 'spamassassin.index.php'); $sa_tag3_level_defltl = $tpl->_ENGINE_parse_body('{sa_tag3_level_deflt}', 'spamassassin.index.php'); if (strlen($sa_quarantine_cutoff_level) > 70) { $sa_quarantine_cutoff_level = texttooltip(substr($sa_quarantine_cutoff_level, 0, 67) . "..:", $sa_quarantine_cutoff_level, null, null, 1); } if (strlen($sa_tag3_level_defltl) > 70) { $sa_tag3_level_defltl = texttooltip(substr($sa_tag3_level_defltl, 0, 67) . "...:", $sa_tag3_level_defltl, null, null, 1); } $html = "\n<div id='amavisspamassassin_multi'>\n\t<p style='font-size:14px'>{spamassassin_text}</p>\n\t<table style='width:100%'>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_tag2_level_deflt}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_tag2_level_deflt', $conf["sa_tag2_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td>" . Field_numeric_checkbox_img('spam_quarantine_spammy', $conf["spam_quarantine_spammy"], '{spam_quarantine_spammy}') . "</td>\t\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$sa_tag3_level_defltl}</td>\n\t\t\t<td width=1%>" . Field_text('sa_tag3_level_deflt', $conf["sa_tag3_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td>" . Field_numeric_checkbox_img('spam_quarantine_spammy2', $conf["spam_quarantine_spammy2"], '{spam_quarantine_spammy}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_kill_level_deflt}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_kill_level_deflt', $conf["sa_kill_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\t\n\t\t<tr>\t\n\t\t<tr><td colspan=3><hr></td></tR>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_dsn_cutoff_level}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_dsn_cutoff_level', $conf["sa_dsn_cutoff_level"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$sa_quarantine_cutoff_level}</td>\n\t\t\t<td width=1%>" . Field_text('sa_quarantine_cutoff_level', $conf["sa_quarantine_cutoff_level"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\t\n\t</table>\n\t<hr>\n\t\t<table style='width:100%'>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend nowrap>{spam_subject_tag_maps}:</td>\n\t\t\t\t\t<td width=1%>" . Field_yesno_checkbox_img('spam_subject_tag_maps_enable', $conf["spam_subject_tag_maps_enable"], '{enable_disable}') . "</td>\n\t\t\t\t\t<td width=1%>" . Field_text('spam_subject_tag_maps', $conf["spam_subject_tag_maps"], 'width:190px') . "</td>\n\t\t\t\t\t<td class=legend nowrap>{score}:</td>\n\t\t\t\t\t<td>" . Field_text("sa_tag_level_deflt", $conf["sa_tag_level_deflt"], 'width:33px') . "</td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend nowrap>{spam_subject_tag2_maps}:</td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td width=1%>" . Field_text('spam_subject_tag2_maps', $conf["spam_subject_tag2_maps"], 'width:190px') . "</td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t</tr>\t\n\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=5 align='right'>\n\t\t\t\t\n\t\t\t\t<hr>" . button("{apply}", "SaveAmavisSpamAssassinMulti()") . "\n\t\t\t\t</td>\n\t\t\t</tr>\t\n\t\t</table>\t\t\n\t</div>\n\t\n\t<script>\n\t\n\tvar x_SaveAmavisSpamAssassinMulti= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\tRefreshTab('main_config_amavis_multi');\n\t\t}\t\t\t\n\t\n\t\tfunction SaveAmavisSpamAssassinMulti(){\n\t var XHR = new XHRConnection();\n\t XHR.appendData('sa_tag2_level_deflt',document.getElementById('sa_tag2_level_deflt').value);\n\t XHR.appendData('spam_quarantine_spammy',document.getElementById('spam_quarantine_spammy').value);\n\t XHR.appendData('sa_tag3_level_deflt',document.getElementById('sa_tag3_level_deflt').value);\n\t XHR.appendData('spam_quarantine_spammy2',document.getElementById('spam_quarantine_spammy2').value);\n\t XHR.appendData('sa_kill_level_deflt',document.getElementById('sa_kill_level_deflt').value);\n\t XHR.appendData('sa_dsn_cutoff_level',document.getElementById('sa_dsn_cutoff_level').value);\n\t XHR.appendData('sa_quarantine_cutoff_level',document.getElementById('sa_quarantine_cutoff_level').value);\n\t XHR.appendData('spam_subject_tag_maps_enable',document.getElementById('spam_subject_tag_maps_enable').value);\n\t XHR.appendData('spam_subject_tag_maps',document.getElementById('spam_subject_tag_maps').value);\n\t XHR.appendData('sa_tag_level_deflt',document.getElementById('sa_tag_level_deflt').value);\n\t XHR.appendData('spam_subject_tag2_maps',document.getElementById('spam_subject_tag2_maps').value);\n\t\t XHR.appendData('hostname','{$hostname}');\n\t\t XHR.appendData('ou','{$ou}'); \n\t\t document.getElementById('amavisspamassassin_multi').innerHTML='<center style=\"margin:20px;padding:20px\"><img src=\"img/wait_verybig.gif\"></center>';\n\t\t XHR.sendAndLoad('{$page}', 'GET',x_SaveAmavisSpamAssassinMulti);\n\t\t}\n\t\n\t</script>\n\t\n\t"; echo $tpl->_ENGINE_parse_body($html, 'spamassassin.index.php'); }
function FetchPage() { $mny = new usersMenus(); if ($mny->AllowFetchMails == false) { users_page(); exit; } $option[""] = "{default}"; $option["pop3"] = "POP3"; $option["pop2"] = "POP2"; $option["imap"] = "IMAP"; $option["imap-k4"] = "IMAP-K4"; $option["imap-gss"] = "IMAP-GSS"; $option["apop"] = "APOP"; $option["kpop"] = "KPOP"; $auth[""] = "Default"; $auth["password"] = "******"; $auth["kerberos_v5"] = "KERBEROS_V5"; $auth["kerberos_v4"] = "KERBEROS_V4"; $auth["gssapi"] = "GSSAPI"; $auth["cram-md5"] = "CRAM-MD5"; $auth["otp"] = "OTP"; $auth["ntlm"] = "NTLM"; $auth["ssh"] = "SSH"; $status = '{add mode}'; if (isset($_GET["Fetchedit"])) { $ldap = new clladp(); $hashusr = $ldap->UserDatas($_SESSION["uid"]); $datas = $hashusr["fetchmail"][$_GET["Fetchedit"]]; $id = "<input type='hidden' name='array_num' id='array_num' value='{$_GET["Fetchedit"]}'>"; $status = '{edit mode}'; } $protocol = Field_array_Hash($option, 'proto', $datas["proto"]); $authent = Field_array_Hash($auth, 'auth', $datas["auth"]); $livemess = Field_yesno_checkbox_img('keep', $datas["keep"]); $ssl = Field_yesno_checkbox_img('ssl', $datas["ssl"]); $page = CurrentPageName(); $html = TabsPage() . "\n\t\t<legend>{remote-mail retrieval}</legend>\n\t\t\n\t\t<table>\n\t\t<tr>\n\t\t<td valign='top' width=1%'><img src='img/updaterX-192.gif'></td>\n\t\t<td valign='top'>\n\t\t<fieldset style='width:90%'><legend>{$status}</legend>\n\t\t<form name=ffmFetch>{$id}\n\t\t<table style='width:99%'>\n\t\t<tr>\n\t\t\t<td valing='top' align='right' colspan=2 style='padding-right:20px'><input type='button' OnClick=\"javascript:document.location.href='{$page}?tab=1'\" value='{add} {new} {rule} »' ></td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote server mailbox}:</td>\n\t\t\t<td valing='top' align='left'>" . Field_text('pool', $datas["pool"], 'width:50%') . " {$protocol}</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote username}:</td>\n\t\t\t<td valing='top' align='left'>" . Field_text('user', $datas["user"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote password}:</td>\n\t\t\t<td valing='top' align='left'><input type='password' name='pass' id='pass' style='width:50%' value='{$datas["pass"]}'> {$authent}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{Leave messages on server}:</td>\n\t\t\t<td valing='top' align='left'>{$livemess}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{Connect in SSL mode}:</td>\n\t\t\t<td valing='top' align='left'>{$ssl}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right' colspan=2><input type='button' value='{submit} »' OnClick=\"javascript:SaveFetchForm();\"></td>\n\t\t</tr>\t\n\t\t</table>\t\n\t</form>\n\t</fieldset>\n\t<fieldset style='width:90%'><legend>{list}</legend>" . fetchmail_datas() . "</fieldset>\t\t\t\n\t</td>\n\t</tr>\n\t</table>\n\t\t\t\t\t\t\t\t\t\t\n\t\t</FIELDSET>\n\t\t\n\t\t"; $tpl = new template_users("{remote-mail retrieval}", $html); echo $tpl->web_page; }
function INDEX() { if (!isset($_GET["ou"])) { header('location:domains.index.php'); exit; } $page = CurrentPageName(); $ou = $_GET["ou"]; $ldap = new clladp(); $hash = $ldap->OUDatas($ou); $ArticaFakedMailFrom_table = array("pass" => '{pass}', "quarantine" => "{quarantine}", "delete" => "{delete}"); $ArticaFakedMailFrom_field = Field_array_Hash($ArticaFakedMailFrom_table, "ArticaFakedMailFrom", $hash["ArticaFakedMailFrom"], null, null, null, 'width:100px'); $ArticaDenyNoMXRecords_table = array('pass' => '{pass}', "reject" => "{reject}"); $ArticaDenyNoMXRecords_field = Field_array_Hash($ArticaDenyNoMXRecords_table, "ArticaDenyNoMXRecords", $hash["ArticaDenyNoMXRecords"], null, null, null, 'width:100px'); $ArticaOuTrustMyUSers_field = Field_yesno_checkbox_img('OuTrustMyUSers', $hash["OuTrustMyUSers"], '{enable_disable}'); $ArticaOuTrustMyUSers = "<H5>{trust_users}</H5>\n\t<div class=caption>{trust_users_text}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{trust_users}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaOuTrustMyUSers_field}</td>\n\t\t\n\t</tr>\t\n\t</table>\n\t\n\t"; $ArticaOuTrustMyUSers = RoundedLightGreen($ArticaOuTrustMyUSers); $html = "\n\t<form name='FFMQ'>\n\t<table style='width:100%;'>\n\t<tr>\n\t\t<td width=50% valign='top' style='margin:4px;padding:4px'>\n\t<input type='hidden' name='ou' value='{$ou}'>\n\t" . RoundedLightGrey("<H5>{ArticaFakedMailFrom}</H5>\n\t<div class=caption>{ArticaFakedMailFrom_text}</div>\n\t<table style='width:90%;border:1px solid #CCCCCC;padding:5px;margin:5px'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{ArticaFakedMailFrom}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaFakedMailFrom_field}</td>\n\t\t\n\t</tr>\n\t</table>") . "</td>\n\t\n\t\n\t<td width=50% valign='top' style='margin:4px;padding:4px'>" . RoundedLightGrey("\n\t<H5>{ArticaDenyNoMXRecords}</H5>\n\t<div class=caption>{ArticaDenyNoMXRecords_text}</div>\n\t<table style='width:90%;border:1px solid #CCCCCC;padding:5px;margin:5px'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{ArticaDenyNoMXRecords}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaDenyNoMXRecords_field}</td>\n\t\t\n\t</tr>\t\n\t</table>\n\t") . "\n\t<br>\n\t{$ArticaOuTrustMyUSers}\n\t</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right' style='border-top:1px solid #CCCCCC'><input type='submit' value='{apply} »' style='width:150px'></td>\n\t</tr>\n\t</table>\n\t</form>"; $cfg["JS"][] = "js/quarantine.ou.js"; $tpl = new template_users('{artica_filters_rules}', $html, 0, 0, 0, 0, $cfg); echo $tpl->web_page; }
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}"); }
function FORBIDDEN_ATTACHMENTS_GROUPS($gid) { $ldap = new clladp(); $hashG = $ldap->GroupDatas($gid); $ou = $hashG["ou"]; if ($ou == null) { $ou = $_GET["ou"]; } $page = CurrentPageName(); $path = "cn=forbidden_attachments,ou={$ou},dc=organizations,{$ldap->suffix}"; $hash = $ldap->Ldap_search($path, '(&(ObjectClass=FilterExtensionsGroup)(cn=*))', array('cn')); $html = "\n\t<center><input type='button' value='« {add_attach_rule} »' OnClick=\"javascript:group_add_attach_rule('{$gid}');\"></center>\n\t<form name='FFM1'>\n\t\n\t<input type='hidden' name='SaveAttachmentGroup' value='{$gid}'>\n\t<table style='width:100%;padding:1px;border:1px solid #CCCCCC;margin:20px'>\n\t\t<tr style='background-color:#CCCCCC'>\n\t\t<th> </th>\n\t\t<th><strong>{artica_filtersext_rules} {group}</th>\n\t\t<th><strong>{enabled}</th>\n\t\t</tr>"; if (is_array($hash)) { for ($i = 0; $i < $hash["count"]; $i++) { $group_name = $hash[$i]["cn"][0]; if (trim($group_name) != null) { if ($hashG["FiltersExtensionsGroupName"][$group_name] == "yes") { $value = 'yes'; } else { $value = "no"; } $html = $html . "\n\t\t\t\t<tr style='background-color:#F3F3DF'>\n\t\t\t\t<td width='1%'><img src='img/red-pushpin-24.png'></td>\n\t\t\t\t<td><strong style='font-size:13px'>{$group_name}</strong></td>\n\t\t\t\t<td width=1% align='center'>" . Field_yesno_checkbox_img($group_name, $value, '{enable_disable}') . "</td>\n\t\t\t\t</tr>"; } } } return $html . "\n\t\t<tr>\n\t\t<td width=1% valign='top' align='right' style='background-color:#F6F5E7' colspan=3>\n\t\t<input type='button' value='{apply} »' OnClick=\"javascript:ParseForm('FFM1','{$page}',true);\">\n\t\t</td>\n\t\t</FORM>\n\t\t</table>"; }
function remote_domain_form() { $_GET["index"] = base64_decode($_GET["index"]); $ou = $_GET["ou"]; if (is_base64_encoded($ou)) { $ou = base64_decode($ou); } $ldap = new clladp(); $HashDomains = $ldap->Hash_relay_domains($_GET["ou"]); $tools = new DomainsTools(); $arr = $tools->transport_maps_explode($HashDomains[$_GET["index"]]); $page = CurrentPageName(); $autoalias = new AutoAliases($_GET["ou"]); $users = new usersMenus(); $users->LoadModulesEnabled(); $num = $_GET["index"]; if (strlen($autoalias->DomainsArray[$num]) > 0) { $alias = "yes"; } $button_as_settings = Paragraphe('64-buldo.png', '{Anti-spam}', '{antispam_text}', "javascript:Loadjs('domains.amavis.php?domain={$num}');"); if (!$users->AMAVIS_INSTALLED) { $button_as_settings = null; } if ($users->EnableAmavisDaemon != 1) { $button_as_settings = null; } if (!$users->AllowChangeAntiSpamSettings) { $button_as_settings = null; } if ($_GET["index"] != "new domain") { $dn = "cn=@{$num},cn=relay_recipient_maps,ou={$_GET["ou"]},dc=organizations,{$ldap->suffix}"; $trusted_smtp_domain = 0; if ($ldap->ExistsDN($dn)) { $trusted_smtp_domain = 1; } $edit_button = "<hr>" . button("{apply}", "EditRelayDomain('{$num}')", "30px"); $trusted = Paragraphe_switch_img("{trusted_smtp_domain}", "{trusted_smtp_domain_text}", "trusted_smtp_domain", $trusted_smtp_domain, "{enable_disable}", 810); $roundrobin = Paragraphe('64-computer-alias.png', '{roundrobin}', '{roundrobin_text}', "javascript:Loadjs('{$page}?round-robin=yes&ou={$_GET["ou"]}&domain={$num}');"); $form = "\n\t<div style='width:98%' class=form>\n\t<div style='font-size:30px'>{organization}:{$ou}</div>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td><strong style='font-size:18px;color:black'>{domain_name}:</strong></td>\n\t\t\t<td align='right'><strong style='font-size:18px;color:black'>{$_GET["index"]}</strong></td>\n\t\t</tr>\n\t\t<tr>\t\t\t\t\t\t\t\n\t\t\t<td nowrap><strong style='font-size:18px;color:black'>{target_computer_name}: </strong></td>\n\t\t\t<td align='right'>" . Field_text("{$num}_IP", $arr[1], 'width:99%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t\t<td align='right' colspan=2><strong style='font-size:18px;color:black'>{port}: " . Field_text("{$num}_PORT", $arr[2], 'width:110px;padding:3px;font-size:18px') . " " . Field_yesno_checkbox_img("{$num}_MX", $arr[3], '{mx_look}') . " " . Field_yesno_checkbox_img("{$num}_autoaliases", $alias, '<b>{autoaliases}</b><br>{autoaliases_text}') . "\n\t\t\t</td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t\t<td align='right' colspan=2>{$edit_button}</td>\n\t\t</tr>\n\t</table>\n\t</div>"; } else { $button_as_settings = null; $form = "\n\t<div style='width:98%' class=form>\n\t\t\t<div style='font-size:30px'>{organization}:{$ou}</div>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend><strong style='font-size:18px;color:black'>{domain_name}:</strong></td>\n\t\t\t<td align='right'>" . Field_text('AddNewRelayDomainName', null, 'width:98%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t<tr>\t\t\t\t\t\n\t\t\t<td nowrap class=legend><strong style='font-size:18px;color:black'>{target_computer_name}: </strong></td>\n\t\t\t<td align='right'>" . Field_text('AddNewRelayDomainIP', null, 'width:98%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t\t<td align='right' colspan=2><strong style='font-size:18px;color:black'>{port}: " . Field_text('AddNewRelayDomainPort', '25', 'width:120px;padding:3px;font-size:18px') . " " . Field_yesno_checkbox_img('MX', 'no', '{mx_look}') . "\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><div style='float:right'>" . Paragraphe_switch_img("{trusted_smtp_domain}", "{trusted_smtp_domain_text}", "trusted_smtp_domain", 1, "{enable_disable}", 810) . "</div></td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td align='right' colspan=2>\n\t\t\t<hr>" . button("{add}", "AddRelayDomain()", "22px") . "</td>\n\t\t</tr>\n\t</table></div>"; } $html = "\n\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>{$form}</td>\n\t<td valign='top' style='padding-left:5px'>{$button_as_settings}{$roundrobin}{$trusted}</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'>{$edit_button}</td>\n</tr>\n</table>\n\n"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
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); }
function PageKas3ProcessServer() { $page = "kas.engine.settings.php"; $yum = new usersMenus(); $tpl = new templates(); if ($yum->AsPostfixAdministrator == false) { return $this->tplClass->_ENGINE_parse_body("<h3>{not allowed}</H3>"); } $kas = new kas_filter(); $arrayyesno = array("yes" => "yes", "no" => "no"); $FilterParseMSOffice = Field_yesno_checkbox_img('FilterParseMSOffice', $kas->array_datas["FilterParseMSOffice"]); $FilterUDSEnabled = Field_yesno_checkbox_img('FilterUDSEnabled', $kas->array_datas["FilterParseMSOffice"]); if (isset($_GET["nodiv"])) { $tabs = ajaxtabs(); } else { $tabs = PageTabs(); } $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t{$tabs}\n\t\t<form name='kas3S'>\n\t\t\t<input type='hidden' name='TreeKas3SaveSettings' value='yes'>\n\t\t\t\n\t\t\t\t<H5>{Process Server Settings}</H5>\n\t\t\t\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Max. number of filtration processes}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerMaxFilters' name=ServerMaxFilters value='{$kas->array_datas["ServerMaxFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Number of filtration processes at server start-up}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerStartFilters' name=ServerStartFilters value='{$kas->array_datas["ServerStartFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Number of spare filtration processes}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerSpareFilters' name=ServerSpareFilters value='{$kas->array_datas["ServerSpareFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\n\t\t\t\t\t<h5>{Check Options}</h5>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tr >\n\t\t\t\t\t<td align='right'>{Number of Received headers to be parsed while retrieving ip address}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterReceivedHeadersLimit' name=FilterReceivedHeadersLimit value='{$kas->array_datas["FilterReceivedHeadersLimit"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Overall timeout of all DNS requests}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterDNSTimeout' name=FilterDNSTimeout value='{$kas->array_datas["FilterDNSTimeout"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Check MS Word and RTF files}:</td>\n\t\t\t\t\t<td>{$FilterParseMSOffice}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{UDS_enabled}:</td>\n\t\t\t\t\t<td>{$FilterUDSEnabled}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr >\n\t\t\t\t\t<td align='right'>{Timeout for receiving response from UDS server}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterUDSTimeout' name=FilterUDSTimeout value='{$kas->array_datas["FilterUDSTimeout"]}' style='width:100px'></td>\n\t\t\t\t</tr>\t\t\t\n\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\n\t\t<h5>{Filtration Process}</h5>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right'>{Max. number of mail messages to be processed}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterMaxMessages' name=FilterMaxMessages value='{$kas->array_datas["FilterMaxMessages"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Max. number of mail messages randomization}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterRandMessages' name=FilterRandMessages value='{$kas->array_datas["FilterRandMessages"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Max_idle_time_in_seconds}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterMaxIdle' name=FilterMaxIdle value='{$kas->array_datas["FilterMaxIdle"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Exit_delay_in_seconds}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterDelayedExit' name=FilterDelayedExit value='{$kas->array_datas["FilterDelayedExit"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t\t</form>\n\t\t\t<div align='rigth' style='width:100%;text-align:right'><input type='button' OnClick=\"javascript:ParseForm('kas3S','{$page}',true);\" value='{save parameters} »'></div><br>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>"; return $tpl->_ENGINE_parse_body($html); }
function GroupBehavior() { $page = CurrentPageName(); $artica = new artica_general(); $enablegroup = Field_yesno_checkbox_img('enableGroups', $artica->EnableGroups, '{enable_disable}'); $html = "<div style='margin:5px;padding:5px'>\n<h3>{group_behavior}</h3>\n{group_behavior_text2}\n<p> </p>\n<form name='ffm1'>\n<input type='hidden' name='SaveGroupBehavior' value='1'>\n<table style='width:40%'>\n<tr>\n<td><strong>{group_behavior}:</td><td width=1%>{$enablegroup}</td>\n<td><input type='button' value='{submit} »' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\"> </td>\n</tr>\n</table>\n</form>\n</div>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
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); }
function Defaultspy() { $mailman = new mailman(null); $html = "<div style='padding:20px'>\n\t\t<form name='ffm1'>\n\t\t<input type='hidden' name='GlobalAdministrationParameters' value='GlobalAdministrationParameters'>\n\t\t<input type='hidden' name='id' value='gs'>\n\t\t<H3>{global_settings}</h3>\n\t\t<br>" . RoundedLightGrey("\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right'><strong>{MailManAdminPassword}:</strong></td>\n\t\t<td>" . Field_text('MailManAdminPassword', $mailman->main_default_array["MailManAdminPassword"], 'width:80%', null, null, '{MailManAdminPassword_text}', false) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td align='right'><strong>{mailmandefaultemailhost}:</strong></td>\n\t\t<td>" . Field_text('MailManDefaultEmailHost', $mailman->main_default_array["MailManDefaultEmailHost"], 'width:80%', null, null, '{mailmandefaulthosts}', false) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right'><strong>{MailManDefaultUrlHost}:</strong></td>\n\t\t<td>" . Field_text('MailManDefaultUrlHost', $mailman->main_default_array["MailManDefaultUrlHost"], 'width:80%', null, null, '{mailmandefaulthosts}', false) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right'><strong>{MailManDefaultUrlPattern}:</strong></td>\n\t\t<td>" . Field_text('MailManDefaultUrlPattern', $mailman->main_default_array["MailManDefaultUrlPattern"], 'width:80%', null, null, '{MailManDefaultUrlPattern}', false) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td align='right'><strong>{MailManDefaulPublicArchiveUrl}:</strong></td>\n\t\t<td>" . Field_text('MailManDefaulPublicArchiveUrl', $mailman->main_default_array["MailManDefaulPublicArchiveUrl"], 'width:80%', null, null, '{MailManDefaulPublicArchiveUrl_text}', false) . "</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t<td align='right'><strong>{VirtualHostOverview}:</strong></td>\n\t\t<td>" . Field_yesno_checkbox_img('VirtualHostOverview', $mailman->main_default_array["VirtualHostOverview"], '{VirtualHostOverview_text}') . "</td>\n\t\t</tr>\n\n\t\t\t\n\t\t</form>\n\t\t<tr>\n\t\t<td align='right'> </td>\n\t\t<td align='right'><input type='button' value='{apply} »' OnClick=\"javascript:ParseForm('ffm1','" . CurrentPageName() . "',true);\"></td>\n\t\t</tr>\n\t\t</table>") . "</div>"; $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function spamassassin_popup() { $amavis = new amavis(); $users = new usersMenus(); $tpl = new templates(); $ipcountry = Paragraphe('folder-64-denywebistes-grey.png', '{deny_countries}', '{error_feature_not_installed}<br>RelayCountry'); if ($users->spamassassin_ipcountry) { $ipcountry = Paragraphe('folder-64-denywebistes.png', '{deny_countries}', '{deny_countries_text_spam}', "javascript:Loadjs('spamassassin.RelayCountry.php')"); } $page = CurrentPageName(); $form_js = "ParseForm('FFM_filterbehavior_popup','{$page}',false,false,false,'amavisspamassassin',null,x_ParseForm_Spamassassin);"; $sa_quarantine_cutoff_level = $tpl->_ENGINE_parse_body('{sa_quarantine_cutoff_level}', 'spamassassin.index.php'); $sa_tag3_level_defltl = $tpl->_ENGINE_parse_body('{sa_tag3_level_deflt}', 'spamassassin.index.php'); if (strlen($sa_quarantine_cutoff_level) > 70) { $sa_quarantine_cutoff_level = texttooltip(substr($sa_quarantine_cutoff_level, 0, 67) . "..:", $sa_quarantine_cutoff_level, null, null, 1); } if (strlen($sa_tag3_level_defltl) > 70) { $sa_tag3_level_defltl = texttooltip(substr($sa_tag3_level_defltl, 0, 67) . "..:", $sa_tag3_level_defltl, null, null, 1); } $html = "\n<div id='amavisspamassassin'>\n\t<form name='FFM_filterbehavior_popup'>\n\t<input type='hidden' name='INI_SAVE' value='BEHAVIORS' id='INI_SAVE'>\n\t<p style='font-size:14px'>{spamassassin_text}</p>\n\t<table style='width:100%'>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{replicate_all_domains}:</td>\n\t\t\t<td width=1%>" . Field_numeric_checkbox_img('replicate_conf_all_domains', $amavis->main_array["BEHAVIORS"]["replicate_conf_all_domains"], '{replicate_all_domains}') . "</td>\n\t\t\t<td> </td>\t\t\t\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_tag2_level_deflt}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_tag2_level_deflt', $amavis->main_array["BEHAVIORS"]["sa_tag2_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td>" . Field_numeric_checkbox_img('spam_quarantine_spammy', $amavis->EnableQuarantineSpammy, '{spam_quarantine_spammy}') . "</td>\t\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$sa_tag3_level_defltl}</td>\n\t\t\t<td width=1%>" . Field_text('sa_tag3_level_deflt', $amavis->main_array["BEHAVIORS"]["sa_tag3_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td>" . Field_numeric_checkbox_img('spam_quarantine_spammy2', $amavis->EnableQuarantineSpammy2, '{spam_quarantine_spammy}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_kill_level_deflt}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_kill_level_deflt', $amavis->main_array["BEHAVIORS"]["sa_kill_level_deflt"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\t\n\t\t</tr>\t\t\n\t\t<tr><td colspan=3><hr></td></tR>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{sa_dsn_cutoff_level}:</td>\n\t\t\t<td width=1%>" . Field_text('sa_dsn_cutoff_level', $amavis->main_array["BEHAVIORS"]["sa_dsn_cutoff_level"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$sa_quarantine_cutoff_level}</td>\n\t\t\t<td width=1%>" . Field_text('sa_quarantine_cutoff_level', $amavis->main_array["BEHAVIORS"]["sa_quarantine_cutoff_level"], 'width:90px') . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\n\t</table>\n\t<hr>\n<table style='width:100%'>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{spam_subject_tag_maps}:</td>\n\t\t\t<td width=1%>" . Field_yesno_checkbox_img('spam_subject_tag_maps_enable', $amavis->main_array["BEHAVIORS"]["spam_subject_tag_maps_enable"], '{enable_disable}') . "</td>\n\t\t\t<td width=1%>" . Field_text('spam_subject_tag_maps', $amavis->main_array["BEHAVIORS"]["spam_subject_tag_maps"], 'width:190px') . "</td>\n\t\t\t<td class=legend nowrap>{score}:</td>\n\t\t\t<td>" . Field_text("sa_tag_level_deflt", $amavis->main_array["BEHAVIORS"]["sa_tag_level_deflt"], 'width:33px') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{spam_subject_tag2_maps}:</td>\n\t\t\t<td> </td>\n\t\t\t<td width=1%>" . Field_text('spam_subject_tag2_maps', $amavis->main_array["BEHAVIORS"]["spam_subject_tag2_maps"], 'width:190px') . "</td>\n\t\t\t<td> </td>\n\t\t\t<td> </td>\n\t\t</tr>\t\n\t\t\n\t<tr>\n\t\t<td colspan=5 align='right'>\n\t\t<hr>\n\t\t" . button("{apply}", "{$form_js}") . "\n\t\t</td>\n\t</tr>\t\t\t\n\t</table>\n\t</form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>" . Paragraphe('64-learning.png', '{salearnschedule}', '{salearnschedule_text}', "javascript:Loadjs('spamassassin.index.php?salearn-schedule-js=yes')") . "</td>\n\t\t<td valign='top'>{$ipcountry}</td>\n\t</tr>\n\t</table>\n\t</div>"; echo $tpl->_ENGINE_parse_body($html, 'spamassassin.index.php'); }
function PostFixCheckHashTableSelectFilterActionSelect() { $selected = $_GET["PostFixCheckHashTableSelectFilterActionSelect"]; $tpl = new templates(); if ($selected == "service") { $main = new main_cf(); $h = $main->HashGetMasterCfServices(); $h[null] = '{select}'; $field = Field_array_Hash($h, 'filter', null, null, null, 0, 'width:100%'); echo $tpl->_ENGINE_parse_body("<strong>{select_filter}</strong>: {$field}"); return null; } if ($selected == "smtp") { $resolve = Field_yesno_checkbox_img('MX_lookups', 'yes'); $html = "\n\t\t<table>\n\t\t\t<tr>\n\t\t\t<td nowrap><strong>{smtp_server_address}:</td>\n\t\t\t<td>" . Field_text('smtp_server_address') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td align='right'><strong>{smtp_server_port}:</td>\n\t\t\t<td>" . Field_text('smtp_server_port', '25') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td align='right'>{$resolve}</td>\n\t\t\t<td><strong>{MX_lookups}</strong></td>\n\t\t\t</tr>\t\t\t\n\t\t</table>"; echo $tpl->_ENGINE_parse_body($html); return null; } }
function http_proxy() { $artica = new artica_general(); $page = CurrentPageName(); $html = "\n<table>\n\t<tr>\n\t\t<td width=1%><img src='img/proxy-147.png'>\n\t</td>\n\t<td><form name='ffm1'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right' class=legend nowrap class=legend>{ArticaProxyServerEnabled}:</strong></td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('ArticaProxyServerEnabled', $artica->ArticaProxyServerEnabled) . "</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t<td align='right' class=legend nowrap class=legend>{ArticaProxyServerName}:</strong></td>\n\t\t<td align='left'>" . Field_text("ArticaProxyServerName", $artica->ArticaProxyServerName, 'width:150px') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right' class=legend nowrap class=legend>{ArticaProxyServerPort}:</strong></td>\n\t\t<td align='left'>" . Field_text("ArticaProxyServerPort", $artica->ArticaProxyServerPort, 'width:60px') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right' class=legend nowrap class=legend>{ArticaProxyServerUsername}:</strong></td>\n\t\t<td align='left'>" . Field_text("ArticaProxyServerUsername", $artica->ArticaProxyServerUsername, 'width:150px') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right' class=legend nowrap class=legend>{ArticaProxyServerUserPassword}:</strong></td>\n\t\t<td align='left'>" . Field_text("ArticaProxyServerUserPassword", $artica->ArticaProxyServerUserPassword, 'width:150px') . "</td>\n\t\t</tr>\t\t\t\t\n\t\t<tr><td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffm1','{$page}',true)\" value='{edit} »'></tr>\n\t\t</table>\n\t\t</form>\n\t</td>\n\t</tr>\n</table>"; return RoundedLightWhite($html); }
function postfix_tls_settings() { $main = new main_cf(); $hash[null] = "{select}"; $hash["none"] = "{disable}"; $hash["may"] = "{tls_may}"; $hash["encrypt"] = "{tls_encrypt}"; $page = CurrentPageName(); $smtpd_tls_security_level = Field_array_Hash($hash, "smtpd_tls_security_level", $main->main_array["smtpd_tls_security_level"], "smtpd_tls_security_level_choose()"); $field_offer = Field_yesno_checkbox_img('smtp_tls_note_starttls_offer', $main->main_array["smtp_tls_note_starttls_offer"], '{enable_disable}'); $button_generate = "<input type='button' OnClick=\"javascript:ActiveTLSMsgbox();\" value='{active_tls} »'>"; $button_tests = "<input type='button' OnClick=\"javascript:TestTLSMsgbox();\" value='{test_TLS} »'>"; //smtpd_tls_wrappermode $tls_info = "\n\t<form name='ffmtls'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td nowrap class=legend>{tls_label}:</strong>\n\t\t<td>{$smtpd_tls_security_level}</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend>{smtp_tls_mandatory_protocols}:</strong>\n\t\t<td>" . Field_text('smtp_tls_mandatory_protocols', $main->main_array["smtp_tls_mandatory_protocols"], 'width:120px', null, null, '{smtp_tls_mandatory_protocols_text}') . "</td>\n\t</tr>\t\n\t<tr>\n\t<tr><td colspan=2><span class=caption id='smtpd_tls_security_level_infos'>{{$main->main_array["smtpd_tls_security_level"]}_explain}</span></td></tr>\n\t\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend>{smtpd_tls_ask_ccert}:</strong>\n\t\t<td>" . Field_yesno_checkbox_img('smtpd_tls_ask_ccert', $main->main_array["smtpd_tls_ask_ccert"], '{smtpd_tls_ask_ccert_text}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend>{smtpd_tls_received_header}:</strong>\n\t\t<td>" . Field_yesno_checkbox_img('smtpd_tls_received_header', $main->main_array["smtpd_tls_received_header"], '{smtpd_tls_received_header_text}') . "</td>\n\t</tr>\t\t\t\n\t\n\t\n\t<tr><td colspan=2 align='right'>\n\t\t<input type='button' value=' {edit} »' OnClick=\"javascript:ParseForm('ffmtls','{$page}',true);\"></td>\n\t\n\t\n\t</table>\n\t</form>"; $button_postfix = "<center><table style='width:100%'><tr>\n\t\t<td width=50% align='center'>" . RoundedLightGreen($tls_info) . "</TD>\n\t\t<td width=50% align='center' valign='top'>" . RoundedLightGreen($button_generate . "<br>{$button_tests}") . "</TD>\n\t\t</tr>\n\t\t</table></center>"; $tls_offer = RoundedLightGrey("\n\t<form name='TLSlogging'>\n\t<div style='padding:20px'><h5>{smtp_tls_note_starttls_offer}</h5>\n\t<div class=caption>{smtp_tls_note_starttls_offer_text}</div>\n\t\t<div style='padding:5px;text-align:right'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right'>\n\t\t<strong>{enable} {smtp_tls_note_starttls_offer}:</strong></td>\n\t\t<td align='left'>{$field_offer}</td>\n\t\t</tr>\n\t\t</table>\n\t\t<br><br>\n\t\t\t<input type='button' value='{edit} »' OnClick=\"javascript:TLSStartTLSOfferSave();\">\n\t\t</div>\n\t</div>\n\t</form>"); $field = Field_array_Hash($main->array_field_tls_logging, 'TLSLoggingSave', $main->main_array["smtpd_tls_loglevel"]); $tls_log = RoundedLightGrey("\n\t<form name='loglevel'>\n\t<div style='padding:20px'><h5>{tls_logging}</h5>\n\t<div class=caption>{tls_logging_intro}</div>\n\t\t<div style='padding:5px;text-align:right'>{$field}\n\t\t<br><br>\n\t\t\t<input type='button' value='{edit} »' OnClick=\"javascript:TLSLoggingLevelSave();\">\n\t\t</div>\n\t</div>\n\t</form>"); $html = "{$button_postfix}<br>{$tls_offer}<br>{$tls_log}"; $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function folder_modules() { $users = new usersMenus(); $sock = new sockets(); $EnableKav4Samba = $sock->GET_INFO('EnableKav4Samba'); $EnableScannedOnly = $sock->GET_INFO('EnableScannedOnly'); if ($EnableKav4Samba == null) { $EnableKav4Samba = 1; } if ($EnableScannedOnly == null) { $EnableScannedOnly = 1; } $folder = $_GET["prop"]; $smb = new samba(); $kav = false; $page = CurrentPageName(); if ($users->KAV4SAMBA_INSTALLED) { if ($EnableKav4Samba == 1) { if ($users->KAV4SAMBA_VFS != null) { $kav = true; } } } $vfs_modules = explode(" ", $smb->main_array[$folder]["vfs object"]); while (list($num, $ligne) = each($vfs_modules)) { if ($ligne != null) { $vfs[$ligne] = true; } } if ($vfs["recycle:repository"]) { $recycle = "yes"; } else { $recycle = "no"; } if ($vfs["scannedonly"]) { $scannedonly = "yes"; } else { $scannedonly = "no"; } if ($kav) { if ($vfs[$users->KAV4SAMBA_VFS]) { $kav_protected = "yes"; } } else { $kav_protected = "no"; } if ($users->SAMBA_MYSQL_AUDIT) { if ($vfs["mysql_audit"]) { $mysql = "yes"; } else { $mysql = "no"; } $mysql_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{mysql_stats}:</td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('mysql_vfs', $mysql) . "</td>\n\t</tr>"; } $kav_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{kantivirus_protect}:</td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('kav_vfs', $kav_protected) . "</td>\n\t</tr>\n\t"; $scannedonly_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{clamav_protect}:</td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('scannedonly_vfs', $scannedonly) . "</td>\n\t</tr>\n\t"; $recycle_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{recycle}:</td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('recycle_vfs', $recycle) . "</td>\n\t</tr>\n\t"; if (!$kav) { $kav_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{kantivirus_protect}:</td>\n\t\t<td align='left'><img src='img/status_ok-grey.gif'><input type='hidden' id='kav_vfs' name='kav_vfs' value='no'></td>\n\t</tr>"; } if (!$users->SCANNED_ONLY_INSTALLED) { $EnableScannedOnly = 0; $scannedonly_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{clamav_protect}:</td>\n\t\t<td align='left'><img src='img/status_ok-grey.gif'><input type='hidden' id='scannedonly_vfs' name='scannedonly_vfs' value='no'></td>\n\t</tr>"; } if ($EnableScannedOnly == 0) { $scannedonly_vfs = "\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{clamav_protect}:</td>\n\t\t<td align='left'><img src='img/status_ok-grey.gif'><input type='hidden' id='scannedonly_vfs' name='scannedonly_vfs' value='no'></td>\n\t</tr>"; } $html = "\n\t<FORM NAME='FFMVFS'>\n\t<br>\n\t<H5>{options}</H5>\n\t<input type='hidden' id='vfs_object' name='vfs_object' value='{$_GET["prop"]}'>\n\t<table class=table_form>\n\t{$recycle_vfs}\n\t{$mysql_vfs}\n\t{$kav_vfs}\n\t{$scannedonly_vfs}\n\t<tr>\n\t<td colspan=2 align='right'><hr>\n\t\t<input type='button' OnClick=\"javascript:SambaSaveVFSModules();\" value='{edit} »'>\n\t</td>\n\t</tr>\n\t</table>\n\t</FORM>\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function sender_host() { $uid = $_GET["uid"]; $user = new user($uid); $SenderParams = $user->SenderCanonicalSMTPRelay(); $host = $SenderParams["HOST"]; $auth = $SenderParams["AUTH"]; $users = new usersMenus(); $page = CurrentPageName(); if ($host != null) { $dom = new DomainsTools(); $arr = $dom->transport_maps_explode($host); } if ($arr[2] == null) { $arr[2] = 25; } $form = "\n<H3 style='font-size:16px;font-weight:bolder;color:#005447' >{user_transport}</H3>\n<table style='width:100%'>\n\t<td align='right' nowrap class=legend>{relay_address}:</strong></td>\n\t<td>" . Field_text('relay_address', $arr[1], 'width:120px') . "</td>\t\n\t<tr>\n\t\t<td align='right' nowrap class=legend>{smtp_port}:</strong></td>\n\t\t<td>" . Field_text('relay_port', $arr[2], 'width:60px') . "</td>\t\n\t</tr>\t\n\t<tr>\n\t\t<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups', $relayT[3], '{MX_lookups_text}') . "</td>\n\t\t<td>{MX_lookups}</td>\t\n\t</tr>\t\n\t</table>"; if (preg_match("#(.+?):(.+)#", $auth, $re)) { $username = $re[1]; $password = $re[2]; } $form2 = "\n<H3 style='font-size:16px;font-weight:bolder;color:#005447' >{AUTH_SETTINGS}</H3>\n<table style='width:100%'>\n<tr>\n<td colspan=2 align=right>{$user->SenderCanonical}</td></tr>\n\t<tr>\n\t\t<td valign='top' class=legend nowrap>{username}:</td>\n\t\t<td valign='top'>" . Field_text('sasl_username', $username) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend nowrap>{password}:</td>\n\t\t<td valign='top'>" . Field_password('sasl_password', $password) . "</td>\n\t</tr>\t\n\t</table>"; $delete = imgtootltip("ed_delete.gif", "{delete}", "DeleteUserSenderTransport()"); $button = "<div style='width:100%;text-align:right'>\n" . button("{edit}", "SaveUserSenderTransport();") . "\n</div>"; if (!$users->AllowSenderCanonical) { $form2 = null; $button = null; $delete = null; } if ($arr[1] == null) { $delete = null; } $html = "\n<H1>{user_transport}</H1>\n<div id='sasltransport'>\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>\n\t\t<img src='img/user-server-128.png'>\n\t</td>\n\t<td valign='top'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top'>\n\t\t\t\t{$form}\n\t\t\t\t<br>\n\t\t\t\t{$form2}\n\t\t\t\t<hr>\n\t\t\t</td>\n\t\t\t<td valign='top' width=1%>{$delete}</td>\n\t\t</tr>\n\t\t</table>\n{$button}\n\t</td>\n</tr>\n</table>\n</div>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); return false; $dusbin = "\n\t<form name='FFMrelayhost'>\n<input type='hidden' name='uid' value='{$uid}'>\n\t<table style='width:100%'>\n\t<td align='right' nowrap class=legend>{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 class=legend>{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' colspan=2 align='right'><input type='button' value='{edit} »' OnClick=\"javascript:SaveUserTransport();\"></td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='left' colspan=2><hr><p class=caption>{MX_lookups}<br>{MX_lookups_text}</p></td>\n\t</tr>\t\t\t\t\t\n\t</form>"; if ($user->AlternateSmtpRelay != null) { $dom = new DomainsTools(); $arr = $dom->transport_maps_explode($user->AlternateSmtpRelay); $p1 = Paragraphe32('AUTH_SETTINGS', 'AUTH_SETTINGS_TEXT', "Loadjs('{$page}?smtp-sasl={$user->AlternateSmtpRelay}&uid={$uid}')", "inboux-out-32.png"); $p2 = Paragraphe32('sender_canonical', 'sender_canonical_text', "Loadjs('{$page}?sender-email-js=yes&uid={$uid}')", "32-email-out.png"); $form = "\n\t\t<center>\n\t\t<table style='width:100%'><tr><td>{$p1}</td><td>{$p2}</td></tr></table>\n\t\t</center>\n\t\t\t<table style='width:100%' class=table_form>\n\t\t\t<tr>\n\t\t\t<td align='right' nowrap class=legend>{relay_address}:</td>\n\t\t\t<td style='font-size:12px;color:red;font-weight:bold'>{$user->AlternateSmtpRelay}</td>\n\t\t\t<td width=1%>" . imgtootltip('ed_delete.gif', '{delete}', "DeleteAlternateSmtpRelay();") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t</table>\n\t\t\n\t\t"; } $html = "\n\t<H1>{user_transport}</H1>\n\t<p class=caption>{user_transport_text}</p>\n\t{$form}\n\t\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function PageKas3UpdateConfig() { $yum = new usersMenus(); $page = CurrentPageName(); $tpl = new templates(); if ($yum->AsPostfixAdministrator == false) { return $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>"); } $kas = new kas_filter(); $cron = $kas->CronTask(); $kas = new kasUpdater(); $array_conf = $kas->array_updater_data["updater.options"]; $UseUpdateServerUrl = Field_yesno_checkbox_img('UseUpdateServerUrl', $array_conf["UseUpdateServerUrl"]); $UseUpdateServerUrlOnly = Field_yesno_checkbox_img('UseUpdateServerUrlOnly', $array_conf["UseUpdateServerUrlOnly"]); $PassiveFtp = Field_yesno_checkbox_img('PassiveFtp', $array_conf["PassiveFtp"]); $UseProxy = Field_yesno_checkbox_img('UseProxy', $array_conf["UseProxy"]); $ProxyAddress = Field_text('ProxyAddress', $array_conf["ProxyAddress"]); $artica = new artica_general(); if ($artica->ArticaProxyServerEnabled == 'yes') { $UseProxy = "<input type='hidden' value='yes' name='UseProxy'><strong>Yes</strong>"; $ProxyAddress = "<input type='hidden' value='yes' name='ProxyAddress'><a href='artica.settings.php'><b>{$artica->ArticaCompiledProxyUri}</b></a>"; } $config1 = "\n\t\t\t\t\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrl}</td>\n\t\t<td align='left'><strong>{UseUpdateServerUrl}</strong></td>\n\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrlOnly}</td>\n\t\t<td align='left'><strong>{UseUpdateServerUrlOnly}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$PassiveFtp}</td>\n\t\t<td align='left'><strong>{PassiveFtp}</strong></td>\n\t\t</tr>\t\t\t\n\t\t</table>"; $config1 = RoundedLightGrey($config1); $proxy = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right' width=30% nowrap><strong>{UpdateServerUrl}:</strong></td>\n\t\t<td align='left' nowrap>" . Field_text('UpdateServerUrl', $array_conf["UpdateServerUrl"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{UseProxy}:</strong></td>\n\t\t<td align='left'>{$UseProxy}</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{ProxyAddress}:</strong></td>\n\t\t<td align='left'>{$ProxyAddress}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{ConnectTimeout}:</strong></td>\n\t\t<td align='left'>" . Field_text('ConnectTimeout', $array_conf["ConnectTimeout"], 'width:30px') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffmupdate','domains.php',true);\" value='{submit} »'></td>\n\t\t</tr>\n\t\t</table>"; $proxy = RoundedLightGrey($proxy); $html = "\n\t\t<form name=ffmupdate>\n\t\t\n\t\t<input type='hidden' name=kas3UpdaterConfig value='kas3UpdaterConfig'>\n\t\t\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top'>\n\t\t<br><H5>{keepup2date settings}</H5><br>\n\t\t\n\t\t{$config1}<br>{$proxy}<br>" . tabs() . "<br><div id='middle_area'></div>\n\t\t<script>LoadAjax('middle_area','{$page}?section=yes&tab=0')</script></td>\n\t\t\n\t\t<td valign='top' width=40%>" . RightInfos() . "</td>\n\t\t</tr>\n\t\t</table>\n\t\t<br>\n\t\t\n\t\t<br>\n\n\t\t</form>\n\t\t<br>\n\n\t\t\n\t\n\t"; return $tpl->_ENGINE_parse_body($html); }
function sender_host(){ $uid=$_GET["uid"]; $user=new user($uid); $SenderParams=$user->SenderCanonicalSMTPRelay(); $host=$SenderParams["HOST"]; $auth=$SenderParams["AUTH"]; $users=new usersMenus(); $page=CurrentPageName(); if($host<>null){ $dom=new DomainsTools(); $arr=$dom->transport_maps_explode($host); } if($arr[2]==null){$arr[2]=25;} $form=" <div style='font-size:14px;font-weight:bolder;color:#005447'>{user_transport}</div> <table style='width:100%' class=form> <td align='right' nowrap class=legend>{relay_address}:</strong></td> <td>" . Field_text('relay_address',$arr[1],'width:150px;font-size:15px;padding:3px') . "</td> <tr> <td align='right' nowrap class=legend>{smtp_port}:</strong></td> <td>" . Field_text('relay_port',$arr[2],'width:60px;font-size:15px;padding:3px') . "</td> </tr> <tr> <td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups',$arr[3],'{MX_lookups_text}')."</td> <td>{MX_lookups}</td> </tr> </table>"; if(preg_match("#(.+?):(.+)#",$auth,$re)){ $username=$re[1]; $password=$re[2]; } $form2=" <div style='font-size:14px;font-weight:bolder;color:#005447' >{AUTH_SETTINGS}</div> <table style='width:100%' class=form> <tr> <td colspan=2 align=right style='font-size:13px;font-weight:bolder'>$user->SenderCanonical</td></tr> <tr> <td valign='top' class=legend nowrap>{username}:</td> <td valign='top'>".Field_text('sasl_username',$username,'width:130px;font-size:15px;padding:3px')."</td> </tr> <tr> <td valign='top' class=legend nowrap>{password}:</td> <td valign='top'>".Field_password('sasl_password',$password,'width:90px;font-size:15px;padding:3px')."</td> </tr> </table>"; $delete=imgtootltip("ed_delete.gif","{delete}","DeleteUserSenderTransport()"); $button="<div style='width:100%;text-align:right'> ". button("{edit}","SaveUserSenderTransport();")." </div>"; if(!$users->AllowSenderCanonical){$form2=null;$button=null;$delete=null;} if($arr[1]==null){$delete=null;} if($user->SenderCanonical==null){ $js_disable="DisableSenderForm()"; $button=null; $explain_a="<div class=explain>{SMTP_SENDER_FILL_SENDER_CANONICAL_FIRST}</div>"; } $html=" <div id='sasltransport'> <table style='width:100%'> <tr> <td valign='top'> <img src='img/user-server-128.png'> </td> <td valign='top'>$explain_a <table style='width:100%'> <tr> <td valign='top'> $form <br> $form2 <hr> </td> <td valign='top' width=1%>$delete</td> </tr> </table> $button </td> </tr> </table> </div> <script> function DisableSenderForm(){ document.getElementById('sasl_username').disabled=true; document.getElementById('sasl_password').disabled=true; document.getElementById('relay_address').disabled=true; document.getElementById('relay_port').disabled=true; } $js_disable; </script> "; $tpl=new templates(); echo $tpl->_ENGINE_parse_body($html); return false; $dusbin=" <form name='FFMrelayhost'> <input type='hidden' name='uid' value='$uid'> <table style='width:100%'> <td align='right' nowrap class=legend>{relay_address}:</strong></td> <td>" . Field_text('relay_address',$relayT[1]) . "</td> </tr> </tr> <td align='right' nowrap class=legend>{smtp_port}:</strong></td> <td>" . Field_text('relay_port',$relayT[2]) . "</td> </tr> <tr> <td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups',$relayT[3],'{enable_disable}')."</td> <td>{MX_lookups}</td> </tr> <tr> <td align='right' colspan=2 align='right'><input type='button' value='{edit} »' OnClick=\"javascript:SaveUserTransport();\"></td> </tr> <tr> <td align='left' colspan=2><hr><p class=caption>{MX_lookups}<br>{MX_lookups_text}</p></td> </tr> </form>"; if($user->AlternateSmtpRelay<>null){ $dom=new DomainsTools(); $arr=$dom->transport_maps_explode($user->AlternateSmtpRelay); $p1=Paragraphe32('AUTH_SETTINGS','AUTH_SETTINGS_TEXT',"Loadjs('$page?smtp-sasl=$user->AlternateSmtpRelay&uid=$uid')","inboux-out-32.png"); $p2=Paragraphe32('sender_canonical','sender_canonical_text',"Loadjs('$page?sender-email-js=yes&uid=$uid')","32-email-out.png"); $form=" <center> <table style='width:100%'><tr><td>$p1</td><td>$p2</td></tr></table> </center> <table style='width:100%' class=table_form> <tr> <td align='right' nowrap class=legend>{relay_address}:</td> <td style='font-size:12px;color:red;font-weight:bold'>$user->AlternateSmtpRelay</td> <td width=1%>". imgtootltip('ed_delete.gif','{delete}',"DeleteAlternateSmtpRelay();")."</td> </tr> </table> "; } $html=" <H1>{user_transport}</H1> <p class=caption>{user_transport_text}</p> $form "; $tpl=new templates(); echo $tpl->_ENGINE_parse_body($html); }
function LoadGroupSettingsNotifications($group, $ou) { $ldap = new clladp(); $ren = new renattach($group, $ou); $page = CurrentPageName(); $html = RuleTab($group, $ou) . "\n<FORM NAME='FFM1'>\n<input type='hidden' name='ou' value='{$ou}'>\n<input type='hidden' name='group' value='{$group}'>\n<table style='width:100%;border:1px solid #CCCCCC;padding:5px;margin:5px'>\n<tr><td colspan=3>" . imgtootltip('restore-on.png', '{back}', "LoadAjax('group_list','{$page}?LoadGroups={$ou}')") . "</td></tR>\n\t<tr>\n\n\t\t\t<td valign='top' align='right' nowrap><strong>{search_zip}:</strong></td>\n\t\t\t<td width=1% valign='top' align='left'>" . Field_yesno_checkbox_img('search_zip', $ren->arrayDatas["search_zip"]) . "</td>\n\t\t\t<td width=1% class=caption>" . icon_help('search_zip_text', 1) . "</td>\n\t</tr>\n\t<tr>\n\t\t\t<td valign='top' nowrap align='right'><strong>{subj_deleted}:</strong></td>\n\t\t\t<td width=99% valign='top' align='left'>" . Field_text('subj_deleted', $ren->arrayDatas["subj_deleted"], 'width:100%') . "</td>\n\t\t\t<td width=1% class=caption>" . icon_help('subj_deleted_text', 1) . "</td>\n\t</tr>\n\t<tr>\n\t\t\t<td valign='top' nowrap align='right'><strong>{subj_renamed}:</strong></td>\n\t\t\t<td width=99% valign='top' align='left'>" . Field_text('subj_renamed', $ren->arrayDatas["subj_renamed"], 'width:100%') . "</td>\n\t\t\t<td width=1% class=caption>" . icon_help('subj_renamed_text', 1) . "</td>\n\t</tr>\t\n\t<tr>\n\t\t\t<td valign='top' nowrap align='right'><strong>{add_subject}:</strong></td>\n\t\t\t<td width=99% valign='top' align='left'>" . Field_text('add_subject', $ren->arrayDatas["add_subject"], 'width:100%') . "</td>\n\t\t\t<td width=1% class=caption>" . icon_help('add_subject_text', 1) . "</td>\n\t</tr>\t\n\t\n\t<tr>\n\t<td valign='top' nowrap align='right'><strong>{warning_text}:</strong></td>\n\t\t\t<td width=99% valign='top' align='left'><textarea name='warning_text' id='warning_text' style='width:100%'>{$ren->arrayDatas["warning_text"]}</textarea></td>\n\t\t\t<td width=1% class=caption>" . icon_help('warning_text_text', 1) . "</td>\n\t</tR>\n\t\n\t<tr>\n\t<td valign='top' nowrap align='right'><strong>{warning_html}:</strong></td>\n\t\t\t<td valign='top' align='left'><textarea name='warning_html' id='warning_html' style='width:100%'>{$ren->arrayDatas["warning_html"]}</textarea></td>\n\t\t\t<td width=1% class=caption>" . icon_help('warning_html_text', 1) . "</td>\n\t</tR>\t\n\t<tr>\n\t<td colspan=3 align='right'><input type='button' value='{save} »' OnClick=\"javascript:ParseForm('FFM1','" . CurrentPageName() . "',true);\"></td>\n\t</tR>\n\t\n\t\t\n\t\n\t\n </table>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
function kav_page() { $gidNumber = $_SESSION["privileges"]["gidNumber"]; if (preg_match('#kav:([0-9]+)#', $_GET["TreeKasSelect"], $reg)) { $gidNumber = $reg[1]; } $ldap = new clladp(); $HashGroup = $ldap->GroupDatas($gidNumber); $ini = new Bs_IniHandler(); $ini->loadString($HashGroup["KasperkyAVScanningDatas"]); $hash = $ini->_params["smtpscan.group:{$gidNumber}"]; $CuredQuarantine = Field_yesno_checkbox_img("CuredQuarantine", $hash["CuredQuarantine"]); $InfectedQuarantine = Field_yesno_checkbox_img("InfectedQuarantine", $hash["InfectedQuarantine"]); $SuspiciousQuarantine = Field_yesno_checkbox_img("SuspiciousQuarantine", $hash["SuspiciousQuarantine"]); $CorruptedQuarantine = Field_yesno_checkbox_img("CorruptedQuarantine", $hash["CorruptedQuarantine"]); $WarningQuarantine = Field_yesno_checkbox_img("WarningQuarantine", $hash["WarningQuarantine"]); $FilteredQuarantine = Field_yesno_checkbox_img("FilteredQuarantine", $hash["FilteredQuarantine"]); $ErrorQuarantine = Field_yesno_checkbox_img("ErrorQuarantine", $hash["ErrorQuarantine"]); $ProtectedQuarantine = Field_yesno_checkbox_img("ProtectedQuarantine", $hash["ProtectedQuarantine"]); $CuredAdminNotify = Field_yesno_checkbox_img("CuredAdminNotify", $hash["CuredAdminNotify"]); $InfectedAdminNotify = Field_yesno_checkbox_img("InfectedAdminNotify", $hash["InfectedAdminNotify"]); $SuspiciousAdminNotify = Field_yesno_checkbox_img("SuspiciousAdminNotify", $hash["SuspiciousAdminNotify"]); $CorruptedAdminNotify = Field_yesno_checkbox_img("CorruptedAdminNotify", $hash["CorruptedAdminNotify"]); $WarningAdminNotify = Field_yesno_checkbox_img("WarningAdminNotify", $hash["WarningAdminNotify"]); $FilteredAdminNotify = Field_yesno_checkbox_img("FilteredAdminNotify", $hash["FilteredAdminNotify"]); $ErrorAdminNotify = Field_yesno_checkbox_img("ErrorAdminNotify", $hash["ErrorAdminNotify"]); $ProtectedAdminNotify = Field_yesno_checkbox_img("ProtectedAdminNotify", $hash["ProtectedAdminNotify"]); $arrayA = array("unchanged" => "Unchanged", "remove" => "Remove"); $arrayB = array("unchanged" => "Unchanged", "remove" => "Remove", "cured" => "Cured"); $CuredAdminAction = Field_array_Hash($arrayB, "CuredAdminAction", $hash["CuredAdminAction"]); $InfectedAdminAction = Field_array_Hash($arrayA, "InfectedAdminAction", $hash["InfectedAdminAction"]); $SuspiciousAdminAction = Field_array_Hash($arrayA, "SuspiciousAdminAction", $hash["SuspiciousAdminAction"]); $CorruptedAdminAction = Field_array_Hash($arrayA, "CorruptedAdminAction", $hash["CorruptedAdminAction"]); $WarningAdminAction = Field_array_Hash($arrayA, "WarningAdminAction", $hash["WarningAdminAction"]); $FilteredAdminAction = Field_array_Hash($arrayA, "FilteredAdminAction", $hash["FilteredAdminAction"]); $ErrorAdminAction = Field_array_Hash($arrayA, "ErrorAdminAction", $hash["ErrorAdminAction"]); $ProtectedAdminAction = Field_array_Hash($arrayA, "ProtectedAdminAction", $hash["ProtectedAdminAction"]); $CuredRecipientAction = Field_array_Hash($arrayB, "CuredRecipientAction", $hash["CuredRecipientAction"]); $InfectedRecipientAction = Field_array_Hash($arrayA, "InfectedRecipientAction", $hash["InfectedRecipientAction"]); $SuspiciousRecipientAction = Field_array_Hash($arrayA, "SuspiciousRecipientAction", $hash["SuspiciousRecipientAction"]); $CorruptedRecipientAction = Field_array_Hash($arrayA, "CorruptedRecipientAction", $hash["CorruptedRecipientAction"]); $WarningRecipientAction = Field_array_Hash($arrayA, "WarningRecipientAction", $hash["WarningRecipientAction"]); $FilteredRecipientAction = Field_array_Hash($arrayA, "FilteredRecipientAction", $hash["FilteredRecipientAction"]); $ErrorRecipientAction = Field_array_Hash($arrayA, "ErrorRecipientAction", $hash["ErrorRecipientAction"]); $ProtectedRecipientAction = Field_array_Hash($arrayA, "ProtectedRecipientAction", $hash["ProtectedRecipientAction"]); $CuredSenderNotify = Field_yesno_checkbox_img("CuredSenderNotify", $hash["CuredSenderNotify"]); $InfectedSenderNotify = Field_yesno_checkbox_img("InfectedSenderNotify", $hash["InfectedSenderNotify"]); $SuspiciousSenderNotify = Field_yesno_checkbox_img("SuspiciousSenderNotify", $hash["SuspiciousSenderNotify"]); $CorruptedSenderNotify = Field_yesno_checkbox_img("CorruptedSenderNotify", $hash["CorruptedSenderNotify"]); $WarningSenderNotify = Field_yesno_checkbox_img("WarningSenderNotify", $hash["WarningSenderNotify"]); $FilteredSenderNotify = Field_yesno_checkbox_img("FilteredSenderNotify", $hash["FilteredSenderNotify"]); $ErrorSenderNotify = Field_yesno_checkbox_img("ErrorSenderNotify", $hash["ErrorSenderNotify"]); $ProtectedSenderNotify = Field_yesno_checkbox_img("ProtectedSenderNotify", $hash["ProtectedSenderNotify"]); $CuredRecipientNotify = Field_yesno_checkbox_img("CuredRecipientNotify", $hash["CuredRecipientNotify"]); $InfectedRecipientNotify = Field_yesno_checkbox_img("InfectedRecipientNotify", $hash["InfectedRecipientNotify"]); $SuspiciousRecipientNotify = Field_yesno_checkbox_img("SuspiciousRecipientNotify", $hash["SuspiciousRecipientNotify"]); $CorruptedRecipientNotify = Field_yesno_checkbox_img("CorruptedRecipientNotify", $hash["CorruptedRecipientNotify"]); $WarningRecipientNotify = Field_yesno_checkbox_img("WarningRecipientNotify", $hash["WarningRecipientNotify"]); $FilteredRecipientNotify = Field_yesno_checkbox_img("FilteredRecipientNotify", $hash["FilteredRecipientNotify"]); $ErrorRecipientNotify = Field_yesno_checkbox_img("ErrorRecipientNotify", $hash["ErrorRecipientNotify"]); $ProtectedRecipientNotify = Field_yesno_checkbox_img("ProtectedRecipientNotify", $hash["ProtectedRecipientNotify"]); $CuredRecipientAttachReport = Field_yesno_checkbox_img("CuredRecipientAttachReport", $hash["CuredRecipientAttachReport"]); $InfectedRecipientAttachReport = Field_yesno_checkbox_img("InfectedRecipientAttachReport", $hash["InfectedRecipientAttachReport"]); $SuspiciousRecipientAttachReport = Field_yesno_checkbox_img("SuspiciousRecipientAttachReport", $hash["SuspiciousRecipientAttachReport"]); $CorruptedRecipientAttachReport = Field_yesno_checkbox_img("CorruptedRecipientAttachReport", $hash["CorruptedRecipientAttachReport"]); $WarningRecipientAttachReport = Field_yesno_checkbox_img("WarningRecipientAttachReport", $hash["WarningRecipientAttachReport"]); $FilteredRecipientAttachReport = Field_yesno_checkbox_img("FilteredRecipientAttachReport", $hash["FilteredRecipientAttachReport"]); $ErrorRecipientAttachReport = Field_yesno_checkbox_img("ErrorRecipientAttachReport", $hash["ErrorRecipientAttachReport"]); $ProtectedRecipientAttachReport = Field_yesno_checkbox_img("ProtectedRecipientAttachReport", $hash["ProtectedRecipientAttachReport"]); $Check = Field_yesno_checkbox_img("Check", $hash["Check"]); $AddXHeaders = Field_yesno_checkbox_img("AddXHeaders", $hash["AddXHeaders"]); if ($hash["QuarantinePath"] != null) { $QuarantinePath = basename($hash["QuarantinePath"]); $QuarantinePath = "\n\t\t<tr class=rowA>\n\t\t\t<td align='right'>{QuarantinePath}</td>\n\t\t\t<td>{$QuarantinePath}</td>\n\t\t</tr>"; } $Infected_row = texttooltip('{Infected}', '{click_to_change_notif_content}', "LoadAvNotify('Infected')"); $Cured_row = texttooltip('{Cured}', '{click_to_change_notif_content}', "LoadAvNotify('Cured')"); $Suspicious_row = texttooltip('{Suspicious}', '{click_to_change_notif_content}', "LoadAvNotify('Suspicious')"); $Corrupted_row = texttooltip('{Corrupted}', '{click_to_change_notif_content}', "LoadAvNotify('Corrupted')"); $Warning_row = texttooltip('{Warning}', '{click_to_change_notif_content}', "LoadAvNotify('Warning')"); $Filtered_row = texttooltip('{Filtered}', '{click_to_change_notif_content}', "LoadAvNotify('Filtered')"); $Error_row = texttooltip('{Error}', '{click_to_change_notif_content}', "LoadAvNotify('Error')"); $Protected_row = texttooltip('{Protected}', '{click_to_change_notif_content}', "LoadAvNotify('Protected')"); $html = "<div style='float:left;margin-left:-120px;margin-top:-100px;'></div>" . Tabs() . "<br><br>\n\n\t<form name='kasperskyactions'>\t\n\t<input type='hidden' name='GidNumber' value='{$gidNumber}'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width='1%' valign='top'> </td>\n\t<td valign='top'>\n\t\n\t\n\t\t<h4>{LoadKasperskySettings_general_title}</H4>\n\t\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t<td align=right>{LoadKasperskySettings_adminaddr}:</td>\n\t\t\t\t<td><input type='text' name='AdminAddress' value='{$hash["AdminAddress"]}'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t<td align=right>{LoadKasperskySettings_Check}:</td>\n\t\t\t\t<td>{$Check}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t<td align=right>{LoadKasperskySettings_AddXHeaders}:</td>\n\t\t\t\t<td>{$AddXHeaders}</td>\n\t\t\t\t</tr>\t\t\t\t\n\t\t\t\t{$QuarantinePath}\n\t\t\t\t</table>\n\t\n\t</tr>\n\t</table>\n\t\n\t\t<h4>{av_notify_rules}</H4>\n\n\t\n<table>\n<tr class=rowT>\n\t<td rowspan=2>{objects}</td>\n\t<td rowspan=2>{Quarantine}</td>\n\t<td colspan=2>{Administrator_rules}</td>\n\t<td >{sender_rules}</td>\n\t<td colspan=3>{recipient_rules}</td>\n</tr>\n<tr class=rowT>\n\t<td >{notify}</td>\n\t<td>{actions}</td>\n\t<td >{notify}</td>\n\t<td >{notify}</td>\n\t<td>{attach_report}</td>\n\t<td>{actions}</td>\n\t\n</tr>\n<tr class=rowA align='right'>\n\t<td>{$Infected_row}</td>\n\t<td align='center' width=1%>{$InfectedQuarantine}</td>\n\t<td align='center' width=1%>{$InfectedAdminNotify}</td>\n\t<td align='center' width=1%>{$InfectedAdminAction}</td>\n\t<td align='center' width=1%>{$InfectedSenderNotify}</td>\n\t<td align='center' width=1%>{$InfectedRecipientNotify}</td>\n\t<td align='center' width=1%>{$InfectedRecipientAttachReport}</td>\n\t<td align='center' >{$InfectedRecipientAction}</td>\n\t\n</tr>\n<tr class=rowB align='right'>\n\t<td>{$Cured_row}</td>\n\t<td align='center' width=1%>{$CuredQuarantine}</td>\n\t<td align='center' width=1%>{$CuredAdminNotify}</td>\n\t<td align='center' width=1%>{$CuredAdminAction}</td>\n\t<td align='center' width=1%>{$CuredSenderNotify}</td>\n\t<td align='center' width=1%>{$CuredRecipientNotify}</td>\n\t<td align='center' width=1%>{$CuredRecipientAttachReport}</td>\n\t<td align='center' >{$CuredRecipientAction}</td>\n</tr> \t\t\t \t\t\t\t \n<tr class=rowA align='right'>\n\t<td>{$Suspicious_row}</td>\n\t<td align='center' width=1%>{$SuspiciousQuarantine}</td>\n\t<td align='center' width=1%>{$SuspiciousAdminNotify}</td>\n\t<td align='center' >{$SuspiciousAdminAction}</td>\n\t<td align='center' width=1%>{$SuspiciousSenderNotify}</td>\n\t<td align='center' width=1%>{$SuspiciousRecipientNotify}</td>\n\t<td align='center' width=1%>{$SuspiciousRecipientAttachReport}</td>\n\t<td align='center' >{$SuspiciousRecipientAction}</td>\n</tr>\t\t\t \t\t\t\t \n<tr class=rowB align='right'>\n\t<td>{$Corrupted_row}</td>\n\t<td align='center' width=1%>{$CorruptedQuarantine}</td>\t\n\t<td align='center' width=1%>{$CorruptedAdminNotify}</td>\t\t\n\t<td align='center' width=1%>{$CorruptedAdminAction}</td>\t\t\n\t<td align='center' width=1%>{$CorruptedSenderNotify}</td>\n\t<td align='center' width=1%>{$CorruptedRecipientNotify}</td>\n\t<td align='center' width=1%>{$CorruptedRecipientAttachReport}</td>\n\t<td align='center' >{$CorruptedRecipientAction}</td>\n</tr> \t\t\t \t\t\t\t \n\n<tr class=rowA align='right'>\n\t<td>{$Warning_row}</td>\n\t<td class=center width=1%>{$WarningQuarantine}</td>\n\t<td class=center width=1%>{$WarningAdminNotify}</td>\t\n\t<td class=center width=1%>{$WarningAdminAction}</td>\n\t<td align='center' width=1%>{$WarningSenderNotify}</td>\n\t<td align='center' width=1%>{$WarningRecipientNotify}</td>\n\t<td align='center' width=1%>{$WarningRecipientAttachReport}</td>\n\t<td align='center' >{$WarningRecipientAction}</td>\n</tr> \t\t\t \t\t\t\t \n<tr class=rowB align='right'>\n\t<td>{$Filtered_row}</td>\n\t<td align='center' width=1%>{$FilteredQuarantine}</td>\n\t<td align='center' width=1%>{$FilteredAdminNotify}</td>\n\t<td align='center' width=1%>{$FilteredAdminAction}</td>\n\t<td align='center' width=1%>{$FilteredSenderNotify}</td>\n\t<td align='center' width=1%>{$FilteredRecipientNotify}</td>\n\t<td align='center' width=1%>{$FilteredRecipientAttachReport}</td>\n\t<td align='center' >{$FilteredRecipientAction}</td>\n\t\n</tr> \t\t\t \t\t\t\t \n<tr class=rowA align='right'>\n\t<td>{$Error_row}</td>\n\t<td align='center' width=1%>{$ErrorQuarantine}</td>\n\t<td align='center' width=1%>{$ErrorAdminNotify}</td>\n\t<td align='center' width=1%>{$ErrorAdminAction}</td>\n\t<td align='center' width=1%>{$ErrorSenderNotify}</td>\n\t<td align='center' width=1%>{$ErrorRecipientNotify}</td>\n\t<td align='center' width=1%>{$ErrorRecipientAttachReport}</td>\n\t<td align='center' >{$ErrorRecipientAction}</td>\n</tr> \t\t\t \t\t\t\t \n<tr class=rowB align='right'>\n\t<td>{$Protected_row}</td>\n\t<td align='center' width=1%>{$ProtectedQuarantine}</td>\n\t<td align='center' width=1%>{$ProtectedAdminNotify}</td>\n\t<td align='center' width=1%>{$ProtectedAdminAction}</td>\n\t<td align='center' width=1%>{$ProtectedSenderNotify}</td>\n\t<td align='center' width=1%>{$ProtectedRecipientNotify}</td>\n\t<td align='center' width=1%>{$ProtectedRecipientAttachReport}</td>\n\t<td align='center' >{$ProtectedRecipientAction}</td>\n</tr>\n</form>\n<tr class=rowA align='right' >\n\t<td colspan=8><input type='button' value='{bt_edit_notify}' OnClick=\"javascript:EditKasperskySettings();\" style='float:right'></td></tr>\n</table>\n\t\n\t"; $tpl = new templates(); $html = $tpl->_ENGINE_parse_body($html); echo DIV_SHADOW($html, 'windows'); }