Added ldGetRequestedHost() function and made the make_url() and make_local_url() function use it instead of the configurable $AR->host variable.



git-svn-id: https://svn.muze.nl/svn/ariadne-php5/trunk@5732 7882d7ee-46e0-0310-a255-a28a61b628e4
added check whether XDomainRequest is needed, since XDomainRequest always requires a cors header, even if the domain is actually the same.


git-svn-id: https://svn.muze.nl/svn/ariadne-php5/trunk@5733 7882d7ee-46e0-0310-a255-a28a61b628e4