Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
513152e4
Commit
513152e4
authored
Apr 04, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#2154 - Client ID is incorrect in "PHP open_basedir" field of Website -> Options [tab]
parent
b2740998
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
interface/web/sites/web_domain_edit.php
interface/web/sites/web_domain_edit.php
+6
-2
No files found.
interface/web/sites/web_domain_edit.php
View file @
513152e4
...
...
@@ -569,10 +569,14 @@ class page_action extends tform_actions {
$client_group_id
=
$_SESSION
[
"s"
][
"user"
][
"default_group"
];
$client
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE sys_group.groupid =
$client_group_id
"
);
$client_id
=
intval
(
$client
[
"client_id"
]);
}
else
{
//
$client_
id = intval(@$web_rec
["client_group_id"]
)
;
}
else
if
(
isset
(
$this
->
dataRecord
[
"client_group_id"
]))
{
$client_
group_id
=
$this
->
dataRecord
[
"client_group_id"
];
$client
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE sys_group.groupid = "
.
intval
(
@
$this
->
dataRecord
[
"client_group_id"
]));
$client_id
=
intval
(
$client
[
"client_id"
]);
}
else
{
$client_group_id
=
$web_rec
[
'sys_groupid'
];
$client
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE sys_group.groupid = "
.
intval
(
$client_group_id
));
$client_id
=
intval
(
$client
[
"client_id"
]);
}
if
((
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
||
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
]))
&&
isset
(
$this
->
dataRecord
[
"client_group_id"
])
&&
$this
->
dataRecord
[
"client_group_id"
]
!=
$this
->
oldDataRecord
[
"sys_groupid"
])
{
...
...
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