1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

19 lines
402 B
PHP
Raw Normal View History

2012-05-15 15:51:43 +03:00
<?php
2015-11-06 22:54:06 +02:00
error_reporting(NULL);
2012-05-15 15:51:43 +03:00
$TAB = 'DB';
2013-01-29 00:18:09 +02:00
// Main include
2012-05-15 15:51:43 +03:00
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Data
exec (VESTA_CMD."v-list-databases $user json", $output, $return_var);
$data = json_decode(implode('', $output), true);
2013-02-20 14:37:07 +02:00
$data = array_reverse($data, true);
unset($output);
2013-01-22 18:43:07 +02:00
// Render page
2016-07-02 21:40:46 +09:00
render_page($user, $TAB, 'list_db');
2012-05-15 15:51:43 +03:00
2013-01-29 00:18:09 +02:00
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];