@@ -192,53 +192,53 @@ public function mail_domain_delete($session_id, $primary_id)
192192 return $ affected_rows ;
193193 }
194194
195- //* Get mail mailinglist details
196- public function mail_mailinglist_get ($ session_id , $ primary_id )
197- {
198- global $ app ;
199-
200- if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_get ' )) {
201- $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
202- return false ;
203- }
204- $ app ->uses ('remoting_lib ' );
205- $ app ->remoting_lib ->loadFormDef ('../mail/form/mail_mailinglist.tform.php ' );
206- return $ app ->remoting_lib ->getDataRecord ($ primary_id );
207- }
208-
209- //* Add a mail mailinglist
210- public function mail_mailinglist_add ($ session_id , $ client_id , $ params )
211- {
212- if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_add ' )) {
213- $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
214- return false ;
215- }
216- $ primary_id = $ this ->insertQuery ('../mail/form/mail_mailinglist.tform.php ' ,$ client_id ,$ params );
217- return $ primary_id ;
218- }
219-
220- //* Update a mail mailinglist
221- public function mail_mailinglist_update ($ session_id , $ client_id , $ primary_id , $ params )
222- {
223- if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_update ' )) {
224- $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
225- return false ;
226- }
227- $ affected_rows = $ this ->updateQuery ('../mail/form/mail_mailinglist.tform.php ' , $ client_id , $ primary_id , $ params );
228- return $ affected_rows ;
229- }
230-
231- //* Delete a mail mailinglist
232- public function mail_mailinglist_delete ($ session_id , $ primary_id )
233- {
234- if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_delete ' )) {
235- $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
236- return false ;
237- }
238- $ affected_rows = $ this ->deleteQuery ('../mail/form/mail_mailinglist.tform.php ' , $ primary_id );
239- return $ affected_rows ;
240- }
241-
195+ //* Get mail mailinglist details
196+ public function mail_mailinglist_get ($ session_id , $ primary_id )
197+ {
198+ global $ app ;
199+
200+ if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_get ' )) {
201+ $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
202+ return false ;
203+ }
204+ $ app ->uses ('remoting_lib ' );
205+ $ app ->remoting_lib ->loadFormDef ('../mail/form/mail_mailinglist.tform.php ' );
206+ return $ app ->remoting_lib ->getDataRecord ($ primary_id );
207+ }
208+
209+ //* Add a mail mailinglist
210+ public function mail_mailinglist_add ($ session_id , $ client_id , $ params )
211+ {
212+ if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_add ' )) {
213+ $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
214+ return false ;
215+ }
216+ $ primary_id = $ this ->insertQuery ('../mail/form/mail_mailinglist.tform.php ' ,$ client_id ,$ params );
217+ return $ primary_id ;
218+ }
219+
220+ //* Update a mail mailinglist
221+ public function mail_mailinglist_update ($ session_id , $ client_id , $ primary_id , $ params )
222+ {
223+ if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_update ' )) {
224+ $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
225+ return false ;
226+ }
227+ $ affected_rows = $ this ->updateQuery ('../mail/form/mail_mailinglist.tform.php ' , $ client_id , $ primary_id , $ params );
228+ return $ affected_rows ;
229+ }
230+
231+ //* Delete a mail mailinglist
232+ public function mail_mailinglist_delete ($ session_id , $ primary_id )
233+ {
234+ if (!$ this ->checkPerm ($ session_id , 'mail_mailinglist_delete ' )) {
235+ $ this ->server ->fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
236+ return false ;
237+ }
238+ $ affected_rows = $ this ->deleteQuery ('../mail/form/mail_mailinglist.tform.php ' , $ primary_id );
239+ return $ affected_rows ;
240+ }
241+
242242 //* Get mail user details
243243 public function mail_user_get ($ session_id , $ primary_id )
244244 {
@@ -1005,7 +1005,7 @@ public function client_update($session_id, $client_id, $reseller_id, $params)
10051005 $ this ->server ->fault ('permission_denied ' ,'You do not have the permissions to access this function. ' );
10061006 return false ;
10071007 }
1008- $ affected_rows = $ this ->updateQuery ('../client/form/client.tform.php ' , $ client_id , $ reseller_id , $ params );
1008+ $ affected_rows = $ this ->updateQuery ('../client/form/client.tform.php ' , $ reseller_id , $ client_id , $ params );
10091009
10101010 $ app ->remoting_lib ->ispconfig_sysuser_update ($ params ,$ client_id );
10111011
0 commit comments