Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
ee180c88
Commit
ee180c88
authored
Mar 04, 2009
by
tbrehm
Browse files
Document root of the website is not replaced anymore on updates when the user or group changes.
parent
565785a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/web_domain_edit.php
View file @
ee180c88
...
...
@@ -334,9 +334,10 @@ class page_action extends tform_actions {
// Set the values for document_root, system_user and system_group
$system_user
=
'web'
.
$this
->
id
;
$system_group
=
'client'
.
$client_id
;
$document_root
=
str_replace
(
"[client_id]"
,
$client_id
,
$document_root
);
//
$document_root = str_replace("[client_id]",$client_id,$document_root);
$sql
=
"UPDATE web_domain SET system_user = '
$system_user
', system_group = '
$system_group
', document_root = '
$document_root
' WHERE domain_id = "
.
$this
->
id
;
// $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
$sql
=
"UPDATE web_domain SET system_user = '
$system_user
', system_group = '
$system_group
' WHERE domain_id = "
.
$this
->
id
;
$app
->
db
->
query
(
$sql
);
}
...
...
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