Username prefix empty
When adding a new user, FTP and Shell, username prefix is empty. I think we should see as a client, the clientname as a prefix.
So i looked into shell_user_edit.php, ftp_user_edit.php, tools_sites.inc.php,...
I suggest to modify shell_user_edit.php and ftp_user_edit.php, i suppose when there is no username then dataRecord is empty or you can check that dataRecord perhaps :
shell_user_edit.php :
if ($this->dataRecord['username'] != ""){ /* REMOVE the restriction */ $app->tpl->setVar("username", $app->tools_sites->removePrefix($this->dataRecord['username'], $this->dataRecord['username_prefix'], $shelluser_prefix)); } else { $this->dataRecord['username_prefix'] = '#'; }
ftp_user_edit.php : if ($this->dataRecord['username'] != ""){ /* REMOVE the restriction */ $app->tpl->setVar("username", $app->tools_sites->removePrefix($this->dataRecord['username'], $this->dataRecord['username_prefix'], $ftpuser_prefix)); } else { $this->dataRecord['username_prefix'] = '#'; }