Merge pull request #38 from serghey-rodin/master

Update from official vesta github
This commit is contained in:
myvesta 2019-10-03 16:22:09 +02:00 committed by GitHub
commit 619874873a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 17 additions and 13 deletions

View file

@ -72,13 +72,14 @@ if ((!empty($_GET['domain'])) && (!empty($_GET['account']))) {
$v_domain = escapeshellarg($_GET['domain']);
$v_account = escapeshellarg($_GET['account']);
$v_account_without_quotas = $_GET['account'];
// Parse autoreply
if ( $v_autoreply == 'yes' ) {
exec (VESTA_CMD."v-list-mail-account-autoreply ".$user." ".$v_domain." ".$v_account." json", $output, $return_var);
$autoreply_str = json_decode(implode('', $output), true);
unset($output);
$v_autoreply_message = $autoreply_str[$v_account]['MSG'];
$v_autoreply_message = $autoreply_str[$v_account_without_quotas]['MSG'];
$v_autoreply_message=str_replace("\\n", "\n", $v_autoreply_message);
}
}