Esempio n. 1
0
function AdressBookPopup_save(){
	$artica=new artica_general();
	$artica->EnableRemoteAddressBook=$_GET["EnableRemoteAddressBook"];
	$artica->EnablePerUserRemoteAddressBook=$_GET["EnablePerUserRemoteAddressBook"];
	$artica->EnableNonEncryptedLdapSession=$_GET["EnableNonEncryptedLdapSession"];
	$artica->Save();
	$sock=new sockets();
	
	$LdapAclsPlus=$sock->GET_INFO('LdapAclsPlus');
	//if(trim($LdapAclsPlus)==null){$LdapAclsPlus=AdressBookAclDefault();}
	$LdapAclsPlus=AdressBookAclDefault();
	$sock->SaveConfigFile(CleanLdapAclsPlus($LdapAclsPlus),"LdapAclsPlus");
	
	$sock->getfile('OpenLdapRestart');
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body("{success}:Address Book\n");
	
}
Esempio n. 2
0
function AdressBookPopup_save()
{
    $sock = new sockets();
    $sock->SET_INFO('EnableRemoteAddressBook', $_GET["EnableRemoteAddressBook"]);
    $sock->SET_INFO('EnablePerUserRemoteAddressBook', $_GET["EnablePerUserRemoteAddressBook"]);
    $LdapAclsPlus = $sock->GET_INFO('LdapAclsPlus');
    $LdapAclsPlus = AdressBookAclDefault();
    $sock->SaveConfigFile(CleanLdapAclsPlus($LdapAclsPlus), "LdapAclsPlus");
    $sock->getFrameWork("services.php?restart-ldap=yes");
}