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
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
ISPConfig
ISPConfig 3
Commits
6f7cff40
Commit
6f7cff40
authored
4 years ago
by
Thom
Browse files
Options
Downloads
Patches
Plain Diff
Add get template function (#3635)
parent
59f88481
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1021
DNS additions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/classes/remote.d/dns.inc.php
+18
-0
18 additions, 0 deletions
interface/lib/classes/remote.d/dns.inc.php
with
18 additions
and
0 deletions
interface/lib/classes/remote.d/dns.inc.php
+
18
−
0
View file @
6f7cff40
...
...
@@ -736,6 +736,24 @@ class remoting_dns extends remoting {
//* Get All DNS Zones Templates by etruel
public
function
dns_templatezone_get_all
(
$session_id
)
{
global
$app
,
$conf
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_templatezone_add'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$sql
=
"SELECT * FROM dns_template"
;
$result
=
$app
->
db
->
queryAllRecords
(
$sql
);
if
(
isset
(
$result
))
{
return
$result
;
}
else
{
this
->
server
->
fault
(
'template_id_error'
,
'There is no DNS templates.'
);
return
false
;
}
}
/**
* Get all dns records for a zone
* @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