| | |
| | | $app->tpl->setVar("username", $app->tools_sites->removePrefix($this->dataRecord['username'], $this->dataRecord['username_prefix'], $ftpuser_prefix)); |
| | | } |
| | | |
| | | $app->tpl->setVar("username_prefix", $app->tools_sites->getPrefix($this->dataRecord['username_prefix'], $ftpuser_prefix, $global_config['ftpuser_prefix'])); |
| | | if($this->dataRecord['username'] == "") { |
| | | $app->tpl->setVar("username_prefix", $ftpuser_prefix); |
| | | } else { |
| | | $app->tpl->setVar("username_prefix", $app->tools_sites->getPrefix($this->dataRecord['username_prefix'], $ftpuser_prefix, $global_config['ftpuser_prefix'])); |
| | | } |
| | | |
| | | parent::onShowEnd(); |
| | | } |
| | |
| | | |
| | | function onBeforeUpdate() { |
| | | global $app, $conf, $interfaceConf; |
| | | |
| | | |
| | | // Check system user and group |
| | | if(isset($this->dataRecord['uid'])) { |
| | | if($app->functions->is_allowed_user(strtolower($this->dataRecord['uid']),true) == false || $app->functions->is_allowed_group(strtolower($this->dataRecord['gid']),true) == false) { |
| | | $app->tform->errorMessage .= $app->tform->lng('invalid_system_user_or_group_txt'); |
| | | } |
| | | } |
| | | |
| | | /* |
| | | * If the names should be restricted -> do it! |