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
486
Issues
486
List
Boards
Labels
Service Desk
Milestones
Merge Requests
23
Merge Requests
23
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
ISPConfig
ISPConfig 3
Commits
bdb95fd0
Commit
bdb95fd0
authored
Apr 30, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
parents
e325c34d
e628615e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
33 deletions
+44
-33
interface/lib/classes/remote.d/dns.inc.php
interface/lib/classes/remote.d/dns.inc.php
+44
-33
No files found.
interface/lib/classes/remote.d/dns.inc.php
View file @
bdb95fd0
...
...
@@ -307,7 +307,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_aaaa.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -319,18 +319,19 @@ class remoting_dns extends remoting {
return
false
;
}
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_aaaa.tform.php'
,
$client_id
,
$primary_id
,
$params
);
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_aaaa_delete
(
$session_id
,
$primary_id
)
public
function
dns_aaaa_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_aaaa_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_aaaa.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -357,7 +358,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_a.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -368,19 +369,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_a.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_a_delete
(
$session_id
,
$primary_id
)
public
function
dns_a_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_a_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_a.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -407,7 +409,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_alias.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -418,19 +420,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_alias.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_alias_delete
(
$session_id
,
$primary_id
)
public
function
dns_alias_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_alias_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_alias.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -457,7 +460,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_cname.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -468,19 +471,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_cname.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_cname_delete
(
$session_id
,
$primary_id
)
public
function
dns_cname_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_cname_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_cname.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -507,7 +511,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_hinfo.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -518,19 +522,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_hinfo.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_hinfo_delete
(
$session_id
,
$primary_id
)
public
function
dns_hinfo_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_hinfo_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_hinfo.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -557,7 +562,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_mx.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -568,19 +573,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_mx.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_mx_delete
(
$session_id
,
$primary_id
)
public
function
dns_mx_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_mx_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_mx.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -607,7 +613,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_ns.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -618,19 +624,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_ns.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_ns_delete
(
$session_id
,
$primary_id
)
public
function
dns_ns_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_ns_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_ns.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -657,7 +664,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_ptr.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -668,19 +675,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_ptr.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_ptr_delete
(
$session_id
,
$primary_id
)
public
function
dns_ptr_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_ptr_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_ptr.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -707,7 +715,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_rp.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -718,19 +726,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_rp.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_rp_delete
(
$session_id
,
$primary_id
)
public
function
dns_rp_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_rp_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_rp.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -757,7 +766,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_srv.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -768,19 +777,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_srv.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_srv_delete
(
$session_id
,
$primary_id
)
public
function
dns_srv_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_srv_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_srv.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -807,7 +817,7 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$this
->
insertQuery
(
'../dns/form/dns_txt.tform.php'
,
$client_id
,
$params
);
}
...
...
@@ -818,19 +828,20 @@ class remoting_dns extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
if
(
$update_serial
!=
false
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../dns/form/dns_txt.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
}
//* Delete a record
public
function
dns_txt_delete
(
$session_id
,
$primary_id
)
public
function
dns_txt_delete
(
$session_id
,
$primary_id
,
$update_serial
=
false
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'dns_txt_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
deleteQuery
(
'../dns/form/dns_txt.tform.php'
,
$primary_id
);
if
(
$update_serial
)
$this
->
increase_serial
(
$session_id
,
$client_id
,
$params
);
return
$affected_rows
;
}
...
...
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