Using $GLOBALS['base_url'] instead of $_SERVER['SERVER_NAME'].

Two additional uses of $_SERVER['SERVER_NAME'] that might break when SERVER_NAME != HTTP_HOST. Better to rely on the Drupal $base_url global.