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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
lolo888
ISPConfig 3
Commits
2da616af
Commit
2da616af
authored
Jan 28, 2010
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#967 - Changing website client makes FTP unaccesable.
parent
328e6ce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
interface/web/sites/web_domain_edit.php
interface/web/sites/web_domain_edit.php
+17
-0
No files found.
interface/web/sites/web_domain_edit.php
View file @
2da616af
...
...
@@ -385,6 +385,23 @@ class page_action extends tform_actions {
$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
);
// Update the FTP user(s) too
$records
=
$app
->
db
->
queryAllRecords
(
"SELECT ftp_user_id FROM ftp_user WHERE parent_domain_id = "
.
$this
->
id
);
foreach
(
$records
as
$rec
)
{
$app
->
db
->
datalogUpdate
(
'ftp_user'
,
"uid = '
$system_user
', gid = '
$system_group
', dir = '
$document_root
'"
,
'ftp_user_id'
,
$rec
[
'ftp_user_id'
]);
}
unset
(
$records
);
unset
(
$rec
);
// Update the Shell user(s) too
$records
=
$app
->
db
->
queryAllRecords
(
"SELECT shell_user_id FROM shell_user WHERE parent_domain_id = "
.
$this
->
id
);
foreach
(
$records
as
$rec
)
{
$app
->
db
->
datalogUpdate
(
'shell_user'
,
"puser = '
$system_user
', pgroup = '
$system_group
', dir = '
$document_root
'"
,
'shell_user_id'
,
$rec
[
'shell_user_id'
]);
}
unset
(
$records
);
unset
(
$rec
);
}
//* If the domain name has been changed, we will have to change all subdomains
...
...
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