diff --git a/bin/v_delete_dns_domain b/bin/v_delete_dns_domain
index 96b1a3123..bab2ac231 100755
--- a/bin/v_delete_dns_domain
+++ b/bin/v_delete_dns_domain
@@ -50,7 +50,7 @@ rm -f $HOMEDIR/$user/conf/dns/$domain.db
#----------------------------------------------------------#
# Deleting domain
-sed -i "/$user\/conf\/dns\/$domain.db\"/d" /etc/named.conf
+sed -i "/DOMAIN='$domain'/ d" $USER_DATA/dns.conf
rm -f $USER_DATA/dns/$domain.conf
# Decreasing domain value
diff --git a/web/add/dns/index.php b/web/add/dns/index.php
index c1fa300b5..94d79daf9 100644
--- a/web/add/dns/index.php
+++ b/web/add/dns/index.php
@@ -150,23 +150,17 @@ top_panel($user,$TAB);
$v_ns4 = $nameservers[3];
unset($output);
}
-
if (empty($v_ttl)) $v_ttl = 14400;
if (empty($v_exp)) $v_exp = date('Y-m-d', strtotime('+1 year'));
-
if ($_SESSION['user'] == 'admin') {
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns.html');
} else {
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_dns.html');
}
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
} else {
$v_domain = $_GET['domain'];
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns_rec.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns_rec.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/edit/dns/index.php b/web/edit/dns/index.php
index c2b69c553..574567cda 100644
--- a/web/edit/dns/index.php
+++ b/web/edit/dns/index.php
@@ -140,10 +140,8 @@ top_panel($user,$TAB);
}
if ($_SESSION['user'] == 'admin') {
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns.html');
} else {
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_dns.html');
}
unset($_SESSION['error_msg']);
@@ -200,7 +198,6 @@ top_panel($user,$TAB);
}
}
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns_rec.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns_rec.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/list/dns/index.php b/web/list/dns/index.php
index 64a0ac6f3..c5413f38b 100644
--- a/web/list/dns/index.php
+++ b/web/list/dns/index.php
@@ -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');
}
diff --git a/web/templates/admin/add_dns.html b/web/templates/admin/add_dns.html
index 3841c3b79..502243f06 100644
--- a/web/templates/admin/add_dns.html
+++ b/web/templates/admin/add_dns.html
@@ -1,72 +1,157 @@
-
+
+
+
+
-
-
+
+
+
diff --git a/web/templates/admin/add_dns_rec.html b/web/templates/admin/add_dns_rec.html
index 060ae73bb..43b5250fb 100644
--- a/web/templates/admin/add_dns_rec.html
+++ b/web/templates/admin/add_dns_rec.html
@@ -1,58 +1,109 @@
-
+
+
+
+
-
+
diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html
index 0fb6d74d0..1efe65916 100644
--- a/web/templates/admin/add_web.html
+++ b/web/templates/admin/add_web.html
@@ -98,7 +98,7 @@
- Advanced Options ⇢
+ Advanced Options
|
diff --git a/web/templates/admin/edit_dns.html b/web/templates/admin/edit_dns.html
index fd018d6fa..7018f36fa 100644
--- a/web/templates/admin/edit_dns.html
+++ b/web/templates/admin/edit_dns.html
@@ -1,48 +1,119 @@
-
+
+
+
+
+
+
diff --git a/web/templates/admin/edit_dns_rec.html b/web/templates/admin/edit_dns_rec.html
index 49cbf14a5..7c1f5bc8e 100644
--- a/web/templates/admin/edit_dns_rec.html
+++ b/web/templates/admin/edit_dns_rec.html
@@ -1,35 +1,99 @@
-
+
+
+
+
+
+
diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html
index d64b3dcdd..577f4425b 100644
--- a/web/templates/admin/edit_web.html
+++ b/web/templates/admin/edit_web.html
@@ -18,7 +18,7 @@
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
+
+
+
+ |
+ list records |
+ add record |
+ edit |
+
+
+ ">
+ " title="Confirmation">
+ Are you sure you want to domain?
+
+ |
+
+
+ delete
+
+ Are you sure you want to delete domain?
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+ [] template
+ |
+
+
+ |
+
+
+
+ SOA: |
+ |
+
+
+ TTL: |
+ |
+
+
+ |
+
+
+
+ Expire: |
+ |
+
+
+ Records: |
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/list_dns_rec.html b/web/templates/admin/list_dns_rec.html
index d947ca578..a77b79a17 100644
--- a/web/templates/admin/list_dns_rec.html
+++ b/web/templates/admin/list_dns_rec.html
@@ -1,117 +1,149 @@
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
- ?>
-
+
"; ?>
+
+
-
-
-"; ?>
-
- →
-
- |
-
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
- |
"; ?>
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/menu_add_dns.html b/web/templates/admin/menu_add_dns.html
deleted file mode 100644
index edb4b2f17..000000000
--- a/web/templates/admin/menu_add_dns.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_add_dns_rec.html b/web/templates/admin/menu_add_dns_rec.html
deleted file mode 100644
index 7b2567e5e..000000000
--- a/web/templates/admin/menu_add_dns_rec.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_dns.html b/web/templates/admin/menu_dns.html
deleted file mode 100644
index b03158486..000000000
--- a/web/templates/admin/menu_dns.html
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
diff --git a/web/templates/user/add_web.html b/web/templates/user/add_web.html
index 6c1f7e8e5..e67c69a40 100644
--- a/web/templates/user/add_web.html
+++ b/web/templates/user/add_web.html
@@ -98,7 +98,7 @@
- Advanced Options ⇢
+ Advanced Options
|
diff --git a/web/templates/user/edit_dns.html b/web/templates/user/edit_dns.html
index 6ce4c5f78..17df054ad 100644
--- a/web/templates/user/edit_dns.html
+++ b/web/templates/user/edit_dns.html
@@ -1,35 +1,98 @@
-
+
+
+
+
+
+
diff --git a/web/templates/user/list_dns.html b/web/templates/user/list_dns.html
index 1b308223e..8a43941e8 100644
--- a/web/templates/user/list_dns.html
+++ b/web/templates/user/list_dns.html
@@ -1,108 +1,179 @@
-
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
- ?>
-
-
-
-
-
- |
-
-
-
- |
-
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
+
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+ [] template
+ |
+
+
+ |
+
+
+
+ SOA: |
+ |
+
+
+ TTL: |
+ |
+
+
+ |
+
+
+
+ Expire: |
+ |
+
+
+ Records: |
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_dns_rec.html b/web/templates/user/list_dns_rec.html
index 458628ece..02a04c4b0 100644
--- a/web/templates/user/list_dns_rec.html
+++ b/web/templates/user/list_dns_rec.html
@@ -1,93 +1,125 @@
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
- ?>
-
+
"; ?>
+
+
-
-
-"; ?>
-
- →
-
- |
-
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
- |
"; ?>
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/menu_dns.html b/web/templates/user/menu_dns.html
deleted file mode 100644
index 63ac3101f..000000000
--- a/web/templates/user/menu_dns.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-