Explorar o código

propper pma link to remote host

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
a0df116629
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      web/templates/admin/list_db.html
  2. 1 0
      web/templates/user/list_db.html

+ 1 - 0
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";

+ 1 - 0
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";