Changed to config array variable instead of the GLOBALS.
The main files track.php and index.php get it from config.php and give it to the classes. If the classes are to be used directly, the config.php file should be included and used or a new config array can be given to them.