From a0df116629896ebaafdd372bad74b9c89b52ae7f Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 8 Feb 2013 11:07:56 +0200 Subject: [PATCH] propper pma link to remote host --- web/templates/admin/list_db.html | 1 + web/templates/user/list_db.html | 1 + 2 files changed, 2 insertions(+) diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index 15037191b..71a42182f 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -42,6 +42,7 @@ $status = 'active'; $spnd_action = 'suspend' ; } + if ($data[$key]['HOST'] != 'localhost' ) $http_host = $data[$key]['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"; diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html index 090771d9e..18afd5a9a 100644 --- a/web/templates/user/list_db.html +++ b/web/templates/user/list_db.html @@ -40,6 +40,7 @@ $status = 'active'; $spnd_action = 'suspend' ; } + if ($data[$key]['HOST'] != 'localhost' ) $http_host = $data[$key]['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";