mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Updated services and fixed minor bugs.
This commit is contained in:
parent
4306a4fb4f
commit
2a12fec5ea
90 changed files with 1706 additions and 3 deletions
23
web/api/v1/list/backup/exclusions/index.php
Normal file
23
web/api/v1/list/backup/exclusions/index.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?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);
|
Loading…
Add table
Add a link
Reference in a new issue