TurboDbAdmin

Found this PHP scripts at K3NT’s post: TurboDbAmin. Good finding Leo!

http://www.turboajax.com/turbodbadmin.html

TurboDbAmin has a great interface which is powered by Ajax but it only support single database user. I have different username and password for different databases. If I need to access to different database, I need to modify the config.php in TurboDbAmin to change the username and password. Or else, another alternative way is to installed a instance of TuboDbAmin for each database user.

So, I have made a login page and modified some files so that it can support multiple database users . The login page takes in 3 parameters (server, user, password). The login page will check whether the server or user fields are empty and check whether it can open a connection to the database server. If all inputs are correct, then it will set the 3 parameters into session and redirect to TurboDbAdmin’s index.html. In TurboDbAdmin’s config.php, it will load all the values from session.

Here are file changes:
login.php (put this file at [TurboDbAmin folder]) - new file
config.php (replace this file at [TurboDbAmin folder]\php) - load data from session
data_server.php (replace this file at [TurboDbAmin folder]\php) - start session

To login: Just point your brower to http://yoursite/[TurboDbAmin folder]/login.php

If you are interested with the changes, you can download it here: TurboDbAmin Login

If you want make some parameters point to some default value, you can modify first three lines of code in login.php to do so. Example:

$server = 'my_host';
$user = 'my_user';
$password = 'my_password';

Share this article

  • digg
  • del.icio.us
  • Fark
  • Furl
  • Spurl
  • BlinkList
  • YahooMyWeb
  • Simpy
  • blinkbits
  • Digg
  • Facebook
  • Google
  • Live
  • Technorati
  • blogmarks

Leave a Reply