Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
a8dc8ba6
Commit
a8dc8ba6
authored
15 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bugs in remoting Library. Many thanks to Horfic!
parent
557480fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/lib/classes/remoting.inc.php
+46
-0
46 additions, 0 deletions
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting_lib.inc.php
+731
-731
731 additions, 731 deletions
interface/lib/classes/remoting_lib.inc.php
with
777 additions
and
731 deletions
interface/lib/classes/remoting.inc.php
+
46
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
interface/lib/classes/remoting_lib.inc.php
+
731
−
731
View file @
a8dc8ba6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment