From 4082c22f2898b50a9e5b9bba57d7c634867acdea Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 11 Jul 2012 11:29:52 +0300 Subject: [PATCH] added web statst link and nginx extention title --- web/templates/admin/list_db.html | 4 +++- web/templates/admin/list_mail_acc.html | 2 +- web/templates/admin/list_web.html | 8 +++++++- web/templates/user/list_mail_acc.html | 2 +- web/templates/user/list_web.html | 8 +++++++- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index dea343f8..e96242d7 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -12,7 +12,9 @@ foreach ($data as $key => $value) { } list($http_host, $port) = split(':', $_SERVER["HTTP_HOST"]); + if ($data[$key]['TYPE'] == 'mysql') $db_admin = "phpMyAdmin"; if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/"; + if ($data[$key]['TYPE'] == 'pgsql') $db_admin = "phpPgAdmin"; if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/"; ?> @@ -68,7 +70,7 @@ foreach ($data as $key => $value) { - +
open web admin open edit diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html index 789dc1c5..143c7190 100644 --- a/web/templates/admin/list_mail_acc.html +++ b/web/templates/admin/list_mail_acc.html @@ -81,7 +81,7 @@ foreach ($data as $key => $value) {
- +
diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index 838b4c73..1fa5ec45 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -21,11 +21,13 @@ foreach ($data as $key => $value) { $ssl_home = ''; } if (strlen($data[$key]['NGINX_EXT']) > 16 ) { + $nginx_ext_title = str_replace(',', ', ', $data[$key]['NGINX_EXT']); $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_title = ''; $nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']); } @@ -83,6 +85,10 @@ foreach ($data as $key => $value) { diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html index 793a2405..4f0092f9 100644 --- a/web/templates/user/list_mail_acc.html +++ b/web/templates/user/list_mail_acc.html @@ -56,7 +56,7 @@ foreach ($data as $key => $value) {
+ '; + echo " open webstats "; + } ?> - +
"> edit @@ -127,7 +133,7 @@ foreach ($data as $key => $value) {
SSL Support:
SSL Home:
Nginx Template:
Nginx Extentions:
Nginx Extentions:>
- +
diff --git a/web/templates/user/list_web.html b/web/templates/user/list_web.html index e4070711..87398550 100644 --- a/web/templates/user/list_web.html +++ b/web/templates/user/list_web.html @@ -21,11 +21,13 @@ foreach ($data as $key => $value) { $ssl_home = ''; } if (strlen($data[$key]['NGINX_EXT']) > 16 ) { + $nginx_ext_title = str_replace(',', ', ', $data[$key]['NGINX_EXT']); $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_title = ''; $nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']); } @@ -65,6 +67,10 @@ foreach ($data as $key => $value) {
+ '; + echo " open webstats "; + } ?> - +
"> edit @@ -102,7 +108,7 @@ foreach ($data as $key => $value) {
SSL Support:
SSL Home:
Nginx Template:
Nginx Extentions:
Nginx Extentions:>