File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1111 'PMA_VERBOSES ' ,
1212 'PMA_PORT ' ,
1313 'PMA_PORTS ' ,
14+ 'PMA_SOCKET ' ,
15+ 'PMA_SOCKETS ' ,
1416 'PMA_USER ' ,
1517 'PMA_PASSWORD ' ,
1618 'PMA_ABSOLUTE_URI ' ,
5658 $ verbose = explode (', ' , $ _ENV ['PMA_VERBOSES ' ]);
5759 $ ports = explode (', ' , $ _ENV ['PMA_PORTS ' ]);
5860}
61+ if (!empty ($ _ENV ['PMA_SOCKET ' ])) {
62+ $ sockets = array ($ _ENV ['PMA_SOCKET ' ]);
63+ } elseif (!empty ($ _ENV ['PMA_SOCKETS ' ])) {
64+ $ sockets = explode (', ' , $ _ENV ['PMA_SOCKETS ' ]);
65+ }
5966
6067/* Server settings */
6168for ($ i = 1 ; isset ($ hosts [$ i - 1 ]); $ i ++) {
110117 $ cfg ['Servers ' ][$ i ]['compress ' ] = false ;
111118 $ cfg ['Servers ' ][$ i ]['AllowNoPassword ' ] = true ;
112119}
120+ for ($ i = 1 ; isset ($ sockets [$ i - 1 ]); $ i ++) {
121+ $ cfg ['Servers ' ][$ i ]['socket ' ] = $ sockets [$ i - 1 ];
122+ $ cfg ['Servers ' ][$ i ]['host ' ] = 'localhost ' ;
123+ }
113124/*
114125 * Revert back to last configured server to make
115126 * it easier in config.user.inc.php
You can’t perform that action at this time.
0 commit comments