Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1444 (ok 4.1) "server" parameter can accept server verbose name

Needs_decision
fixed
nobody
None
1
2013-12-12
2013-07-24
Fatih Ustundag
No

Sometimes mysql server can be added to config or deleted from it. This action can change order of $cfg['Servers'] and links like "http://pma/index.php?server=9" open different db than before.

verbose name for server can be used as value of "server" parameter e.g. http://pma/index.php?server=MY_MASTER_1

Currently, to add this feature, I changed libraries/common.inc.php like this :

760c760,763
< if ($server['host'] == $_REQUEST['server']) {


> if ( $server['host'] == $_REQUEST['server']
> || mb_strtolower($server['verbose']) == mb_strtolower($_REQUEST['server'])
> || mb_strtolower(substr($server['verbose'],0,strpos($server['verbose'],' '))) == mb_strtolower($_REQUEST['server']) ) {

Discussion

  • Ann + J.M.
    Ann + J.M.
    2013-07-24

    What will you do on systems where mbstring is not available? Please consider that. You might want to send us a pull request on GitHub for your feature then (based on the master branch, targeting phpMyAdmin 4.1).

     
  • Michal Čihař
    Michal Čihař
    2013-08-02

    • summary: "server" parameter can accept server verbose name --> (ok 4.1) "server" parameter can accept server verbose name
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle
    Marc Delisle
    2013-12-12

    • Status: resolved --> fixed