Skip to content

Commit e894edc

Browse files
committed
optional text added+custom path additonal ftp fixed
1 parent 5750905 commit e894edc

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

web/edit/web/index.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@
8383
$v_ftp_user = $data[$v_domain]['FTP_USER'];
8484
$v_ftp_path = $data[$v_domain]['FTP_PATH'];
8585
if (!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'];
8996
if ( $v_suspended == 'yes' ) {
@@ -750,7 +757,7 @@
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']);

web/templates/admin/edit_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
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>

web/templates/user/edit_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
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>

0 commit comments

Comments
 (0)