@@ -394,15 +394,15 @@ function onSubmit() {
394394 $ client_group_id = $ app ->functions ->intval ($ _SESSION ["s " ]["user " ]["default_group " ]);
395395 $ client = $ app ->db ->queryOneRecord ("SELECT limit_traffic_quota, limit_web_subdomain, default_webserver, parent_client_id, limit_web_quota, client. " . implode (", client. " , $ read_limits ) . " FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $ client_group_id " );
396396
397- if ($ client ['limit_cgi ' ] != 'y ' ) $ this ->dataRecord ['cgi ' ] = '- ' ;
398- if ($ client ['limit_ssi ' ] != 'y ' ) $ this ->dataRecord ['ssi ' ] = '- ' ;
399- if ($ client ['limit_perl ' ] != 'y ' ) $ this ->dataRecord ['perl ' ] = '- ' ;
400- if ($ client ['limit_ruby ' ] != 'y ' ) $ this ->dataRecord ['ruby ' ] = '- ' ;
401- if ($ client ['limit_python ' ] != 'y ' ) $ this ->dataRecord ['python ' ] = '- ' ;
397+ if ($ client ['limit_cgi ' ] != 'y ' ) $ this ->dataRecord ['cgi ' ] = 'n ' ;
398+ if ($ client ['limit_ssi ' ] != 'y ' ) $ this ->dataRecord ['ssi ' ] = 'n ' ;
399+ if ($ client ['limit_perl ' ] != 'y ' ) $ this ->dataRecord ['perl ' ] = 'n ' ;
400+ if ($ client ['limit_ruby ' ] != 'y ' ) $ this ->dataRecord ['ruby ' ] = 'n ' ;
401+ if ($ client ['limit_python ' ] != 'y ' ) $ this ->dataRecord ['python ' ] = 'n ' ;
402402 if ($ client ['force_suexec ' ] == 'y ' ) $ this ->dataRecord ['suexec ' ] = 'y ' ;
403- if ($ client ['limit_hterror ' ] != 'y ' ) $ this ->dataRecord ['errordocs ' ] = '- ' ;
404- if ($ client ['limit_wildcard ' ] != 'y ' && $ this ->dataRecord ['subdomain ' ] == '* ' ) $ this ->dataRecord ['subdomain ' ] = '- ' ;
405- if ($ client ['limit_ssl ' ] != 'y ' ) $ this ->dataRecord ['ssl ' ] = '- ' ;
403+ if ($ client ['limit_hterror ' ] != 'y ' ) $ this ->dataRecord ['errordocs ' ] = 'n ' ;
404+ if ($ client ['limit_wildcard ' ] != 'y ' && $ this ->dataRecord ['subdomain ' ] == '* ' ) $ this ->dataRecord ['subdomain ' ] = 'n ' ;
405+ if ($ client ['limit_ssl ' ] != 'y ' ) $ this ->dataRecord ['ssl ' ] = 'n ' ;
406406
407407 // only generate quota and traffic warnings if value has changed
408408 if ($ this ->id > 0 ) {
@@ -455,15 +455,15 @@ function onSubmit() {
455455 $ this ->dataRecord ['web_folder ' ] = $ tmp ['web_folder ' ]; // cannot be changed!
456456
457457 // set the settings to current if not provided (or cleared due to limits)
458- if ($ this ->dataRecord ['cgi ' ] == '- ' ) $ this ->dataRecord ['cgi ' ] = $ tmp ['cgi ' ];
459- if ($ this ->dataRecord ['ssi ' ] == '- ' ) $ this ->dataRecord ['ssi ' ] = $ tmp ['ssi ' ];
460- if ($ this ->dataRecord ['perl ' ] == '- ' ) $ this ->dataRecord ['perl ' ] = $ tmp ['perl ' ];
461- if ($ this ->dataRecord ['ruby ' ] == '- ' ) $ this ->dataRecord ['ruby ' ] = $ tmp ['ruby ' ];
462- if ($ this ->dataRecord ['python ' ] == '- ' ) $ this ->dataRecord ['python ' ] = $ tmp ['python ' ];
463- if ($ this ->dataRecord ['suexec ' ] == '- ' ) $ this ->dataRecord ['suexec ' ] = $ tmp ['suexec ' ];
464- if ($ this ->dataRecord ['errordocs ' ] == '- ' ) $ this ->dataRecord ['errordocs ' ] = $ tmp ['errordocs ' ];
465- if ($ this ->dataRecord ['subdomain ' ] == '- ' ) $ this ->dataRecord ['subdomain ' ] = $ tmp ['subdomain ' ];
466- if ($ this ->dataRecord ['ssl ' ] == '- ' ) $ this ->dataRecord ['ssl ' ] = $ tmp ['ssl ' ];
458+ if ($ this ->dataRecord ['cgi ' ] == 'n ' ) $ this ->dataRecord ['cgi ' ] = $ tmp ['cgi ' ];
459+ if ($ this ->dataRecord ['ssi ' ] == 'n ' ) $ this ->dataRecord ['ssi ' ] = $ tmp ['ssi ' ];
460+ if ($ this ->dataRecord ['perl ' ] == 'n ' ) $ this ->dataRecord ['perl ' ] = $ tmp ['perl ' ];
461+ if ($ this ->dataRecord ['ruby ' ] == 'n ' ) $ this ->dataRecord ['ruby ' ] = $ tmp ['ruby ' ];
462+ if ($ this ->dataRecord ['python ' ] == 'n ' ) $ this ->dataRecord ['python ' ] = $ tmp ['python ' ];
463+ if ($ this ->dataRecord ['suexec ' ] == 'n ' ) $ this ->dataRecord ['suexec ' ] = $ tmp ['suexec ' ];
464+ if ($ this ->dataRecord ['errordocs ' ] == 'n ' ) $ this ->dataRecord ['errordocs ' ] = $ tmp ['errordocs ' ];
465+ if ($ this ->dataRecord ['subdomain ' ] == 'n ' ) $ this ->dataRecord ['subdomain ' ] = $ tmp ['subdomain ' ];
466+ if ($ this ->dataRecord ['ssl ' ] == 'n ' ) $ this ->dataRecord ['ssl ' ] = $ tmp ['ssl ' ];
467467
468468 unset($ tmp );
469469 // When the record is inserted
0 commit comments