Skip to content
Snippets Groups Projects
Commit ae070732 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed issue with shell user creation due to missing parent user and group...

Fixed issue with shell user creation due to missing parent user and group values in shell_user database records.
parent b4284d33
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,7 @@ class page_action extends tform_actions { ...@@ -158,6 +158,7 @@ class page_action extends tform_actions {
global $app, $conf; global $app, $conf;
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$app->functions->intval($this->dataRecord["parent_domain_id"])); $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$app->functions->intval($this->dataRecord["parent_domain_id"]));
$server_id = $app->functions->intval($web["server_id"]); $server_id = $app->functions->intval($web["server_id"]);
$dir = $app->db->quote($web["document_root"]); $dir = $app->db->quote($web["document_root"]);
$uid = $app->db->quote($web["system_user"]); $uid = $app->db->quote($web["system_user"]);
...@@ -166,8 +167,9 @@ class page_action extends tform_actions { ...@@ -166,8 +167,9 @@ class page_action extends tform_actions {
// The FTP user shall be owned by the same group then the website // The FTP user shall be owned by the same group then the website
$sys_groupid = $app->functions->intval($web['sys_groupid']); $sys_groupid = $app->functions->intval($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; $sql = "UPDATE shell_user SET server_id = $server_id, dir = '$dir', puser = '$uid', pgroup = '$gid', sys_groupid = '$sys_groupid' WHERE shell_user_id = ".$this->id;
$app->db->query($sql); $app->db->query($sql);
die($sql);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment