diff --git a/data/templates/dns/default.descr b/data/templates/dns/default.descr
deleted file mode 100755
index ba485544..00000000
--- a/data/templates/dns/default.descr
+++ /dev/null
@@ -1 +0,0 @@
-# Default template with common records such as www, mail, ftp, etc..
diff --git a/data/templates/dns/gmail.descr b/data/templates/dns/gmail.descr
deleted file mode 100755
index 68ae2783..00000000
--- a/data/templates/dns/gmail.descr
+++ /dev/null
@@ -1 +0,0 @@
-# Template with MX redirected to google gmail
diff --git a/data/templates/web/apache_default.descr b/data/templates/web/apache_default.descr
deleted file mode 100755
index 50a93940..00000000
--- a/data/templates/web/apache_default.descr
+++ /dev/null
@@ -1,3 +0,0 @@
-# Default template with basic php module restrictions.
-# Best performance. Not recomended for shared hosting.
-PHP='module' CGI='yes' ELOG='no'
diff --git a/data/templates/web/apache_phpcgi.descr b/data/templates/web/apache_phpcgi.descr
deleted file mode 100755
index 13e82645..00000000
--- a/data/templates/web/apache_phpcgi.descr
+++ /dev/null
@@ -1,3 +0,0 @@
-# Template with php as cgi for better security.
-# (it use post instal script)
-PHP='cgi' CGI='yes' ELOG='no'
diff --git a/data/templates/web/apache_phpfcgid.descr b/data/templates/web/apache_phpfcgid.descr
deleted file mode 100755
index 5607994a..00000000
--- a/data/templates/web/apache_phpfcgid.descr
+++ /dev/null
@@ -1,3 +0,0 @@
-# Template with php as FastCGI for best performance and security.
-# (it use post instal script)
-PHP='fcgid' CGI='yes' ELOG='no'
diff --git a/data/templates/web/apache_unlim.descr b/data/templates/web/apache_unlim.descr
deleted file mode 100755
index 95a96802..00000000
--- a/data/templates/web/apache_unlim.descr
+++ /dev/null
@@ -1,2 +0,0 @@
-# Almost unlimited php options and vhost configuration.
-PHP='module' CGI='yes' ELOG='yes'
diff --git a/data/templates/web/ngingx_default.descr b/data/templates/web/ngingx_default.descr
deleted file mode 100755
index 806cbce7..00000000
--- a/data/templates/web/ngingx_default.descr
+++ /dev/null
@@ -1,2 +0,0 @@
-# Default template for static content speed optimization.
-# Best in most cases.
diff --git a/data/templates/web/ngingx_default.stpl b/data/templates/web/ngingx_default.stpl
deleted file mode 100755
index 2af43134..00000000
--- a/data/templates/web/ngingx_default.stpl
+++ /dev/null
@@ -1,36 +0,0 @@
-server {
- listen %ip%:%proxy_ssl_port%;
- server_name %domain_idn% %alias_idn%;
- ssl on;
- ssl_certificate %ssl_pem%;
- ssl_certificate_key %ssl_key%;
- %elog%error_log /var/log/httpd/domains/%domain%.error.log error;
-
- location / {
- proxy_pass https://%ip%:%web_ssl_port%;
- location ~* ^.+\.(%nginx_extentions%)$ {
- root %sdocroot%;
- access_log /var/log/httpd/domains/%domain%.log combined;
- access_log /var/log/httpd/domains/%domain%.bytes bytes;
- expires max;
- try_files $uri @fallback;
- }
- }
-
- location /error/ {
- alias %home%/%user%/web/%domain%/document_errors/;
- }
-
- location @fallback {
- proxy_pass https://%ip%:%web_ssl_port%;
- }
-
- location ~ /\.ht {return 404;}
- location ~ /\.svn/ {return 404;}
- location ~ /\.git/ {return 404;}
- location ~ /\.hg/ {return 404;}
- location ~ /\.bzr/ {return 404;}
-
- include %home%/%user%/conf/snginx.%domain%.conf*;
-}
-
diff --git a/data/templates/web/ngingx_default.tpl b/data/templates/web/ngingx_default.tpl
deleted file mode 100755
index a3535419..00000000
--- a/data/templates/web/ngingx_default.tpl
+++ /dev/null
@@ -1,33 +0,0 @@
-server {
- listen %ip%:%proxy_port%;
- server_name %domain_idn% %alias_idn%;
- %elog%error_log /var/log/httpd/domains/%domain%.error.log error;
-
- location / {
- proxy_pass http://%ip%:%web_port%;
- location ~* ^.+\.(%nginx_extentions%)$ {
- root %docroot%;
- access_log /var/log/httpd/domains/%domain%.log combined;
- access_log /var/log/httpd/domains/%domain%.bytes bytes;
- expires max;
- try_files $uri @fallback;
- }
- }
-
- location /error/ {
- alias %home%/%user%/web/%domain%/document_errors/;
- }
-
- location @fallback {
- proxy_pass http://%ip%:%web_port%;
- }
-
- location ~ /\.ht {return 404;}
- location ~ /\.svn/ {return 404;}
- location ~ /\.git/ {return 404;}
- location ~ /\.hg/ {return 404;}
- location ~ /\.bzr/ {return 404;}
-
- include %home%/%user%/conf/nginx.%domain%.conf*;
-}
-
diff --git a/web/add/mail/index.php b/web/add/mail/index.php
index bc313bbf..8f5b2ff8 100644
--- a/web/add/mail/index.php
+++ b/web/add/mail/index.php
@@ -163,13 +163,11 @@ top_panel($user,$TAB);
if ((empty($_GET['domain'])) && (empty($_POST['domain']))) {
$v_domain = $_GET['domain'];
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_mail.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_mail.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
} else {
$v_domain = $_GET['domain'];
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_mail_acc.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_mail_acc.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/edit/mail/index.php b/web/edit/mail/index.php
index 59a43519..c6ccdf9e 100644
--- a/web/edit/mail/index.php
+++ b/web/edit/mail/index.php
@@ -163,7 +163,6 @@ top_panel($user,$TAB);
$_SESSION['ok_msg'] = "OK: changes has been saved.";
}
}
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_mail.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_mail.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
@@ -359,7 +358,6 @@ top_panel($user,$TAB);
}
}
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_mail_acc.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_mail_acc.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/list/mail/index.php b/web/list/mail/index.php
index de08e4d3..5d80f3f6 100644
--- a/web/list/mail/index.php
+++ b/web/list/mail/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_mail.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_mail.html');
} else {
exec (VESTA_CMD."v_list_mail_accounts '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
@@ -29,7 +27,6 @@ if ($_SESSION['user'] == 'admin') {
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_mail_acc.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_mail_acc.html');
}
} else {
@@ -41,7 +38,6 @@ if ($_SESSION['user'] == 'admin') {
$data = array_reverse($data);
unset($output);
- include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_mail.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_mail.html');
} else {
exec (VESTA_CMD."v_list_mail_accounts '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
@@ -49,10 +45,8 @@ if ($_SESSION['user'] == 'admin') {
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
- include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_mail_acc.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_mail_acc.html');
}
-
}
// Footer
diff --git a/web/list/packages/index.php b/web/list/packages/index.php
deleted file mode 100644
index c4264303..00000000
--- a/web/list/packages/index.php
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- |
-
-
-
- |
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html
index d3d14d09..2278f3fb 100644
--- a/web/templates/admin/add_mail_acc.html
+++ b/web/templates/admin/add_mail_acc.html
@@ -1,62 +1,141 @@
-
+
+
+
+
+
diff --git a/web/templates/admin/edit_mail_acc.html b/web/templates/admin/edit_mail_acc.html
index cf0604c9..859be32c 100644
--- a/web/templates/admin/edit_mail_acc.html
+++ b/web/templates/admin/edit_mail_acc.html
@@ -1,65 +1,155 @@
-
+
+
+
+
+
diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html
index 178cf5be..0316fdf3 100644
--- a/web/templates/admin/list_mail.html
+++ b/web/templates/admin/list_mail.html
@@ -1,142 +1,214 @@
-
-
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
-
- if (empty($data[$key]['CATCHALL'])) {
- $data[$key]['CATCHALL'] = '/dev/null';
- }
- ?>
-
-
-
-
-
- |
-
-
-
-
- |
-
-
-
- catchall > |
- Disk:
- |
+
+
+
- |
-
-
- Antivirus: | |
- Antispam: | |
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ catchall >
+ |
+
+
+
+ Disk:
+
+ |
+
+
+ |
+
+
+
+
+ Antivirus:
+ |
+
+
+ |
+
+
+
+ Antispam:
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ DKIM:
+ |
+
+
+ |
+
+
+
+ Accounts:
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html
index 143c7190..2609adc9 100644
--- a/web/templates/admin/list_mail_acc.html
+++ b/web/templates/admin/list_mail_acc.html
@@ -1,131 +1,197 @@
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend';
- }
- ?>
-
-
-
-
-
- |
-
-
- |
- edit |
-
-
- ">
- " title="Confirmation">
- Are you sure you want to account?
-
- |
-
-
- "> delete
- " title="Confirmation">
- Are you sure you want to delete account?
-
- |
-
-
-
- |
-
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
-
-
- |
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
diff --git a/web/templates/admin/menu_add_mail.html b/web/templates/admin/menu_add_mail.html
deleted file mode 100644
index aaaa2151..00000000
--- a/web/templates/admin/menu_add_mail.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_add_mail_acc.html b/web/templates/admin/menu_add_mail_acc.html
deleted file mode 100644
index f2dc776a..00000000
--- a/web/templates/admin/menu_add_mail_acc.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_edit_mail.html b/web/templates/admin/menu_edit_mail.html
deleted file mode 100644
index 177f64bb..00000000
--- a/web/templates/admin/menu_edit_mail.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_edit_mail_acc.html b/web/templates/admin/menu_edit_mail_acc.html
deleted file mode 100644
index 79e95ce1..00000000
--- a/web/templates/admin/menu_edit_mail_acc.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_mail.html b/web/templates/admin/menu_mail.html
deleted file mode 100644
index d834a32b..00000000
--- a/web/templates/admin/menu_mail.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
diff --git a/web/templates/user/list_mail.html b/web/templates/user/list_mail.html
index 9cce3c4d..ffd1013d 100644
--- a/web/templates/user/list_mail.html
+++ b/web/templates/user/list_mail.html
@@ -1,116 +1,205 @@
-
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
-
- if (empty($data[$key]['CATCHALL'])) {
- $data[$key]['CATCHALL'] = '/dev/null';
- }
- ?>
-
-
-
-
-
- |
-
-
-
-
- |
-
-
-
- catchall > |
- Disk:
- |
+
+
+
- |
-
-
- Antivirus: | |
- Antispam: | |
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ catchall >
+ |
+
+
+
+ Disk:
+
+ |
+
+
+ |
+
+
+
+
+ Antivirus:
+ |
+
+
+ |
+
+
+
+ Antispam:
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ DKIM:
+ |
+
+
+ |
+
+
+
+ Accounts:
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html
index 4f0092f9..6a0d3c8d 100644
--- a/web/templates/user/list_mail_acc.html
+++ b/web/templates/user/list_mail_acc.html
@@ -1,106 +1,188 @@
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend';
- }
- ?>
-
-
-
-
-
- |
-
-
- |
- edit |
-
-
- "> delete
- " title="Confirmation">
- Are you sure you want to delete account?
-
- |
-
-
-
- |
-
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
-
-
- |
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
diff --git a/web/templates/user/menu_mail.html b/web/templates/user/menu_mail.html
deleted file mode 100644
index 5c4473f9..00000000
--- a/web/templates/user/menu_mail.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-