vesta/web/api/v1/list/backup/exclusions/index.php
2021-10-31 23:24:42 +02:00

24 lines
507 B
PHP

<?php
error_reporting(NULL);
$TAB = 'BACKUP';
header('Content-Type: application/json');
// Main include
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
// Data
exec (VESTA_CMD."v-list-user-backup-exclusions $user json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
// Render page
// render_page($user, $TAB, 'list_backup_exclusions');
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
$result = array('data' => $data);
echo json_encode($result);