exit; } if (isset($_GET["smtpd_sasl_exceptions_networks_add"])) { add(); exit; } if (isset($_GET["smtpd_sasl_exceptions_networks_del"])) { del(); exit; } if (isset($_GET["popup-toolbox"])) { toolbox(); exit; } if (isset($_GET["smtpd_sasl_exceptions_mynet"])) { smtpd_sasl_exceptions_mynet_save(); exit; } js(); function js() { if (GET_CACHED(__FILE__, __FUNCTION__, null)) { return null; } $prefix = "smtpd_sasl_exceptions_networks_"; $page = CurrentPageName(); $users = new usersMenus(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{smtpd_sasl_exceptions_networks}'); $give_the_new_network = $tpl->javascript_parse_text("{give the new network}"); $html = "\n\nfunction SaslExceptionsNetworksLoadpage(){\n\tYahooWin5(550,'{$page}?popup=yes','{$title}');\n\t}\n\t\nvar X_smtpd_sasl_exceptions_networks_add= function (obj) {\n\tLoadAjax('smtpd_sasl_exceptions_networks_list','{$page}?popup-list=yes');\n\t}\n\t\t\n\n\nfunction smtpd_sasl_exceptions_networks_add(){\n\tvar a=prompt('{$give_the_new_network}');\n\t\tif(a){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('smtpd_sasl_exceptions_networks_add',a);\n\t\t\tdocument.getElementById('smtpd_sasl_exceptions_networks_list').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',X_smtpd_sasl_exceptions_networks_add);\n\t\t\t}\t\t\n\t}\n\t\nfunction smtpd_sasl_exceptions_delete(id_encrypted){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('smtpd_sasl_exceptions_networks_del',id_encrypted);\n\tdocument.getElementById('smtpd_sasl_exceptions_networks_list').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\tXHR.sendAndLoad('{$page}', 'GET',X_smtpd_sasl_exceptions_networks_add);\n\t\n\t}\n\n\t\nvar X_SmtpdSaslExceptionsMynetSave= function (obj) {\n\t\tLoadAjax('smtpd_sasl_exceptions_networks_list','{$page}?popup-list=yes');\n\t\tLoadAjax('smtpd_sasl_exceptions_toolbox','{$page}?popup-toolbox=yes');\n\t}\t\n\t\nfunction SmtpdSaslExceptionsMynetSave(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('smtpd_sasl_exceptions_mynet',document.getElementById('smtpd_sasl_exceptions_mynet').value);\n\t\t\tdocument.getElementById('smtpd_sasl_exceptions_toolbox').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',X_SmtpdSaslExceptionsMynetSave);\n}\n\t\n\t\n\t\n\tSaslExceptionsNetworksLoadpage();\n";
if($user->AsPostfixAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["list"])){popup_list();exit;} if(isset($_GET["popup"])){main_table();exit;} if(isset($_GET["smtpd_sasl_exceptions_networks_add"])){add();exit;} if(isset($_GET["smtpd_sasl_exceptions_networks_del"])){del();exit;} if(isset($_GET["popup-toolbox"])){toolbox();exit;} if(isset($_GET["smtpd_sasl_exceptions_mynet"])){smtpd_sasl_exceptions_mynet_save();exit;} js(); function js(){ if(GET_CACHED(__FILE__,__FUNCTION__,null)){return null;} $prefix="smtpd_sasl_exceptions_networks_"; $page=CurrentPageName(); $users=new usersMenus(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{smtpd_sasl_exceptions_networks}'); $give_the_new_network=$tpl->javascript_parse_text("{give the new network}"); $html="