Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
15982801
Commit
15982801
authored
May 20, 2011
by
sebastianm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function dns_rr_get_all_by_zone to remoting lib. Get all dns records for a zone.
parent
6eb625a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting.inc.php
+17
-1
No files found.
interface/lib/classes/remoting.inc.php
View file @
15982801
...
...
@@ -2543,7 +2543,23 @@ class remoting {
return
false
;
}
/**
* Get all dns records for a zone
* @param int session id
* @param int dns zone id
* @author Sebastian Mogilowski <sebastian@mogilowski.net> 2011
*/
public
function
dns_rr_get_all_by_zone
(
$session_id
,
$zone_id
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_zone_get'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$sql
=
"SELECT * FROM dns_rr WHERE zone = "
.
intval
(
$zone_id
);;
$result
=
$app
->
db
->
queryAllRecords
(
$sql
);
return
$result
;
}
/**
* Changes DNS zone status
* @param int session id
...
...
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