Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
15982801
Commit
15982801
authored
May 20, 2011
by
sebastianm
Browse files
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
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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment