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
75cc840c
Commit
75cc840c
authored
Jul 27, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3546 - bug in srv records in bind_dlz plugin.
parent
0df5269c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
server/plugins-available/bind_dlz_plugin.inc.php
server/plugins-available/bind_dlz_plugin.inc.php
+6
-0
No files found.
server/plugins-available/bind_dlz_plugin.inc.php
View file @
75cc840c
...
...
@@ -252,6 +252,9 @@ class bind_dlz_plugin {
if
(
$type
==
'MX'
)
{
$app
->
db
->
query
(
"INSERT INTO named.records (zone, ttl, type, host, mx_priority, data, ispconfig_id)"
.
" VALUES ('
$origin
',
$ttl
, '
$type
', '
$name
',
{
$data
[
"new"
][
"aux"
]
}
, '
$content
',
$ispconfig_id
)"
);
}
elseif
(
$type
==
'SRV'
)
{
$app
->
db
->
query
(
"INSERT INTO named.records (zone, ttl, type, data, ispconfig_id)"
.
" VALUES ('
$origin
',
$ttl
, '
$type
', '
{
$data
[
"new"
][
"aux"
]
}
$content
',
$ispconfig_id
)"
);
}
else
{
$app
->
db
->
query
(
"INSERT INTO named.records (zone, ttl, type, host, data, ispconfig_id)"
.
" VALUES ('
$origin
',
$ttl
, '
$type
', '
$name
', '
$content
',
$ispconfig_id
)"
);
...
...
@@ -327,6 +330,9 @@ class bind_dlz_plugin {
if
(
$type
==
'MX'
)
{
$app
->
db
->
query
(
"UPDATE named.records SET zone = '
$origin
', ttl =
$ttl
, type = '
$type
', host = '
$name
', mx_priority =
$prio
, "
.
"data = '
$content
' WHERE ispconfig_id =
$ispconfig_id
AND type != 'SOA'"
);
}
elseif
(
$type
==
'SRV'
)
{
$app
->
db
->
query
(
"UPDATE named.records SET zone = '
$origin
', ttl =
$ttl
, type = '
$type
', "
.
"data = '
$prio
$content
' WHERE ispconfig_id =
$ispconfig_id
AND type != 'SOA'"
);
}
else
{
$app
->
db
->
query
(
"UPDATE named.records SET zone = '
$origin
', ttl =
$ttl
, type = '
$type
', host = '
$name
', "
.
"data = '
$content
' WHERE ispconfig_id =
$ispconfig_id
AND type != 'SOA'"
);
...
...
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