File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 8383$ v_ftp_user = $ data [$ v_domain ]['FTP_USER ' ];
8484$ v_ftp_path = $ data [$ v_domain ]['FTP_PATH ' ];
8585if (!empty ($ v_ftp_user )) $ v_ftp_password = "" ;
86- $ v_ftp_user_prepath = '/home/ ' .$ v_username .'/web/ ' .$ v_domain ;
86+
87+ if ($ v_custom_doc_domain != '' ){
88+ $ v_ftp_user_prepath = '/home/ ' .$ v_username .'/web/ ' .$ v_custom_doc_domain ;
89+ }else {
90+ $ v_ftp_user_prepath = '/home/ ' .$ v_username .'/web/ ' .$ v_domain ;
91+ }
92+
93+
8794$ v_ftp_email = $ panel [$ user ]['CONTACT ' ];
8895$ v_suspended = $ data [$ v_domain ]['SUSPENDED ' ];
8996if ( $ v_suspended == 'yes ' ) {
750757 unset($ _POST ['v-custom-doc-domain ' ], $ _POST ['v-custom-doc-folder ' ]);
751758 }
752759
753- if ( !empty ($ _POST ['v-custom-doc-domain ' ]) && !empty ($ _POST ['v_custom_doc_root_check ' ]) && $ v_custom_doc_root_prepath .$ v_custom_doc_domain .'/public_html ' .$ v_custom_doc_folder != $ v_custom_doc_root ){
760+ if ( !empty ($ _POST ['v-custom-doc-domain ' ]) && !empty ($ _POST ['v_custom_doc_root_check ' ]) && $ v_custom_doc_root_prepath .$ v_custom_doc_domain .'/public_html ' .$ v_custom_doc_folder != $ v_custom_doc_root || ( $ _POST [ ' v-custom-doc-domain ' ] == $ v_domain && ! empty ( $ _POST [ ' v-custom-doc-folder ' ])) ){
754761
755762 $ v_custom_doc_domain = escapeshellarg ($ _POST ['v-custom-doc-domain ' ]);
756763 $ v_custom_doc_folder = escapeshellarg ($ _POST ['v-custom-doc-folder ' ]);
Original file line number Diff line number Diff line change 281281 </ tr >
282282 < tr >
283283 < td class ="vst-text input-label ">
284- < ?php print( __('Folder'));?>
284+ < ?php print( __('Folder'));?> < span class =" optional " > ( < ?php print __('optional');? > ) </ span >
285285 </ td >
286286 </ tr >
287287 < tr >
Original file line number Diff line number Diff line change 294294 </ tr >
295295 < tr >
296296 < td class ="vst-text input-label ">
297- < ?php print( __('Folder'));?>
297+ < ?php print( __('Folder'));?> < span class =" optional " > ( < ?php print __('optional');? > ) </ span >
298298 </ td >
299299 </ tr >
300300 < tr >
You can’t perform that action at this time.
0 commit comments