Package: phpmyadmin Version: 4:2.6.2-3sarge1 Severity: wishlist Tags: patch
I have patched select_server.inc.php and config.sample.inc.php so that I can create custom titles for the Server Choice menu for the login page. (NOTE: these are different than the upstream patches. The upstream patches were for source 2.9.1.1). --- config.inc.php.orig 2006-12-01 23:39:38.000000000 -0600 +++ config.inc.php.title 2006-12-01 23:39:53.000000000 -0600 @@ -16,6 +16,7 @@ // Uncomment to override the default configuration //$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address //$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port +//$cfg['Servers'][$i]['title'] = 'My DB'; // Customized title to define server on login page //$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket //$cfg['Servers'][$i]['connect_type'] = 'socket'; // How to connect to MySQL server ('tcp' or 'socket') //$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli') --- cookies.auth.lib.php.orig 2006-12-01 23:35:31.000000000 -0600 +++ cookie.auth.lib.php 2006-12-01 23:33:04.000000000 -0600 @@ -300,10 +300,14 @@ } elseif ($val['auth_type'] == 'arbitrary') { echo $GLOBALS['strArbitrary']; } else { - echo $val['host']; - if (!empty($val['port'])) { - echo ':' . $val['port']; - } + if (!empty($val['title'])) { + echo $val['title']; + } else { + echo $val['host']; + if (!empty($val['port'])) { + echo ':' . $val['port']; + } + } // loic1: skip this because it's not a so good idea to // display sockets used to everybody // if (!empty($val['socket']) && PMA_PHP_INT_VERSION >= 30010) { -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.27-2-386 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages phpmyadmin depends on: ii apache2 2.0.54-5sarge1 next generation, scalable, extenda ii apache2-mpm-prefork [http 2.0.54-5sarge1 traditional model for Apache2 ii debconf 1.4.30.13 Debian configuration management sy ii php4 4:4.3.10-16 server-side, HTML-embedded scripti ii php4-mysql 4:4.3.10-16 MySQL module for php4 ii ucf 1.17 Update Configuration File: preserv -- debconf information: * phpmyadmin/reconfigure-webserver: apache2 * phpmyadmin/restart-webserver: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]