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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Dirk Dankhoff
ISPConfig 3
Commits
9e0f1184
Commit
9e0f1184
authored
13 years ago
by
latham
Browse files
Options
Downloads
Patches
Plain Diff
Remoting API SQL error and typo
http://bugtracker.ispconfig.org/index.php?do=details&task_id=1601&project=3
Thanks Ben Lake
parent
82085258
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/classes/remoting.inc.php
+11
-6
11 additions, 6 deletions
interface/lib/classes/remoting.inc.php
with
11 additions
and
6 deletions
interface/lib/classes/remoting.inc.php
+
11
−
6
View file @
9e0f1184
...
...
@@ -2450,24 +2450,29 @@ class remoting {
return
false
;
}
}
/**
* Fetch the mail_domain record for the provided domain.
* @param int session_id
* @param string the fully qualified domain (or subdomain)
* @return array array of arrays corresponding to the mail_domain table's records
* @author till, benlake
*/
public
function
mail_domain_get_by_domain
(
$session_id
,
$domain
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'mail_domain_get_by_domain'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
!
empty
(
$domain
_id
))
{
if
(
!
empty
(
$domain
))
{
$domain
=
$app
->
db
->
quote
(
$domain
);
$sql
=
"SELECT * FROM mail_domain WHERE domain =
$domain
"
;
$sql
=
"SELECT * FROM mail_domain WHERE domain =
'
$domain
'
"
;
$result
=
$app
->
db
->
queryAllRecords
(
$sql
);
return
$result
;
}
return
false
;
}
/**
* Get a list of functions
* @param int session id
...
...
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