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 TreeRightInfos() { $folder = $_GET["TreeRightInfos"]; $f = basename($folder); $html = "\n\t<input type='hidden' id='YahooBranch' value='{$folder}'>\n\t<input type='hidden' id='give_folder_name' value='{give_folder_name}'>\n\t<input type='hidden' id='del_folder_name' value='{del_folder_name}'>\n\t\n\t\n\t<div style='width:240px'>\n\t<H5>{$f}</h5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1%><a href=\"javascript:YahooTreeAddSubFolder();\"><img src='img/folder-add.gif'></a></b></td>\n\t<td><a href=\"javascript:YahooTreeAddSubFolder();\">{add_sub_folder}</a></td>\n\t</tr>\n\t<tr>\n\t<td width=1%><a href=\"javascript:YahooTreeDelSubFolder();\"><img src='img/folder-del.gif'></a></b></td>\n\t<td><a href=\"javascript:YahooTreeDelSubFolder();\">{del_sub_folder}</a></td>\n\t</tr>\n\t<tr>\n\t<td width=1%><img src='img/folder-select.gif'></a></b></td>\n\t<td>{tree_select_folder_text}</a></td>\n\t</tr>\t\t\t\n\t</table>\n\t\n\t</div>\n\t\n\t"; $tpl = new templates(); echo RoundedLightBlue($tpl->_ENGINE_parse_body("{$html}")); }
function main_config() { $iptables = new iptables(); $page = CurrentPageName(); $entete = main_tabs() . "<br>\n\t <H5>{main_settings}</H5>\n\t <br>\n\t "; $form = "\n\t <table style='width:100%'>\n\t <tr>\n\t <td valign='top'>\n\t \t<div id=serverlist style='padding:4px'>" . main_rules_list() . "</div>\n\t \t\n\t \t<br>\n\t \t\n\t \n\t </td>\n\t <td valign='top'>\n\t \t" . RoundedLightGreen(Paragraphe('system-64.png', '{compile}', '{compile_text}', "javascript:Compile();", 'apply')) . "<br>\n\t \t" . RoundedLightBlue(Paragraphe('add-64-on-right.png', '{add_inboundrule}', '{add_inboundrule_text}', "javascript:iptables_edit(-1);", 'add_inboundrule')) . "<br>\n\t \t\n\t \t\n\t </td>\n\t </tr>\n\t </table>\n\t \n\t \n\t \n\t "; $tpl = new templates(); echo $tpl->_ENGINE_parse_body("{$entete}{$form}"); }
function main_page() { $page = CurrentPageName(); if ($_GET["hostname"] == null) { $user = new usersMenus(); $_GET["hostname"] = $user->hostname; } $html = "<script language=\"JavaScript\"> \nvar timerID = null;\nvar timerID1 = null;\nvar tant=0;\nvar reste=0;\n\nfunction demarre(){\n tant = tant+1;\n reste=5-tant;\n\tif (tant < 5 ) { \n timerID = setTimeout(\"demarre()\",3000);\n } else {\n tant = 0;\n ChargeLogs();\n demarre(); //la boucle demarre !\n }\n}\n\n\nfunction ChargeLogs(){\n\tLoadAjax('main_config','{$page}?main=yes');\n\t}\n</script>\t\t\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'><img src='img/bg_usb.png'></td>\n\t<td valign='top'>\n\t" . RoundedLightBlue('{about_usb}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'>\n\t\t\t<div id='main_config'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>demarre();ChargeLogs();Loadjs('{$page}?script=load_functions')</script>\n\t\n\t"; $tpl = new template_users('{APP_USB}', $html, 0, 0, 0, 0, $cfg); echo $tpl->web_page; }
function main_config() { $back = new backup(); $page = CurrentPageName(); $entete = main_tabs() . "<br>\n\t <H5>{main_settings}</H5>\n\t <br>\n\t "; $page = CurrentPageName(); $form = "\n\t <form name='ffm1'>\n\t <table style='width:100%'>\n\t <tr>\n\t \t<td valign='top' align='right' class=legend nowrap>{enable_artica_backup}:</strong></td>\n\t \t<td>" . Field_numeric_checkbox_img('ArticaBackupEnabled', $back->ArticaBackupEnabled, '{enable_disable}') . "</td>\n\t </tr>\n\t <tr>\n\t \t<td valign='top' align='right' class=legend>{backup_path}:</strong></td>\n\t \t<td>" . Field_text('backup_path', $back->params["backup_path"], 'width:250px') . "</td>\n\t </tr>\t \n\t <tr>\n\t \t<td valign='top' align='right' class=legend>{backup_time}:</strong></td>\n\t \t<td>" . Field_text('backup_time', $back->params["backup_time"], 'width:90px') . "</td>\n\t </tr>\n\t <tr>\n\t \t<td valign='top' align='right' class=legend>{ArticaBackupMaxTimeToLiveInDay}:</strong></td>\n\t \t<td>" . Field_text('ArticaBackupMaxTimeToLiveInDay', $back->params["ArticaBackupMaxTimeToLiveInDay"], 'width:15px') . " {days}</td>\n\t </tr>\t \n\t <tr>\n\t <td colspan=2 align='right'><input type='button' value='{apply} »' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\"></td>\n\t </tr>\n\t </table>\n\t </form>"; $form = RoundedLightGrey($form); $html = "\t{$entete} \n\t <table style='width:100%'>\n\t <tr>\n\t \t<td valign='top'>\n\t \t\t{$form}\n\t\t<div id='backuplist'>\n\t\t" . Backuplist() . "\n\t\t</div>\n\t\t</td>\n\t\t<td valign='top'>\n\t \t" . Paragraphe('system-64.png', '{backup_now}', '{backup_now_text}', "javascript:StartAction(\"{$page}\",3);", 'apply') . "<br>\n\t \t" . RoundedLightBlue('{howto_restore}') . "<br>\n\t \t\n\t \t</td>\n\t </tr>\n\t </table>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body("{$html}"); }
function main_mail_resend(){ $msgid=$_GET["msgid"]; $ldap=new clladp(); $hash=$ldap->UserDatas($_SESSION["uid"]); $mysql=new mysql(); $sql="SELECT subject,mailfrom,subject FROM `quarantine` WHERE MessageID='$msgid';"; $ligne=mysql_fetch_array($mysql->QUERY_SQL($sql,'artica_backup')); $html=main_mailtabs()." <br><H2>{resend} ($msgid)</H2> <br> <H3>{$ligne["subject"]}</H3> <br> <table style='width:100%'> <tr> <td valign='top' width=50% style='margin:5px'> " . RoundedLightGreen(" <table style='width:340px;border-left:3px solid #005447'> <tr> <td align='right'><strong>{from}:</strong></td> <td> {$ligne["mailfrom"]}</td> </tr> <tr> <td align='right'><strong>{to}:</strong></td> <td> {$hash["mail"]}</td> </tr> </table> ")." <br> <div id='smtp_results'></div> </td> <td valign='top' style='padding:10px'> " . RoundedLightBlue(Paragraphe('64-resend.png','{resend}','{resend_text}',"javascript:quarantine_resend(\"$msgid\",\"{$hash["mail"]}\")",'resend'))." </td> </tr> </table> "; $tpl=new templates(); echo $tpl->_ENGINE_parse_body($html); }
function main_slaves() { $ldap = new clladp(); $cross = new crossroads(); $warn = RoundedLightBlue("\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'>\n\t\t<img src='img/i32.png'>\n\t</td>\n\t<td valing='top'>{warning_all_ldap_deleted}</strong></td>\n\t</tr>\n\t</table>"); $html = main_tabs() . "<br>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'>\n\t<img src='img/red-server.png'>\n\t</td>\n\t<td valign='top'>\n\t<H5>{slaves_servers}</H5>\n\t<p class=caption>{main_slaves_text}</p>\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t\t\t" . RoundedLightGreen("\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap><strong>{PostfixSlaveServersIdentity}:</strong></td>\n\t\t\t\t<td><strong>" . Field_text('PostfixSlaveServersIdentity', null, 'width:150px') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 class=caption align='right'>{PostfixSlaveServersIdentity_text}</td>\n\t\t\t</tr>\n\t\t<tr>\n\t\t\t\t<td colspan=2 class=caption align='right'><input type='button' value='{add} »' OnClick=\"javascript:CrossRoadsSaveSlave();\"</td>\n\t\t\t</tr>\t\n\t\t\t\n\t\t\t</tr>\n\t\t\t</table>") . main_sub_slaves() . "\n\t\t</td>\n\t\t\n\t\t<td valign='top'>\n\t\t" . applysettingsGeneral('synchronize', "SynchronizeSlaves()", "synchronize_text") . "{$warn}\n\t\t</td>\n\t\t</tr>\n\t\t\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t"; $tpl = new templates(); return $tpl->_ENGINE_parse_body("{$html}<br>{$table}<br>"); }