diff --git a/bin/v_list_user_ips b/bin/v_list_user_ips index 79635087..717ad502 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 bee45555..a42a5e57 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 01e24b67..7384a914 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 3d982695..bca48870 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 48a4df2b..c392649f 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 31dde6cc..bc313bbf 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 bc1a6176..4de85be2 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 e2b9effb..c8dd0c19 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 c99c4efe..99d3287c 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 46af046d..278eb2ec 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 e267f871..ba78d0da 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 07eee68b..7092f68a 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 3130aa64..012725a6 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 1aa2942e..e7d57a52 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 6a4579af..c05cb939 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 294a5ba9..04f0a18c 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 1ae8d65a..bb88b9aa 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 c8ef9987..c0a15a4b 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 1d7b0b95..68d96067 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 5e7f07a5..7f826a33 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 2866539b..ac6a8c79 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 d1a698d0..64a0ac6f 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 dafe3139..de08e4d3 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 0fb85f15..4c661a67 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 5f8f743c..2cc0c4b5 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 00000000..ad24f38c --- /dev/null +++ b/web/templates/user/edit_user.html @@ -0,0 +1,48 @@ + + + + + + +
+ + + + +
+
+ + +
+
+ + + + + + +
Username
+ Password generate
Email
Name Servers
+ + + +
+
diff --git a/web/templates/user/list_cron.html b/web/templates/user/list_cron.html new file mode 100644 index 00000000..515d357b --- /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?

+
+
+ + + + + + + + + + + + + +
+ + + +
Min
+
+ + + +
Hour
+
+ + + +
Day
+
+ + + +
Month
+
+ + + +
Day of Week
+
+
+"; ?> + + + + +
→ + +
+ +"; ?> +"; ?> +"; ?> diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html new file mode 100644 index 00000000..eded7ecb --- /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/"; + ?> + + + + + + + + + + +
+ + + + + +
">
+
+ + + + + +
open web admin edit + + delete +
+

Are you sure you want to delete database?

+
+
+ + + + + + + + +
+ + + +
[] database
Disk: +
+
+ + + +
User:
Host:
+
+ + +
Charset:
+
+
+"; ?> + + + + +
→ + +
+ +"; ?> +"; ?> +"; ?> diff --git a/web/templates/user/list_dns.html b/web/templates/user/list_dns.html new file mode 100644 index 00000000..1b308223 --- /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' ; + } + ?> + + + + + + + + + +
+ + + + + +
">
+
+ + + + + + +
list records add record edit + + delete +
+

Are you sure you want to delete domain?

+
+
+ + + + + + + +
+ + + +
[] template
+
+ + + +
SOA:
TTL:
+
+ + + +
Expire:
Records:
+
+
+"; ?> + + + + + +
→ + +
+ +"; ?> +"; ?> +"; ?> diff --git a/web/templates/user/list_dns_rec.html b/web/templates/user/list_dns_rec.html new file mode 100644 index 00000000..458628ec --- /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 00000000..122c6400 --- /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'; + } + ?> + + + + + + + + + +
+ + + + + +
">
+
+ + + + + + +
list accounts add account edit + + delete +
+

Are you sure you want to delete domain?

+
+
+ + + + + + + + +
+ + + +
catchall >
Disk: +
+
+ + + + +
Antivirus:
Antispam:
+
+ + + +
DKIM:
Accounts:
+
+
+"; ?> + + + + +
→ + +
+ +"; ?> +"; ?> +"; ?> diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html new file mode 100644 index 00000000..793a2405 --- /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?

+
+
+ + + + + + + + +
+ + + +
Disk: +
+
+ + + +
Quota:
Autoreply:
+
+ + +
Forward:
+
+
+"; ?> + + + + +
→ + +
+ +"; ?> +"; ?> +"; ?> diff --git a/web/templates/user/list_user.html b/web/templates/user/list_user.html new file mode 100644 index 00000000..f96cbe18 --- /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' ; + } + ?> + + + + + + + + +
+ + + + +
">
+
+ + + +
"> edit
+ + + + + + + +
+ + + + + + + +
[] 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 00000000..e4070711 --- /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 00000000..b16d2428 --- /dev/null +++ b/web/templates/user/menu_cron.html @@ -0,0 +1,15 @@ + + + + + + + + +
diff --git a/web/templates/user/menu_db.html b/web/templates/user/menu_db.html new file mode 100644 index 00000000..f7ce2566 --- /dev/null +++ b/web/templates/user/menu_db.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/web/templates/user/menu_dns.html b/web/templates/user/menu_dns.html new file mode 100644 index 00000000..63ac3101 --- /dev/null +++ b/web/templates/user/menu_dns.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/web/templates/user/menu_dns_rec.html b/web/templates/user/menu_dns_rec.html new file mode 100644 index 00000000..c695961d --- /dev/null +++ b/web/templates/user/menu_dns_rec.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/web/templates/user/menu_mail.html b/web/templates/user/menu_mail.html new file mode 100644 index 00000000..5c4473f9 --- /dev/null +++ b/web/templates/user/menu_mail.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/web/templates/user/menu_mail_acc.html b/web/templates/user/menu_mail_acc.html new file mode 100644 index 00000000..e3b95e9d --- /dev/null +++ b/web/templates/user/menu_mail_acc.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/web/templates/user/menu_user.html b/web/templates/user/menu_user.html new file mode 100644 index 00000000..ebc4ba90 --- /dev/null +++ b/web/templates/user/menu_user.html @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/web/templates/user/menu_web.html b/web/templates/user/menu_web.html new file mode 100644 index 00000000..35636404 --- /dev/null +++ b/web/templates/user/menu_web.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/web/templates/user/panel.html b/web/templates/user/panel.html new file mode 100644 index 00000000..23a2686e --- /dev/null +++ b/web/templates/user/panel.html @@ -0,0 +1,44 @@ +
+ + + + + + + + +

StatisticsHistory LogLog out
+ + + + + +