Updated and improved API respones.

This commit is contained in:
Alexander 2021-10-31 23:24:42 +02:00
commit 859e65647f
33 changed files with 254 additions and 18 deletions

View file

@ -14,6 +14,8 @@ if (empty($_GET['domain'])){
unset($output);
$favorites = $_SESSION['favourites']['MAIL'];
// render_page($user, $TAB, 'list_mail');
} else {
exec (VESTA_CMD."v-list-mail-accounts ".$user." ".escapeshellarg($_GET['domain'])." json", $output, $return_var);
$data = json_decode(implode('', $output), true);
@ -21,6 +23,8 @@ if (empty($_GET['domain'])){
unset($output);
$favorites = $_SESSION['favourites']['MAIL_ACC'];
// render_page($user, $TAB, 'list_mail_acc');
}
$uname_arr=posix_uname();