function main_save() { $obm = new obm(); $obm->OBMEnabled = $_GET["OBMEnabled"]; if ($obm->OBMEnabled == 1) { $bm = new obm_export_single(1); $ldap = new clladp(); $bm->CreateManager($ldap->ldap_admin, $ldap->ldap_password); } $obm->apache_listen = $_GET["apache_listen"]; $obm->external_protocol = $_GET["external_protocol"]; $obm->external_url = $_GET["external_url"]; if (preg_match('#([0-9]+)(m|h|d)#', $_GET["OBMSyncCron"])) { $obm->ObmOBMSyncCron = $_GET["OBMSyncCron"]; } $obm->SaveToLdap(); $tpl = new templates(); echo $tpl->_ENGINE_parse_body('{success}'); }