mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
refactoring dns section: new html formating
This commit is contained in:
parent
64e74887f8
commit
28d66aac89
26 changed files with 1337 additions and 922 deletions
|
@ -20,8 +20,6 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$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);
|
||||
|
@ -29,19 +27,15 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$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');
|
||||
}
|
||||
} else {
|
||||
|
||||
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/user/menu_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns.html');
|
||||
} else {
|
||||
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
||||
|
@ -49,7 +43,6 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_dns_rec.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns_rec.html');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue