mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-22 18:12:43 +00:00
Configure old phpMyAdmin version for autologin
This commit is contained in:
parent
7a75f04952
commit
6caaea6b34
@ -27,13 +27,21 @@ $i = 0;
|
|||||||
* First server
|
* First server
|
||||||
*/
|
*/
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
/* Authentication type */
|
/* Authentication type */
|
||||||
|
if (getenv('DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN') == 1) {
|
||||||
|
$cfg['Servers'][$i]['auth_type'] = 'config';
|
||||||
|
$cfg['Servers'][$i]['user'] = 'root';
|
||||||
|
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
|
||||||
|
} else {
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||||
|
}
|
||||||
|
|
||||||
/* Server parameters */
|
/* Server parameters */
|
||||||
$cfg['Servers'][$i]['host'] = 'mysql';
|
$cfg['Servers'][$i]['host'] = 'mysql';
|
||||||
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
$cfg['Servers'][$i]['compress'] = false;
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
|
$cfg['Servers'][$i]['AllowNoPassword'] = true;
|
||||||
/* Select mysql if your server does not have mysqli */
|
/* Select mysql if your server does not have mysqli */
|
||||||
$cfg['Servers'][$i]['extension'] = 'mysqli';
|
$cfg['Servers'][$i]['extension'] = 'mysqli';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user