Added per rank commands + fixed some issues

Escaped database username/passwords etc. (oops)
Added option in the config file to specify the command for each rank
Fixed issue with closing mysql connection when DB wasn't in use.
Fixed undefined variables for the config file.
Fixed depreciated eregi in paypal.class.php to preg_match

Added install.php form to write a config file - WIP