Wish: url parameter to set initial current database

Issue #68 resolved
Former user created an issue

Originally reported on Google Code with ID 68

I have several databases in a folder and have set $directory to scan that folder.

I would like be to be able to start phpliteadmin.php with on of these databases as
current.

Reported by jos.grootlipman on 2011-10-31 20:43:31

Comments (7)

  1. Dane Iracleous

    ``` This doesn't seem like a worthwhile feature. Why can't you just select the database from the drop down menu? It takes like 5 seconds. I guess if you know the path of the database, we can have a global variable whose value is the path of the default database you want loaded upon opening phpLiteAdmin. Is this what you want? ```

    Reported by `diracleo` on 2011-10-31 22:28:52 - Status changed: `Accepted`

  2. Former user Account Deleted

    ``` On my webserver I have three different applications each with their own database (in the same folder)

    When I am logged in as administrator in one of the applications, I would like to add a link to administer the database for the database of that specific application. A global variable would not really help.

    If $_SESSION[COOKIENAME."currentDB"] would store the databasename (as sugegsted in issue#67) then the parameter switchdb might already be doing what I am looking for. ```

    Reported by `jos.grootlipman` on 2011-10-31 22:53:51

  3. Dane Iracleous

    ``` I see what you mean. This is a good idea. If you are able to make the necessary changes to allow this, send me the updated code so I can include it in the next version. ```

    Reported by `diracleo` on 2011-11-04 05:50:47

  4. Former user Account Deleted

    ``` Sorry, I only have limited knowledge of PHP. Only just enough to read and understand other people's code. Keep up the good work though. ```

    Reported by `jos.grootlipman` on 2011-11-14 22:53:55

  5. Christopher Kramer
    I might have a look at this along with issue #67 soon.
    

    Reported by crazy4chrissi on 2012-10-22 22:14:08 - Labels added: Type-Enhancement, Priority-Low - Labels removed: Type-Defect, Priority-Medium

  6. Christopher Kramer
    Fixed issue #67 in a way that fixes this issue for free. The name of the GET parameter
    is "switchdb". You give the path to the DB.
    The db you specify must be in $databases, so it must either be in the folder you specify
    to scan or manually specified. This is for security reasons.
    
    You can try the latest version from SVN to test it:
    http://phpliteadmin.googlecode.com/svn/source/1.9.3/phpliteadmin.php
    

    Reported by crazy4chrissi on 2012-10-23 22:23:16 - Status changed: Fixed

  7. Log in to comment