tbrehm
2012-04-16 6361e431065471dd7bf3b1a4745ca398a940b953
Improved: FS#2176 - collision between shell/ftp accounts and client accounts named webXX is not checked
3 files modified
6 ■■■■ changed files
interface/lib/classes/validate_client.inc.php 2 ●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng 2 ●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_reseller.lng 2 ●●● patch | view | raw | blame | history
interface/lib/classes/validate_client.inc.php
@@ -77,7 +77,7 @@
        $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]' ||
interface/web/client/lib/lang/en_client.lng
@@ -109,5 +109,5 @@
$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';
?>
interface/web/client/lib/lang/en_reseller.lng
@@ -108,5 +108,5 @@
$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';
?>