function TreePostfixTLSEnable() { $mny = new usersMenus(); $tpl = new templates(); if ($mny->AsPostfixAdministrator == false) { echo $tpl->_ENGINE_parse_body('{no_privileges'); exit; } $main = new main_cf(); $pages = new HtmlPages(); if ($_GET["TreePostfixTLSEnable"] == 1) { echo "OK\nTLS Enabled"; $main->EnableTLS(); } if ($_GET["TreePostfixTLSEnable"] == 0) { echo "OK\nTLS Disabled"; $main->DisableTLS(); } if ($pages->AutomaticConfig == true) { $main->save_conf_to_server(); } }