BUG FIX : added is_local_server()

added function is_local_server() to avoid error in get_domain() when
used on localhost