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