- detect whether authenticating is really necessary when attempting to download a file - add a get_website_refid() function - move often-used goto.php url into constant - and some comments