From 7d482249558b573a638d9cf8f0af3ca02364c1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 13 Nov 2007 00:59:16 +0000 Subject: [PATCH] make this configuration work without register_globals. Closes: #1076 --- etc/alternc/phpmyadmin.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/alternc/phpmyadmin.inc.php b/etc/alternc/phpmyadmin.inc.php index 56bdff81..5efc1df8 100644 --- a/etc/alternc/phpmyadmin.inc.php +++ b/etc/alternc/phpmyadmin.inc.php @@ -18,7 +18,7 @@ include_once('/var/alternc/bureau/class/local.php'); $i = 1; -$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; // MySQL hostname or IP address +$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; // MySQL user @@ -28,7 +28,7 @@ $cfg['Servers'][$i]['password'] = $_COOKIE["REMOTE_PASSWORD"]; ; / $i++; // Uncomment to override the default configuration -$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; // MySQL hostname or IP address +$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?