mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-25 21:41:13 -08:00
15 lines
427 B
PHP
15 lines
427 B
PHP
<?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 languages
|
|
exec (VESTA_CMD."v-list-sys-languages json", $output, $return_var);
|
|
$languages = json_decode(implode('', $output), true);
|
|
unset($output);
|
|
|
|
echo json_encode($languages); |