function visitors_get_referer in Visitors 7.0
Same name and namespace in other branches
- 8 visitors.exit.inc \visitors_get_referer()
- 7.2 visitors.exit.inc \visitors_get_referer()
- 7 visitors.exit.inc \visitors_get_referer()
Get the address of the page (if any) which referred the user agent to the current page.
Return value
string referer, or empty string if referer does not exist
File
- ./
visitors.exit.inc, line 89 - Implements of hook_exit().
Code
function visitors_get_referer() {
return isset($_SERVER['HTTP_REFERER']) ? urldecode($_SERVER['HTTP_REFERER']) : '';
}