mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-27 14:31:12 -08:00
24 lines
507 B
PHP
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);
|