mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Removing debug loging
This commit is contained in:
parent
551ca3753c
commit
2127cfd44b
2 changed files with 2 additions and 10 deletions
|
@ -50,11 +50,6 @@ if (!empty($_POST['ok'])) {
|
||||||
$pw_len = strlen($_POST['v_password']);
|
$pw_len = strlen($_POST['v_password']);
|
||||||
if ($pw_len < 6 ) $_SESSION['error_msg'] = __('Password is too short.',$error_msg);
|
if ($pw_len < 6 ) $_SESSION['error_msg'] = __('Password is too short.',$error_msg);
|
||||||
}
|
}
|
||||||
// Check username length
|
|
||||||
if (empty($_SESSION['error_msg'])) {
|
|
||||||
$username_len = strlen($_POST['v_username']);
|
|
||||||
if ($username_len > 12) $_SESSION['error_msg'] = __('Username is too long. Maximum 12 characters', $error_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Protect input
|
// Protect input
|
||||||
$v_username = escapeshellarg($_POST['v_username']);
|
$v_username = escapeshellarg($_POST['v_username']);
|
||||||
|
|
|
@ -27,22 +27,19 @@ if ($_SESSION['user'] == 'admin') {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'delete': $cmd='v-web-domain';
|
case 'delete': $cmd='v-delete-domain';
|
||||||
break;
|
break;
|
||||||
default: header("Location: /list/web/"); exit;
|
default: header("Location: /list/web/"); exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_r($_POST);
|
|
||||||
|
|
||||||
foreach ($domain as $value) {
|
foreach ($domain as $value) {
|
||||||
$value = escapeshellarg($value);
|
$value = escapeshellarg($value);
|
||||||
echo VESTA_CMD.$cmd." ".$user." ".$value." no";
|
echo VESTA_CMD.$cmd." ".$user." ".$value." no";
|
||||||
// exec (VESTA_CMD.$cmd." ".$user." ".$value." no", $output, $return_var);
|
exec (VESTA_CMD.$cmd." ".$user." ".$value." no", $output, $return_var);
|
||||||
$restart='yes';
|
$restart='yes';
|
||||||
}
|
}
|
||||||
|
|
||||||
exit();
|
|
||||||
|
|
||||||
if (isset($restart)) {
|
if (isset($restart)) {
|
||||||
exec (VESTA_CMD."v-restart-web", $output, $return_var);
|
exec (VESTA_CMD."v-restart-web", $output, $return_var);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue