File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 5050 $ pw_len = strlen ($ _POST ['v_password ' ]);
5151 if ($ pw_len < 6 ) $ _SESSION ['error_msg ' ] = __ ('Password is too short. ' ,$ error_msg );
5252 }
53- // Check username length
54- if (empty ($ _SESSION ['error_msg ' ])) {
55- $ username_len = strlen ($ _POST ['v_username ' ]);
56- if ($ username_len > 12 ) $ _SESSION ['error_msg ' ] = __ ('Username is too long. Maximum 12 characters ' , $ error_msg );
57- }
5853
5954 // Protect input
6055 $ v_username = escapeshellarg ($ _POST ['v_username ' ]);
Original file line number Diff line number Diff line change 2727 }
2828} else {
2929 switch ($ action ) {
30- case 'delete ' : $ cmd ='v-web -domain ' ;
30+ case 'delete ' : $ cmd ='v-delete -domain ' ;
3131 break ;
3232 default : header ("Location: /list/web/ " ); exit ;
3333 }
3434}
3535
36- print_r ($ _POST );
37-
3836foreach ($ domain as $ value ) {
3937 $ value = escapeshellarg ($ value );
4038 echo VESTA_CMD .$ cmd ." " .$ user ." " .$ value ." no " ;
41- // exec (VESTA_CMD.$cmd." ".$user." ".$value." no", $output, $return_var);
39+ exec (VESTA_CMD .$ cmd ." " .$ user ." " .$ value ." no " , $ output , $ return_var );
4240 $ restart ='yes ' ;
4341}
4442
45- exit ();
4643
4744if (isset ($ restart )) {
4845 exec (VESTA_CMD ."v-restart-web " , $ output , $ return_var );
You can’t perform that action at this time.
0 commit comments