File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 581581 // Change FTP account path
582582 $ v_ftp_username = $ user . '_ ' . $ v_ftp_user_data ['v_ftp_user ' ]; //preg_replace("/^".$user."_/", "", $v_ftp_user_data['v_ftp_user']);
583583 $ v_ftp_username = escapeshellarg ($ v_ftp_username );
584- //if (!empty($v_ftp_user_data['v_ftp_path'])) {
585584 $ v_ftp_path = escapeshellarg (trim ($ v_ftp_user_data ['v_ftp_path ' ]));
586- exec (VESTA_CMD ."v-change-web-domain-ftp-path " .$ v_username ." " .$ v_domain ." " .$ v_ftp_username ." " .$ v_ftp_path , $ output , $ return_var );
587- //}
585+ if (escapeshellarg (trim ($ v_ftp_user_data ['v_ftp_path_prev ' ])) != $ v_ftp_path ) {
586+ exec (VESTA_CMD ."v-change-web-domain-ftp-path " .$ v_username ." " .$ v_domain ." " .$ v_ftp_username ." " .$ v_ftp_path , $ output , $ return_var );
587+ }
588588
589589 // Change FTP account password
590590 if (!empty ($ v_ftp_user_data ['v_ftp_password ' ])) {
Original file line number Diff line number Diff line change 346346 < tr >
347347 < td class ="step-left ">
348348 < input type ="hidden " class ="vst-input v-ftp-pre-path " name ="v_ftp_pre_path " value ="<?php print !empty($v_ftp_pre_path) ? htmlentities($v_ftp_pre_path) : '/'; ?> ">
349+ < input type ="hidden " class ="vst-input v-ftp-path " name ="v_ftp_user[<?php print $i ?>][v_ftp_path_prev] " < ?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?> >
349350 < input type ="text " class ="vst-input v-ftp-path " name ="v_ftp_user[<?php print $i ?>][v_ftp_path] " < ?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?> >
350351 < br /> < span class ="ftp-path-prefix "> < ?php print $v_ftp_pre_path ?> </ span > < span class ="ftp-path-value v-ftp-path-hint "> </ span >
351352 </ td >
Original file line number Diff line number Diff line change 280280 < tr >
281281 < td class ="step-left ">
282282 < input type ="hidden " class ="vst-input v-ftp-pre-path " name ="v_ftp_pre_path " value ="<?php print !empty($v_ftp_pre_path) ? htmlentities($v_ftp_pre_path) : '/'; ?> ">
283- < input type ="text " class ="vst-input v-ftp-path " name ="v_ftp_user[<?php print $i ?>][v_ftp_path] " < ?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?> >
283+ < input type ="hidden " class ="vst-input v-ftp-path " name ="v_ftp_user[<?php print $i ?>][v_ftp_path_prev] " < ?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?> >
284+ < input type ="text " class ="vst-input v-ftp-path " name ="v_ftp_user[<?php print $i ?>][v_ftp_path] " < ?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?> >
284285 < br /> < span class ="ftp-path-prefix "> < ?php print $v_ftp_pre_path ?> </ span > < span class ="ftp-path-value v-ftp-path-hint "> </ span >
285286 </ td >
286287 </ tr >
You can’t perform that action at this time.
0 commit comments