Changeset 2046

Show
Ignore:
Timestamp:
11/13/07 01:59:16 (6 months ago)
Author:
anarcat
Message:

make this configuration work without register_globals. Closes: #1076

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/etc/alternc/phpmyadmin.inc.php

    r2001 r2046  
    1919$i = 1; 
    2020 
    21 $cfg['Servers'][$i]['host']          = $L_MYSQL_HOST; // MySQL hostname or IP address 
     21$cfg['Servers'][$i]['host']          = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address 
    2222$cfg['Servers'][$i]['connect_type']  = 'tcp';    // How to connect to MySQL server ('tcp' or 'socket') 
    2323$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)? 
     
    2929 
    3030// Uncomment to override the default configuration 
    31 $cfg['Servers'][$i]['host']          = $L_MYSQL_HOST; // MySQL hostname or IP address 
     31$cfg['Servers'][$i]['host']          = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address 
    3232$cfg['Servers'][$i]['connect_type']  = 'tcp';    // How to connect to MySQL server ('tcp' or 'socket') 
    3333$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?