I've done something similar to this myself. I took the database connection and admin user/password, made separate files with that information and put it in a folder that is inaccessible from the web. Then I replaced it with an include file in the appropriate phpdig files. It really wasn't too hard to do.
|