diff --git a/bin/v_list_user_ips b/bin/v_list_user_ips
index 796350876..717ad5026 100755
--- a/bin/v_list_user_ips
+++ b/bin/v_list_user_ips
@@ -44,7 +44,11 @@ json_list_user_ips() {
done
else
if [ "$OWNER" = 'admin' ] && [ "$STATUS" = 'shared' ]; then
+ if [ -n "$data" ]; then
+ echo -e ' },'
+ fi
i=1
+
for field in $fields; do
eval value=$field
if [ $i -eq 1 ]; then
diff --git a/func/ip.sh b/func/ip.sh
index bee455557..a42a5e575 100644
--- a/func/ip.sh
+++ b/func/ip.sh
@@ -13,7 +13,7 @@ is_ip_valid() {
is_ip_avalable() {
ip_data=$(cat $VESTA/data/ips/$ip)
owner=$(echo "$ip_data"|grep OWNER= | cut -f 2 -d \')
- status=$(echo "$ip_data"|grep OWNER= | cut -f 2 -d \')
+ status=$(echo "$ip_data"|grep STATUS= | cut -f 2 -d \')
shared=no
if [ 'admin' = "$owner" ] && [ "$status" = 'shared' ]; then
shared='yes'
diff --git a/web/add/cron/index.php b/web/add/cron/index.php
index 01e24b673..7384a9146 100644
--- a/web/add/cron/index.php
+++ b/web/add/cron/index.php
@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_POST['ok'])) {
// Check input
if (empty($_POST['v_min'])) $errors[] = 'minute';
@@ -72,7 +72,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_cron.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/add/db/index.php b/web/add/db/index.php
index 3d9826950..bca488701 100644
--- a/web/add/db/index.php
+++ b/web/add/db/index.php
@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_POST['ok'])) {
// Check input
if (empty($_POST['v_database'])) $errors[] = 'database';
@@ -71,7 +71,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_db.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/add/dns/index.php b/web/add/dns/index.php
index 48a4df2b7..c392649fc 100644
--- a/web/add/dns/index.php
+++ b/web/add/dns/index.php
@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_POST['ok'])) {
// Check input
if (empty($_POST['v_domain'])) $errors[] = 'domain';
@@ -132,7 +132,7 @@ if ($_SESSION['user'] == 'admin') {
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
}
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/add/mail/index.php b/web/add/mail/index.php
index 31dde6cc0..bc313bbff 100644
--- a/web/add/mail/index.php
+++ b/web/add/mail/index.php
@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Mail Domain
if (!empty($_POST['ok'])) {
if (empty($_POST['v_domain'])) $errors[] = 'domain';
@@ -174,7 +174,7 @@ if ($_SESSION['user'] == 'admin') {
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
}
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/add/web/index.php b/web/add/web/index.php
index bc1a6176c..4de85be27 100644
--- a/web/add/web/index.php
+++ b/web/add/web/index.php
@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_POST['ok'])) {
// Check input
if (empty($_POST['v_domain'])) $errors[] = 'domain';
@@ -216,7 +216,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_web.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/delete/backup/index.php b/web/delete/backup/index.php
index e2b9effb0..c8dd0c19c 100644
--- a/web/delete/backup/index.php
+++ b/web/delete/backup/index.php
@@ -5,13 +5,13 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['backup'])) {
$v_username = escapeshellarg($user);
$v_backup = escapeshellarg($_GET['backup']);
exec (VESTA_CMD."v_delete_user_backup ".$v_username." ".$v_backup, $output, $return_var);
unset($output);
}
-}
+//}
header("Location: /list/backup/");
diff --git a/web/delete/cron/index.php b/web/delete/cron/index.php
index c99c4efe9..99d3287c2 100644
--- a/web/delete/cron/index.php
+++ b/web/delete/cron/index.php
@@ -5,13 +5,13 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['job'])) {
$v_username = escapeshellarg($user);
$v_job = escapeshellarg($_GET['job']);
exec (VESTA_CMD."v_delete_cron_job ".$v_username." ".$v_job, $output, $return_var);
unset($output);
}
-}
+//}
header("Location: /list/cron/");
diff --git a/web/delete/db/index.php b/web/delete/db/index.php
index 46af046d9..278eb2eca 100644
--- a/web/delete/db/index.php
+++ b/web/delete/db/index.php
@@ -5,13 +5,13 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['database'])) {
$v_username = escapeshellarg($user);
$v_database = escapeshellarg($_GET['database']);
exec (VESTA_CMD."v_delete_database ".$v_username." ".$v_database, $output, $return_var);
unset($output);
}
-}
+//}
header("Location: /list/db/");
diff --git a/web/delete/dns/index.php b/web/delete/dns/index.php
index e267f8711..ba78d0da1 100644
--- a/web/delete/dns/index.php
+++ b/web/delete/dns/index.php
@@ -5,7 +5,7 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// DNS domain
if ((!empty($_GET['domain'])) && (empty($_GET['record_id']))) {
$v_username = escapeshellarg($user);
@@ -26,6 +26,6 @@ if ($_SESSION['user'] == 'admin') {
header("Location: /list/dns/?domain=".$_GET['domain']);
exit;
}
-}
+//}
header("Location: /list/dns/");
diff --git a/web/delete/mail/index.php b/web/delete/mail/index.php
index 07eee68b9..7092f68a8 100644
--- a/web/delete/mail/index.php
+++ b/web/delete/mail/index.php
@@ -5,7 +5,7 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Mail domain
if ((!empty($_GET['domain'])) && (empty($_GET['account']))) {
$v_username = escapeshellarg($user);
@@ -26,6 +26,6 @@ if ($_SESSION['user'] == 'admin') {
header("Location: /list/mail/?domain=".$_GET['domain']);
exit;
}
-}
+//}
header("Location: /list/mail/");
diff --git a/web/delete/web/index.php b/web/delete/web/index.php
index 3130aa646..012725a6a 100644
--- a/web/delete/web/index.php
+++ b/web/delete/web/index.php
@@ -5,28 +5,26 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
-if ($_SESSION['user'] == 'admin') {
- if (!empty($_GET['domain'])) {
- $v_username = escapeshellarg($user);
- $v_domain = escapeshellarg($_GET['domain']);
- exec (VESTA_CMD."v_delete_web_domain ".$v_username." ".$v_domain, $output, $return_var);
- unset($output);
+if (!empty($_GET['domain'])) {
+ $v_username = escapeshellarg($user);
+ $v_domain = escapeshellarg($_GET['domain']);
+ exec (VESTA_CMD."v_delete_web_domain ".$v_username." ".$v_domain, $output, $return_var);
+ unset($output);
- // DNS
- if ($return_var == 0) {
- exec (VESTA_CMD."v_list_dns_domain ".$v_username." ".$v_domain." json", $output, $lreturn_var);
- if ($lreturn_var == 0 ) {
- exec (VESTA_CMD."v_delete_dns_domain ".$v_username." ".$v_domain, $output, $return_var);
- unset($output);
- }
+ // DNS
+ if ($return_var == 0) {
+ exec (VESTA_CMD."v_list_dns_domain ".$v_username." ".$v_domain." json", $output, $lreturn_var);
+ if ($lreturn_var == 0 ) {
+ exec (VESTA_CMD."v_delete_dns_domain ".$v_username." ".$v_domain, $output, $return_var);
+ unset($output);
}
+ }
- // Mail
- if ($return_var == 0) {
- exec (VESTA_CMD."v_list_mail_domain ".$v_username." ".$v_domain." json", $output, $lreturn_var);
- if ($lreturn_var == 0 ) {
- exec (VESTA_CMD."v_delete_mail_domain ".$v_username." ".$v_domain, $output, $return_var);
- }
+ // Mail
+ if ($return_var == 0) {
+ exec (VESTA_CMD."v_list_mail_domain ".$v_username." ".$v_domain." json", $output, $lreturn_var);
+ if ($lreturn_var == 0 ) {
+ exec (VESTA_CMD."v_delete_mail_domain ".$v_username." ".$v_domain, $output, $return_var);
}
}
}
diff --git a/web/edit/cron/index.php b/web/edit/cron/index.php
index 1aa2942ec..e7d57a522 100644
--- a/web/edit/cron/index.php
+++ b/web/edit/cron/index.php
@@ -14,7 +14,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['job'])) {
@@ -78,7 +78,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_cron.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/edit/db/index.php b/web/edit/db/index.php
index 6a4579afe..c05cb939b 100644
--- a/web/edit/db/index.php
+++ b/web/edit/db/index.php
@@ -14,7 +14,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['database'])) {
@@ -72,7 +72,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_db.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/edit/dns/index.php b/web/edit/dns/index.php
index 294a5ba94..04f0a18c1 100644
--- a/web/edit/dns/index.php
+++ b/web/edit/dns/index.php
@@ -14,7 +14,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['domain'])) {
@@ -200,7 +200,7 @@ if ($_SESSION['user'] == 'admin') {
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
}
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/edit/mail/index.php b/web/edit/mail/index.php
index 1ae8d65ae..bb88b9aaa 100644
--- a/web/edit/mail/index.php
+++ b/web/edit/mail/index.php
@@ -14,7 +14,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['domain'])) {
@@ -364,7 +364,7 @@ if ($_SESSION['user'] == 'admin') {
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
}
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/edit/web/index.php b/web/edit/web/index.php
index c8ef9987f..c0a15a4b4 100644
--- a/web/edit/web/index.php
+++ b/web/edit/web/index.php
@@ -14,7 +14,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Are you admin?
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['domain'])) {
@@ -513,7 +513,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_web.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/list/backup/index.php b/web/list/backup/index.php
index 1d7b0b95f..68d960677 100644
--- a/web/list/backup/index.php
+++ b/web/list/backup/index.php
@@ -12,7 +12,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Data
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v_list_user_backups $user json", $output, $return_var);
check_error($return_var);
@@ -22,7 +22,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_backup.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup.html');
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/list/cron/index.php b/web/list/cron/index.php
index 5e7f07a5a..7f826a339 100644
--- a/web/list/cron/index.php
+++ b/web/list/cron/index.php
@@ -22,6 +22,17 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_cron.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_cron.html');
+} else {
+
+ exec (VESTA_CMD."v_list_cron_jobs $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_cron.html');
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
+
}
// Footer
diff --git a/web/list/db/index.php b/web/list/db/index.php
index 2866539ba..ac6a8c796 100644
--- a/web/list/db/index.php
+++ b/web/list/db/index.php
@@ -22,6 +22,16 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_db.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_db.html');
+} else {
+
+ exec (VESTA_CMD."v_list_databases $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_db.html');
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_db.html');
}
// Footer
diff --git a/web/list/dns/index.php b/web/list/dns/index.php
index d1a698d09..64a0ac6f3 100644
--- a/web/list/dns/index.php
+++ b/web/list/dns/index.php
@@ -32,6 +32,27 @@ if ($_SESSION['user'] == 'admin') {
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);
+ check_error($return_var);
+ $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');
+ }
+
}
// Footer
diff --git a/web/list/mail/index.php b/web/list/mail/index.php
index dafe31399..de08e4d34 100644
--- a/web/list/mail/index.php
+++ b/web/list/mail/index.php
@@ -32,6 +32,27 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_mail_acc.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_mail_acc.html');
}
+} else {
+
+ if (empty($_GET['domain'])){
+ exec (VESTA_CMD."v_list_mail_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_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);
+ check_error($return_var);
+ $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/stats/index.php b/web/list/stats/index.php
index 0fb85f159..4c661a67c 100644
--- a/web/list/stats/index.php
+++ b/web/list/stats/index.php
@@ -12,7 +12,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
top_panel($user,$TAB);
// Data
-if ($_SESSION['user'] == 'admin') {
+//if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v_list_user_stats $user json", $output, $return_var);
check_error($return_var);
@@ -22,7 +22,7 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_stats.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_stats.html');
-}
+//}
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
diff --git a/web/list/web/index.php b/web/list/web/index.php
index 5f8f743c9..2cc0c4b5c 100644
--- a/web/list/web/index.php
+++ b/web/list/web/index.php
@@ -22,6 +22,15 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_web.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_web.html');
+} else {
+ exec (VESTA_CMD."v_list_web_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_web.html');
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_web.html');
}
// Footer
diff --git a/web/templates/user/edit_user.html b/web/templates/user/edit_user.html
new file mode 100644
index 000000000..ad24f38c3
--- /dev/null
+++ b/web/templates/user/edit_user.html
@@ -0,0 +1,48 @@
+
+
diff --git a/web/templates/user/list_cron.html b/web/templates/user/list_cron.html
new file mode 100644
index 000000000..515d357bb
--- /dev/null
+++ b/web/templates/user/list_cron.html
@@ -0,0 +1,126 @@
+
+
+ $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'] = 'null';
+ }
+ ?>
+
+
+
+
+
+ |
+
+
+
+ |
+ edit |
+
+
+ delete
+
+ Are you sure you want to delete cron job?
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html
new file mode 100644
index 000000000..eded7ecb4
--- /dev/null
+++ b/web/templates/user/list_db.html
@@ -0,0 +1,111 @@
+
+
+ $value) {
+ ++$i;
+ if ($data[$key]['SUSPENDED'] == 'yes') {
+ $status = 'suspended';
+ $spnd_action = 'unsuspend' ;
+ } else {
+ $status = 'active';
+ $spnd_action = 'suspend' ;
+ }
+
+ if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpMyAdmin/";
+ if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpPgAdmin/";
+ ?>
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+ [] database |
+ Disk:
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_dns.html b/web/templates/user/list_dns.html
new file mode 100644
index 000000000..1b308223e
--- /dev/null
+++ b/web/templates/user/list_dns.html
@@ -0,0 +1,108 @@
+
+
+ $value) {
+ ++$i;
+ if ($data[$key]['SUSPENDED'] == 'yes') {
+ $status = 'suspended';
+ $spnd_action = 'unsuspend' ;
+ } else {
+ $status = 'active';
+ $spnd_action = 'suspend' ;
+ }
+ ?>
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_dns_rec.html b/web/templates/user/list_dns_rec.html
new file mode 100644
index 000000000..458628ece
--- /dev/null
+++ b/web/templates/user/list_dns_rec.html
@@ -0,0 +1,93 @@
+
+
+ $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 record?
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+"; ?>
+
+ →
+
+ |
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_mail.html b/web/templates/user/list_mail.html
new file mode 100644
index 000000000..122c64003
--- /dev/null
+++ b/web/templates/user/list_mail.html
@@ -0,0 +1,114 @@
+
+
+ $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';
+ }
+ ?>
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+ Antivirus: | |
+ Antispam: | |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html
new file mode 100644
index 000000000..793a24050
--- /dev/null
+++ b/web/templates/user/list_mail_acc.html
@@ -0,0 +1,106 @@
+
+
+ $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/list_user.html b/web/templates/user/list_user.html
new file mode 100644
index 000000000..f96cbe184
--- /dev/null
+++ b/web/templates/user/list_user.html
@@ -0,0 +1,150 @@
+
+
+ $value) {
+ ++$i;
+ if ($data[$key]['SUSPENDED'] == 'yes') {
+ $status = 'suspended';
+ $spnd_action = 'unsuspend' ;
+ } else {
+ $status = 'active';
+ $spnd_action = 'suspend' ;
+ }
+ ?>
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+ [] package |
+ Bandwidth: % ()
+ |
+ Disk: % ()
+ |
+
+
+
+ Web:
+ Mail:
+ |
+ Databases:
+ User Dirs:
+ |
+
|
+
+
+ |
+
+
+ Web Domains: |
+ / |
+ Web SSL: |
+ |
+ Web Aliases: |
+ per domain |
+ Web Templates: |
+ |
+ Dns Domains: |
+ / |
+ Dns Records: |
+ per domain |
+ Name Servers:
|
+ |
+ |
+
+
+ Mail Domains: |
+ / |
+ Mail Accounts: |
+ per domain |
+ Databases: |
+ / |
+ Cron Jobs: |
+ / |
+ Shell: |
+ |
+ Dedicated IP: |
+ |
+ Backups: |
+ / |
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+ |
"; ?>
diff --git a/web/templates/user/list_web.html b/web/templates/user/list_web.html
new file mode 100644
index 000000000..e4070711d
--- /dev/null
+++ b/web/templates/user/list_web.html
@@ -0,0 +1,134 @@
+
+
+ $value) {
+ ++$i;
+ if ($data[$key]['SUSPENDED'] == 'yes') {
+ $status = 'suspended';
+ $spnd_action = 'unsuspend' ;
+ } else {
+ $status = 'active';
+ $spnd_action = 'suspend' ;
+ }
+
+ if (!empty($data[$key]['SSL_HOME'])) {
+ if ($data[$key]['SSL_HOME'] == 'same') {
+ $ssl_home = 'public_html';
+ } else {
+ $ssl_home = 'public_shtml';
+ }
+ } else {
+ $ssl_home = '';
+ }
+ if (strlen($data[$key]['NGINX_EXT']) > 16 ) {
+ $nginx_ext = substr($data[$key]['NGINX_EXT'], 0, 16);
+ $nginx_ext = trim($nginx_ext, ",");
+ $nginx_ext = str_replace(',', ', ', $nginx_ext);
+ $nginx_ext = $nginx_ext.", ...";
+ } else {
+ $nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
+ }
+
+ ?>
+
+
+
+
+
+ |
+
+
+ |
+ "> edit |
+
+
+ delete
+
+ Are you sure you want to delete domain?
+
+ |
+
+
+
+ |
+
+
+
+ |
+ [] template |
+ Bandwidth:
+ |
+ Disk:
+ |
+
+ |
+
+
+ PHP Type: | |
+ CGI Support: | |
+ Error Log: | |
+ Web Statistics: | |
+ Statistics Auth: | |
+
+ |
+
+
+ SSL Support: | |
+ SSL Home: | |
+ Nginx Template: | |
+ Nginx Extentions: | |
+
+ |
+
+
+ |
+
+
+
+
+
+ |
"; ?>
+
+
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/menu_cron.html b/web/templates/user/menu_cron.html
new file mode 100644
index 000000000..b16d24283
--- /dev/null
+++ b/web/templates/user/menu_cron.html
@@ -0,0 +1,15 @@
+
+