mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
Integrated new api interface.
This commit is contained in:
parent
4a9bfc94ad
commit
4306a4fb4f
116 changed files with 10371 additions and 0 deletions
15
web/api/v1/list-user-ns.php
Normal file
15
web/api/v1/list-user-ns.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'BACKUP';
|
||||
header('Content-Type: application/json');
|
||||
|
||||
// Main include
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
|
||||
top_panel(empty($_SESSION['look']) ? $_SESSION['user'] : $_SESSION['look'], $TAB);
|
||||
|
||||
// List users ns
|
||||
exec (VESTA_CMD."v-list-user-ns ".$user." json", $output, $return_var);
|
||||
$nameservers = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
echo json_encode($nameservers);
|
Loading…
Add table
Add a link
Reference in a new issue