Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
a8dc8ba6
Commit
a8dc8ba6
authored
Sep 17, 2009
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs in remoting Library. Many thanks to Horfic!
parent
557480fd
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
777 additions
and
731 deletions
+777
-731
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting.inc.php
+46
-0
interface/lib/classes/remoting_lib.inc.php
interface/lib/classes/remoting_lib.inc.php
+731
-731
No files found.
interface/lib/classes/remoting.inc.php
View file @
a8dc8ba6
...
...
@@ -211,6 +211,52 @@ class remoting {
$affected_rows
=
$this
->
deleteQuery
(
'../mail/form/mail_user.tform.php'
,
$domain_id
);
return
$affected_rows
;
}
//* Get mail user filter details
public
function
mail_user_filter_get
(
$session_id
,
$primary_id
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'mail_user_filter_get'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$app
->
uses
(
'remoting_lib'
);
$app
->
remoting_lib
->
loadFormDef
(
'../mail/form/mail_user_filter.tform.php'
);
return
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
}
public
function
mail_user_filter_add
(
$session_id
,
$client_id
,
$params
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'mail_user_filter_add'
)){
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
insertQuery
(
'../mail/form/mail_user_filter.tform.php'
,
$client_id
,
$params
);
return
$affected_rows
;
}
public
function
mail_user_filter_update
(
$session_id
,
$client_id
,
$primary_id
,
$params
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'mail_user_filter_update'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
updateQuery
(
'../mail/form/mail_user_filter.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
public
function
mail_user_filter_delete
(
$session_id
,
$domain_id
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'mail_user_filter_delete'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../mail/form/mail_user_filter.tform.php'
,
$domain_id
);
return
$affected_rows
;
}
//* Get alias details
public
function
mail_alias_get
(
$session_id
,
$primary_id
)
...
...
interface/lib/classes/remoting_lib.inc.php
View file @
a8dc8ba6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment