Manual

statistics functions

  • getbrowser - get browser by user agent signature
  • getos - get OS by user agent signature

getbrowser($useragent) {#getbrowser_}

get browser by user agent signature

{{lang:php}}
get_browser_('Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8) Gecko/20051107 Firefox/1.5')
// Mozilla Firefox

getos($useragent) {#getos_}

get OS by user agent signature

{{lang:php}}
get_os_('Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8) Gecko/20051107 Firefox/1.5')
// Windows XP
Try myPortal 2: