• 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

Recent

  • 5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic
  • Troubleshooting A Flickering LED Downlight
  • Repair A Broken iPhone Lightning Cable
  • New Gadget – MacBook Pro with Retina Display (2015)
  • One Watt LED Night Light

Search

Tags

2014 adsense advertisement Arduino baby blog blogtal Canon EOS 400D Chinese New Year Christchurch CNY DiGi DIY electronic FBM Flickr Flickr Uploadr Google Google Maps Google Search Results Google Webmaster Central investment joke KLCI KLSE Lake Tekapo LED MacBook Air Maybank2u Motueka movie mutual funds New Zealand PC Fair 2009 Queenstown restaurant for dinner sharing stock trackback Twitter unit trust visa wordpress wordpress plugin working holiday