Improved: FS#2176 - collision between shell/ftp accounts and client accounts named webXX is not checked
| | |
| | | $app->uses('getconf'); |
| | | $global_config = $app->getconf->get_global_config('sites'); |
| | | |
| | | if(substr($field_value,0,3) == 'web' && |
| | | if((trim($field_value) == 'web' || preg_match('/^web[0-9]/',$field_value)) && |
| | | ($global_config['ftpuser_prefix'] == '[CLIENTNAME]' || |
| | | $global_config['ftpuser_prefix'] == '' || |
| | | $global_config['shelluser_prefix'] == '[CLIENTNAME]' || |
| | |
| | | $wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.'; |
| | | $wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.'; |
| | | $wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.'; |
| | | $wb["username_error_collision"] = 'The username may not start with the word - web -'; |
| | | $wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number'; |
| | | ?> |
| | |
| | | $wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.'; |
| | | $wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.'; |
| | | $wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.'; |
| | | $wb["username_error_collision"] = 'The username may not start with the word - web -'; |
| | | $wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number'; |
| | | ?> |