Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
8e65843f
Commit
8e65843f
authored
Nov 17, 2008
by
tbrehm
Browse files
FTP and Shell users belong to the same ispconfig group then the website they belong to.
parent
83df1d00
Changes
3
Hide whitespace changes
Inline
Side-by-side
interface/web/dns/templates/dns_a_list.htm
View file @
8e65843f
...
...
@@ -49,11 +49,11 @@
</tr>
<tr>
<td
class=
"tbl_col_active"
><select
name=
"search_active"
onChange=
"changeTab('dns_records','dns/dns_soa_edit.php');"
>
{tmpl_var name='search_active'}
</select></td>
<td
class=
"tbl_col_type"
><select
name=
"search_
server_id
"
onChange=
"changeTab('dns_records','dns/dns_soa_edit.php');"
>
{tmpl_var name='search_type'}
</select></td>
<td
class=
"tbl_col_type"
><select
name=
"search_
type
"
onChange=
"changeTab('dns_records','dns/dns_soa_edit.php');"
>
{tmpl_var name='search_type'}
</select></td>
<td
class=
"tbl_col_name"
><input
type=
"text"
name=
"search_name"
value=
"{tmpl_var name='search_name'}"
/></td>
<td
class=
"tbl_col_data"
><input
type=
"text"
name=
"search_data"
value=
"{tmpl_var name='search_data'}"
/></td>
<td
class=
"tbl_col_aux"
><input
type=
"text"
name=
"search_aux"
value=
"{tmpl_var name='search_aux'}"
/></td>
<td
class=
"tbl_col_buttons"
><div
class=
"buttons"
><button
type=
"button"
class=
"icons16 icoFilter"
name=
"Filter"
id=
"Filter"
value=
"{tmpl_var name="
filter_txt
"}"
onClick=
"
submitForm('pageForm
','dns/dns_soa_edit.php');"
><span>
{tmpl_var name="filter_txt"}
</span></button></div></td>
<td
class=
"tbl_col_buttons"
><div
class=
"buttons"
><button
type=
"button"
class=
"icons16 icoFilter"
name=
"Filter"
id=
"Filter"
value=
"{tmpl_var name="
filter_txt
"}"
onClick=
"
changeTab('dns_records
','dns/dns_soa_edit.php');"
><span>
{tmpl_var name="filter_txt"}
</span></button></div></td>
</tr>
</thead>
<tbody>
...
...
interface/web/sites/ftp_user_edit.php
View file @
8e65843f
...
...
@@ -93,9 +93,13 @@ class page_action extends tform_actions {
$uid
=
$web
[
"system_user"
];
$gid
=
$web
[
"system_group"
];
$sql
=
"UPDATE ftp_user SET server_id =
$server_id
, dir = '
$dir
', uid = '
$uid
', gid = '
$gid
' WHERE ftp_user_id = "
.
$this
->
id
;
// The FTP user shall be owned by the same group then the website
$sys_groupid
=
$web
[
'sys_groupid'
];
$sql
=
"UPDATE ftp_user SET server_id =
$server_id
, dir = '
$dir
', uid = '
$uid
', gid = '
$gid
', sys_groupid = '
$sys_groupid
' WHERE ftp_user_id = "
.
$this
->
id
;
$app
->
db
->
query
(
$sql
);
}
function
onAfterUpdate
()
{
...
...
interface/web/sites/shell_user_edit.php
View file @
8e65843f
...
...
@@ -104,7 +104,10 @@ class page_action extends tform_actions {
$puser
=
$web
[
"system_user"
];
$pgroup
=
$web
[
"system_group"
];
$sql
=
"UPDATE shell_user SET server_id =
$server_id
, dir = '
$dir
', puser = '
$puser
', pgroup = '
$pgroup
' WHERE shell_user_id = "
.
$this
->
id
;
// The FTP user shall be owned by the same group then the website
$sys_groupid
=
$web
[
'sys_groupid'
];
$sql
=
"UPDATE shell_user SET server_id =
$server_id
, dir = '
$dir
', puser = '
$puser
', pgroup = '
$pgroup
', sys_groupid = '
$sys_groupid
' WHERE shell_user_id = "
.
$this
->
id
;
$app
->
db
->
query
(
$sql
);
}
...
...
Write
Preview
Supports
Markdown
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