New, simpler WEB UI

This commit is contained in:
Serghey Rodin 2012-05-15 15:51:43 +03:00
commit d352cb9385
439 changed files with 3920 additions and 45184 deletions

38
web/list/dns/index.php Normal file
View file

@ -0,0 +1,38 @@
<?php
// Init
error_reporting(NULL);
session_start();
$TAB = 'DNS';
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Header
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
if (empty($_GET['domain'])){
exec (VESTA_CMD."v_list_dns_domains $user json", $output, $return_var);
check_error($return_var);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns.html');
} else {
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
check_error($return_var);
$data = json_decode(implode('', $output), true);
//$data = array_reverse($data);
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns_rec.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns_rec.html');
}
}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');