diff --git a/web/suspend/web/index.php b/web/suspend/web/index.php new file mode 100644 index 000000000..0e56cb125 --- /dev/null +++ b/web/suspend/web/index.php @@ -0,0 +1,49 @@ +', $output); + if (empty($error)) $error = 'Error: vesta did not return any output.'; + $_SESSION['error_msg'] = $error; + } else { + $_SESSION['ok_msg'] = "OK: user ".$_GET[user]." has been suspended."; + unset($v_lname); + } + unset($output); + + include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_suspend_user.html'); + include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/suspend_user.html'); + unset($_SESSION['error_msg']); + unset($_SESSION['ok_msg']); + + } else { + header("Location: /list/user/"); + } + +} + +// Footer +include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); diff --git a/web/templates/admin/add_user.html b/web/templates/admin/add_user.html index 49af89538..5a5ceb832 100644 --- a/web/templates/admin/add_user.html +++ b/web/templates/admin/add_user.html @@ -27,7 +27,7 @@ document.v_add_user.v_password.value = randomstring; Username - Password generate + Password generate Email Username - Password generate + Password generate Email ;" id="statstable" name="v_add_web_domain_stats_user"> Web Statistics Username Web Statistics Password generate + Web Statistics Password generate diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html index ba22df020..8e066545b 100644 --- a/web/templates/admin/list_backup.html +++ b/web/templates/admin/list_backup.html @@ -31,11 +31,11 @@ foreach ($data as $key => $value) { - +
- +
Run Time:
Backup Size:
diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html index cde780a2d..059ac1dc5 100644 --- a/web/templates/admin/list_cron.html +++ b/web/templates/admin/list_cron.html @@ -35,8 +35,7 @@ foreach ($data as $key => $value) {
- - +
diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index a73070726..cbdda4b9b 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -35,12 +35,12 @@ foreach ($data as $key => $value) {
- + diff --git a/web/templates/admin/list_dns.html b/web/templates/admin/list_dns.html index 763c4c83c..596e24319 100644 --- a/web/templates/admin/list_dns.html +++ b/web/templates/admin/list_dns.html @@ -32,12 +32,12 @@ foreach ($data as $key => $value) {
- - +
[] database
Disk: +
[] database
Disk:
- +
- - + +
[] template
[] template
diff --git a/web/templates/admin/list_dns_rec.html b/web/templates/admin/list_dns_rec.html index d080ab5a7..d4d2b1e58 100644 --- a/web/templates/admin/list_dns_rec.html +++ b/web/templates/admin/list_dns_rec.html @@ -31,7 +31,7 @@ foreach ($data as $key => $value) { - + diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html index 3b011c8d4..0663f1c36 100644 --- a/web/templates/admin/list_ip.html +++ b/web/templates/admin/list_ip.html @@ -20,11 +20,11 @@ foreach ($data as $key => $value) {
- + diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html index 0beb9ccde..8f3b239ca 100644 --- a/web/templates/admin/list_mail.html +++ b/web/templates/admin/list_mail.html @@ -36,11 +36,11 @@ foreach ($data as $key => $value) {
- +
- +
- +
catchall >
catchall >
Disk:
diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html index 4fa31fde6..ca50ec52c 100644 --- a/web/templates/admin/list_mail_acc.html +++ b/web/templates/admin/list_mail_acc.html @@ -30,24 +30,24 @@ foreach ($data as $key => $value) {
- + - -
- - +
Disk: +
Disk:
+
Quota:
Autoreply:
- - + diff --git a/web/templates/admin/list_rrd.html b/web/templates/admin/list_rrd.html index f0f4bcf40..073bf2241 100644 --- a/web/templates/admin/list_rrd.html +++ b/web/templates/admin/list_rrd.html @@ -26,7 +26,7 @@ foreach ($data as $key => $value) {
Forward:
+ +
Forward:
- +
diff --git a/web/templates/admin/list_stats.html b/web/templates/admin/list_stats.html index 49d2afb27..9b2c3414c 100644 --- a/web/templates/admin/list_stats.html +++ b/web/templates/admin/list_stats.html @@ -19,13 +19,13 @@ foreach ($data as $key => $value) {
- +
- - + -
[] package
Bandwidth: % () +
[] package
Bandwidth: % ()
Disk: % () +
Disk: % ()
diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html index 5ac160822..7bfb8bf47 100644 --- a/web/templates/admin/list_user.html +++ b/web/templates/admin/list_user.html @@ -13,7 +13,7 @@ foreach ($data as $key => $value) { ?> +
@@ -96,29 +94,29 @@ foreach ($data as $key => $value) {
"> edit - "> -
" title="Confirmation"> + +

Are you sure you want to user account?

- "> delete -
" title="Confirmation"> + delete +

Are you sure you want to delete user account?

- +
- - - + + -
[] package
Bandwidth: % () +
[] package
Bandwidth: % ()
Disk: % () +
Disk: % ()
@@ -134,7 +132,7 @@ foreach ($data as $key => $value) {
- +
diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index da77a2212..7e4e0f36c 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -20,7 +20,56 @@ foreach ($data as $key => $value) { } 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']); + } + ?> + diff --git a/web/templates/header.html b/web/templates/header.html index 70ba29f55..c8f636da6 100644 --- a/web/templates/header.html +++ b/web/templates/header.html @@ -33,7 +33,7 @@ if (!empty($_SESSION['look'])) { margin-left: auto; margin-right: auto; width: 990px; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; text-align: right; line-height: 1.4em; @@ -74,7 +74,7 @@ if (!empty($_SESSION['look'])) { margin-left: auto; margin-right: auto; width: 990px; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 8pt; text-align: center; vertical-align:top; @@ -136,7 +136,7 @@ if (!empty($_SESSION['look'])) { padding: 20px 0 2px 15px; line-height: 1.0em; font-size: 9pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; color: #2d2d2d; background: url(/images/transparent-image.png) no-repeat; } @@ -151,7 +151,7 @@ if (!empty($_SESSION['look'])) { } .nav-link { - font-size: 16pt; + font-size: 17pt; color: #484243; font-family: 'Trebuchet MS'; text-decoration: none; @@ -168,7 +168,7 @@ if (!empty($_SESSION['look'])) { } .nav-slink { - font-size: 16pt; + font-size: 17pt; color: #8b99a2; font-family: 'Trebuchet MS'; text-decoration: none; @@ -178,7 +178,7 @@ if (!empty($_SESSION['look'])) { margin-left: auto; margin-right: auto; width: 990px; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; text-align: left; vertical-align:top; @@ -188,7 +188,7 @@ if (!empty($_SESSION['look'])) { .add { padding: 0 8px 0 3px; margin: 0; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; text-decoration: none; color: #34536A; font-size: 12pt; @@ -205,7 +205,7 @@ if (!empty($_SESSION['look'])) { .counters { line-height: 1.4em; font-size: 9pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; color: #2d2d2d; padding: 6px 0 0 0; margin: 0; @@ -214,7 +214,7 @@ if (!empty($_SESSION['look'])) { .hostname { font-size: 8pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; text-align: left; padding: 0 5; color: #cccccc; @@ -227,7 +227,7 @@ if (!empty($_SESSION['look'])) { width: 990px; color: #e5a907; - font-family: Georgia, serif; + font-family: Arial, serif; font-size: 12pt; text-align: left; vertical-align:top; @@ -285,7 +285,7 @@ if (!empty($_SESSION['look'])) { .data-active { font-size: 8pt; - font-family: Georgia; + font-family: Arial; letter-spacing: 0.1em; color: #80C376; padding: 0 0 13 18; @@ -293,7 +293,7 @@ if (!empty($_SESSION['look'])) { .data-suspended { font-size: 8pt; - font-family: Georgia; + font-family: Arial; letter-spacing: 0.1em; color: #de6c5d; padding: 0 0 13 18; @@ -302,7 +302,7 @@ if (!empty($_SESSION['look'])) { .data-controls { border-left: 1px solid #E6E6E6; font-size: 8pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; padding: 2 5 0 5; letter-spacing: 0.1em; } @@ -335,46 +335,50 @@ if (!empty($_SESSION['look'])) { background: #EBE9DC; color: #c69c6d; font-size:18 pt; - font-family: Georgia; + font-family: Arial; margin: 22px 0 0 0; padding: 0 12px 0 163px; } .chart1 { - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; } .chart2 { color: #484243; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 8pt; } .username { - font-family: Arial, Helvetica, sans-serif; + color: #555555; + font-family: Arial, sans-serif; font-size: 16pt; line-height: 0.8em; } .domain { - font-family: Arial, Helvetica, sans-serif; + color: #555555; + font-family: Arial, sans-serif; font-size: 16pt; line-height: 0.8em; } .cron { - font-family: Arial, Helvetica, sans-serif; + color: #555555; + font-family: Arial, sans-serif; font-size: 14pt; } .log { - font-family: Arial, Helvetica, sans-serif; + color: #555555; + font-family: Arial, sans-serif; font-size: 12pt; } .aliases { - font-family: Georgia; + font-family: Arial; font-size: 12pt; color: #5c4d45; padding: 0 0 0 8px; @@ -383,13 +387,12 @@ if (!empty($_SESSION['look'])) { .nginx-ext { color: black; vertical-align:top; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; - line-height: 1.2em; } .fullname { - font-family: Georgia; + font-family: Arial; font-size: 14pt; color: #5c4d45; padding: 0 0 0 8px; @@ -398,7 +401,7 @@ if (!empty($_SESSION['look'])) { .counter-name { vertical-align:top; line-height: 1.2em; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; color: #484243; } @@ -406,7 +409,7 @@ if (!empty($_SESSION['look'])) { .cron-counter-name { vertical-align:top; line-height: 0.8em; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 8pt; padding: 4 0 0 0; color: #484243; @@ -415,14 +418,14 @@ if (!empty($_SESSION['look'])) { .counter-value { vertical-align:top; line-height: 1.2em; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 10pt; color: black; } .log-counter-value { vertical-align:top; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 12pt; color: #484243; } @@ -430,34 +433,34 @@ if (!empty($_SESSION['look'])) { .cron-counter-value { vertical-align:top; line-height: 1.2em; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 12pt; color: #484243; } .add-name { - font-family: Georgia; + font-family: Arial; font-size: 14pt; color: #5c4d45; padding: 0 0 0 28px; } .add-ok { - font-family: Georgia; + font-family: Arial; font-size: 14pt; color: #80C376; padding: 0 0 0 6px; } .add-error { - font-family: Georgia; + font-family: Arial; font-size: 14pt; color: #de6c5d; padding: 0 0 0 6px; } .add-text { - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; font-size: 12pt; } @@ -467,7 +470,7 @@ if (!empty($_SESSION['look'])) { padding: 4px; font-size: 12pt; color: #555; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; } .add-input { @@ -475,7 +478,7 @@ if (!empty($_SESSION['look'])) { padding: 4px; font-size: 14pt; color: #555; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; } .add-list { @@ -498,7 +501,7 @@ if (!empty($_SESSION['look'])) { .genpass { color: #34536A; font-size: 8pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; padding: 0 5px 0 8px; letter-spacing: 0.1em; text-decoration: underline; @@ -511,7 +514,7 @@ if (!empty($_SESSION['look'])) { .add-advanced { color: #34536A; font-size: 10pt; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, sans-serif; letter-spacing: 0.1em; }
Web Domains: /
Web SSL:
@@ -35,20 +84,32 @@ foreach ($data as $key => $value) { - - + +
"> edit delete + + "> +
" title="Confirmation"> +

Are you sure you want to domain?

+
+
+ + delete +
+

Are you sure you want to delete domain?

+
+
- + @@ -66,7 +127,7 @@ foreach ($data as $key => $value) { - +
- - - + + -
[] template
Bandwidth: +
[] template
Bandwidth:
Disk: +
Disk:
SSL Support:
SSL Home:
Nginx Template:
Nginx Extentions:
Nginx Extentions: