From 18d61a29b2de116ab86f8d391e1678e9e7080281 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 25 Jun 2013 17:09:24 +0300 Subject: [PATCH] lowercase links for phpMyAdmin/phpPgAdmin --- web/add/db/index.php | 4 ++-- web/templates/admin/list_db.html | 4 ++-- web/templates/user/list_db.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/add/db/index.php b/web/add/db/index.php index aa4de9334..2330afb96 100644 --- a/web/add/db/index.php +++ b/web/add/db/index.php @@ -71,8 +71,8 @@ if (!empty($_POST['ok'])) { } if ((!empty($v_db_email)) && ($return_var == 0)) { list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"]); - if ($_POST['v_type'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/"; - if ($_POST['v_type'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/"; + if ($_POST['v_type'] == 'mysql') $db_admin_link = "http://".$http_host."/phpmyadmin/"; + if ($_POST['v_type'] == 'pgsql') $db_admin_link = "http://".$http_host."/phppgadmin/"; $to = $v_db_email; $subject = __("Database Credentials"); $hostname = exec('hostname'); diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index 9d225c868..3a4842480 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -45,9 +45,9 @@ } 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'] == '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/"; + if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phppgadmin/"; ?> diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html index 145ce0043..ff5dac847 100644 --- a/web/templates/user/list_db.html +++ b/web/templates/user/list_db.html @@ -41,9 +41,9 @@ } 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'] == '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/"; + if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phppgadmin/"; ?>