• Home
  • About

szehau's weblog

Life, Internet, Software, Gadgets, Programming and Investments

  • life log
  • internet
  • programming
  • software
  • working holiday
  • gadget
  • project

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';

About Sze Hau

Geek. Love programming. Coffee addicted. Married with a child. Working towards financial freedom.

Email News Letter

Sign up to receive updates daily and to hear what's going on with us

More Posts

5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic

June 1, 2021 22:15 By Sze Hau

LED Downlight

Troubleshooting A Flickering LED Downlight

February 13, 2016 00:29 By Sze Hau

Repair A Broken iPhone Lightning Cable

January 30, 2016 00:54 By Sze Hau

Blog Network

  • Personal Fincance Personal Finance – Personal Money Tips, Stock Investment, Small Business and Make Money Online
  • Snippet IT Information technology news, ideas and experiences and opinions