Changed config.php to use helper methods so $_SERVER array isn't accessed directly.