make this configuration work without register_globals. Closes: #1076

This commit is contained in:
Antoine Beaupré 2007-11-13 00:59:16 +00:00
parent 6e3b1f0952
commit 7d48224955
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ include_once('/var/alternc/bureau/class/local.php');
$i = 1; $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]['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]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; // MySQL user $cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; // MySQL user
@ -28,7 +28,7 @@ $cfg['Servers'][$i]['password'] = $_COOKIE["REMOTE_PASSWORD"]; ; /
$i++; $i++;
// Uncomment to override the default configuration // 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]['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)? $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?