Skip to content

Commit 2127cfd

Browse files
committed
Removing debug loging
1 parent 551ca37 commit 2127cfd

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

web/add/user/index.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@
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']);

web/bulk/web/index.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,19 @@
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-
3836
foreach ($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

4744
if (isset($restart)) {
4845
exec (VESTA_CMD."v-restart-web", $output, $return_var);

0 commit comments

Comments
 (0)