File tree Expand file tree Collapse file tree 4 files changed +11
-16
lines changed
Expand file tree Collapse file tree 4 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 125125$ stats = json_decode (implode ('' , $ output ), true );
126126unset($ output );
127127
128- //List web doamins
129- exec (HESTIA_CMD ."v-list-web-domains " .$ user ." json " , $ output , $ return_var );
130- $ domains = json_decode (implode ('' , $ output ), true );
131- unset($ output );
132-
133128// Check POST request
134129if (!empty ($ _POST ['save ' ])) {
135130 $ v_domain = $ _POST ['v_domain ' ];
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ App.Listeners.DB.keypress_custom_folder = function() {
2121}
2222
2323App . Listeners . DB . change_custom_doc = function ( ) {
24- var ref = $ ( 'select[name="v-custom -domain"]' ) ;
24+ var ref = $ ( 'select[name="v-costum-doc -domain"]' ) ;
2525 var current_rec = ref . val ( ) ;
2626 ref . bind ( 'change select' , function ( evt ) {
2727 clearTimeout ( window . frp_usr_tmt ) ;
Original file line number Diff line number Diff line change 262262 < select class ="vst-list " name ="v-costum-doc-domain ">
263263 < option value ="<?php echo $v_domain;?> "> < ?php echo $v_domain;?> </ option >
264264 < ?php
265- foreach ($domains as $key = > $d ) {
266- if($key != $v_domain ){
267- if($v_costum_doc_domain == $key ){
265+ foreach ($user_domains as $domain ) {
266+ if($domain != $v_domain ){
267+ if($v_costum_doc_domain == $domain ){
268268 ?>
269- < option value ="<?php echo $key ;?> " selected ="selected "> < ?php echo $key ;?> </ option >
269+ < option value ="<?php echo $domain ;?> " selected ="selected "> < ?php echo $domain ;?> </ option >
270270 < ?php
271271 }else{
272272 ?>
273- < option value ="<?php echo $key ;?> "> < ?php echo $key ;?> </ option >
273+ < option value ="<?php echo $domain ;?> "> < ?php echo $domain ;?> </ option >
274274 < ?php
275275 }
276276 }
Original file line number Diff line number Diff line change 275275 < select class ="vst-list " name ="v-costum-doc-domain ">
276276 < option value ="<?php echo $v_domain;?> "> < ?php echo $v_domain;?> </ option >
277277 < ?php
278- foreach ($domains as $key = > $d) {
279- if($key != $v_domain ){
280- if($v_costum_doc_domain == $key ){
278+ foreach ($user_domains as $domain {
279+ if($domain != $v_domain ){
280+ if($v_costum_doc_domain == $domain ){
281281 ?>
282- < option value ="<?php echo $key ;?> " selected ="selected "> < ?php echo $key ;?> </ option >
282+ < option value ="<?php echo $domain ;?> " selected ="selected "> < ?php echo $domain ;?> </ option >
283283 < ?php
284284 }else{
285285 ?>
286- < option value ="<?php echo $key ;?> "> < ?php echo $key ;?> </ option >
286+ < option value ="<?php echo $domain ;?> "> < ?php echo $domain ;?> </ option >
287287 < ?php
288288 }
289289 }
You can’t perform that action at this time.
0 commit comments