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
35a8f56d
Commit
35a8f56d
authored
Oct 25, 2009
by
tbrehm
Browse files
Fixed: FS#922 - PowerDNS plugin NOTIFY fix
parent
447ba60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/powerdns_plugin.inc.php
View file @
35a8f56d
...
...
@@ -160,7 +160,7 @@ class powerdns_plugin {
$ispconfig_id
=
$data
[
"new"
][
"id"
];
$serial
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM dns_soa WHERE id = "
.
$ispconfig_id
);
$serial_id
=
$serial
[
"serial"
];
$app
->
db
->
query
(
"UPDATE powerdns.domains SET name = '
$origin
', notified_serial =
$serial_id
WHERE ispconfig_id =
$ispconfig_id
"
);
//
$app->db->query("UPDATE powerdns.domains SET name = '$origin', notified_serial = $serial_id WHERE ispconfig_id = $ispconfig_id");
//$app->db->query("UPDATE powerdns.domains SET name = '$origin' WHERE ispconfig_id = $ispconfig_id");
if
(
substr
(
$data
[
"new"
][
"ns"
],
-
1
)
==
'.'
){
...
...
@@ -171,8 +171,8 @@ class powerdns_plugin {
if
(
$ns
==
''
)
$ns
=
$origin
;
$hostmaster
=
substr
(
$data
[
"new"
][
"mbox"
],
0
,
-
1
);
$content
=
$ns
.
' '
.
$hostmaster
.
' 0'
;
//
$content = $ns.' '.$hostmaster.' '.$serial_id.'';
//
$content = $ns.' '.$hostmaster.' 0';
$content
=
$ns
.
' '
.
$hostmaster
.
' '
.
$serial_id
.
''
;
$ttl
=
$data
[
"new"
][
"ttl"
];
$app
->
db
->
query
(
"UPDATE powerdns.records SET name = '
$origin
', content = '
$content
', ttl =
$ttl
, change_date = "
.
time
()
.
" WHERE ispconfig_id = "
.
$data
[
"new"
][
"id"
]
.
" AND type = 'SOA'"
);
}
else
{
...
...
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