Fixed: FS#670 - Changing ftp_user_prefix and shell_user_prefix not possible
| | |
| | | |
| | | $app->uses('getconf'); |
| | | $global_config = $app->getconf->get_global_config('sites'); |
| | | $ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | // $ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); |
| | | |
| | | if ($this->dataRecord['username'] != ""){ |
| | | /* REMOVE the restriction */ |
| | |
| | | |
| | | $app->uses('getconf'); |
| | | $global_config = $app->getconf->get_global_config('sites'); |
| | | $ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | //$ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); |
| | | |
| | | if ($app->tform->errorMessage == '') { |
| | | $this->dataRecord['username'] = $ftpuser_prefix . $this->dataRecord['username']; |
| | |
| | | |
| | | $app->uses('getconf'); |
| | | $global_config = $app->getconf->get_global_config('sites'); |
| | | $ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | //$ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); |
| | | $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); |
| | | |
| | | /* restrict the names */ |
| | | if ($app->tform->errorMessage == '') { |
| | |
| | |
|
| | | $app->uses('getconf');
|
| | | $global_config = $app->getconf->get_global_config('sites');
|
| | | $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']);
|
| | | //$shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); |
| | | $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); |
| | |
|
| | | if ($this->dataRecord['username'] != ""){
|
| | | /* REMOVE the restriction */
|
| | |
| | |
|
| | | $app->uses('getconf');
|
| | | $global_config = $app->getconf->get_global_config('sites');
|
| | | $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']);
|
| | | // $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); |
| | | $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); |
| | |
|
| | | /* restrict the names */
|
| | | $this->dataRecord['username'] = $shelluser_prefix . $this->dataRecord['username'];
|
| | |
| | | */
|
| | | $app->uses('getconf');
|
| | | $global_config = $app->getconf->get_global_config('sites');
|
| | | $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']);
|
| | | // $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); |
| | | $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); |
| | |
|
| | | /* restrict the names */
|
| | | $this->dataRecord['username'] = $shelluser_prefix . $this->dataRecord['username'];
|