|
Revision 2001, 1.3 kB
(checked in by anarcat, 1 year ago)
|
don't hardcode the mysql host, rely on alternc configuration, which resolves the problem of configuring phpmyadmin for remote mysqls
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
include_once('/var/alternc/bureau/class/local.php'); |
|---|
| 18 |
|
|---|
| 19 |
$i = 1; |
|---|
| 20 |
|
|---|
| 21 |
$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; |
|---|
| 22 |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; |
|---|
| 23 |
$cfg['Servers'][$i]['auth_type'] = 'config'; |
|---|
| 24 |
$cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; |
|---|
| 25 |
$cfg['Servers'][$i]['password'] = $_COOKIE["REMOTE_PASSWORD"]; ; |
|---|
| 26 |
// // with 'config' auth_type) |
|---|
| 27 |
|
|---|
| 28 |
$i++; |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; |
|---|
| 32 |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; |
|---|
| 33 |
$cfg['Servers'][$i]['auth_type'] = 'cookie'; |
|---|
| 34 |
|
|---|
| 35 |
?> |
|---|
| 36 |
|
|---|