| | |
| | |
|
| | | $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'];
|