function visitors_get_user_agent in Visitors 7.0
Same name and namespace in other branches
- 8 visitors.exit.inc \visitors_get_user_agent()
- 7.2 visitors.exit.inc \visitors_get_user_agent()
- 7 visitors.exit.inc \visitors_get_user_agent()
Get visitor user agent.
Return value
string user agent, or empty string if user agent does not exist
File
- ./
visitors.exit.inc, line 110 - Implements of hook_exit().
Code
function visitors_get_user_agent() {
return isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
}