View Single Post
  #8  
Old 16th August 2011, 12:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
1. Is the variable "domain_id" changeable or is it in any way dangerous use it twice in the same script? (btw in the example files it is domain__id - is this correct or should domain_id be used?)
The variable should be different, so domain__id with two __ is correct. But you can give the variable a different name like $mailuser_record or similar as well.

Quote:
2. What's the thing with the client_id? The point being is that I only have the login-name (e-mailadress) of the user which is defined dynamically in the roundcube-sieve-plugin to gather the other informations needed (f.e. the mailuser_id). I'm not shure how to determine the client_id via a mysql-command. Therefore: Is the client_id necessary for the function because it does not seem to apear anywhere except in the client table?
Yes, the function is required. If you set a different client-id or no client_id, the mailuser will be moved to a new account.

you can get the client_id with the function client_get_id($session_id, $sys_userid) and the sys_userid is in your $params_old record.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote