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
ISPConfig
ISPConfig 3
Commits
721fb2a7
Commit
721fb2a7
authored
Aug 11, 2009
by
tbrehm
Browse files
Fixed: FS#828 - DNS Zones created by resellers from template/Wizard not linked to the client
parent
11b3daff
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/dns/dns_wizard.php
View file @
721fb2a7
...
...
@@ -137,6 +137,15 @@ if($_POST['create'] == 1) {
if
(
isset
(
$_POST
[
'ns2'
])
&&
$_POST
[
'ns2'
]
==
''
)
$error
.
=
$app
->
lng
(
'error_ns2_empty'
)
.
'<br />'
;
if
(
isset
(
$_POST
[
'email'
])
&&
$_POST
[
'email'
]
==
''
)
$error
.
=
$app
->
lng
(
'error_email_empty'
)
.
'<br />'
;
// make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
&&
isset
(
$_POST
[
'client_group_id'
]))
{
$sys_groupid
=
intval
(
$_POST
[
'client_group_id'
]);
}
elseif
(
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
&&
isset
(
$_POST
[
'client_group_id'
]))
{
$sys_groupid
=
intval
(
$_POST
[
'client_group_id'
]);
}
else
{
$sys_groupid
=
$_SESSION
[
"s"
][
"user"
][
"default_group"
];
}
$tform_def_file
=
"form/dns_soa.tform.php"
;
$app
->
uses
(
'tform'
);
$app
->
tform
->
loadFormDef
(
$tform_def_file
);
...
...
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